2015-09 02 09:28:43
Nuevo(47361,1)
Caso :193
2015-09 02 09:28:43
cargar datos del sujeto(,,s,116,193)
select s.*, m.nombre as nom_muni, c.nom_cat,fec_caso
from wf_caso_116 w
inner join core_sujetoverificacion s on w.id=193 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 02 09:28:43
tabla dat adic
select tabla from core_sujetoverificaciontipo where id=3
2015-09 02 09:28:43
tabla :core_sujetoverificacionvehiculo
SELECT * FROM core_sujetoverificacionvehiculo where id=47361
CasoSeguimiento :193
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1282
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1282
Mostrar form
fin 2015-09-02 09:28:44
/******************************************************************************************************/
fin 2015-09-02 09:28:44
/******************************************************************************************************/
2015-09-03 13:36:49TraerCaso(193,116,)
CargarCaso :193
2015-09 03 13:36:49
CargarDatos: Caso :193
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_116_seguimiento_id,wf_paso_id from wf_caso_116_pasos a1 group by wf_caso_116_seguimiento_id,wf_paso_id order by id
)a
inner join wf_caso_116_pasos p using(id,wf_caso_116_seguimiento_id)
inner join ( select max(id) as wf_caso_116_seguimiento_id,wf_caso_116_id,wf_tarea_id from wf_caso_116_seguimiento where wf_caso_116_id =? group by wf_caso_116_id,wf_tarea_id order by wf_caso_116_id,wf_caso_116_seguimiento_id ) b using(wf_caso_116_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_116_seguimiento a
inner join (
select max(b0.id) as id,b0.wf_caso_116_id,b0.wf_tarea_id from wf_caso_116_seguimiento b0 where b0.wf_caso_116_id =? group by b0.wf_caso_116_id,b0.wf_tarea_id order by wf_caso_116_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":"193","id":"193","1":"193","wf_caso_116_id":"193","2":"308","wf_tarea_id":"308","3":null,"core_usuario_id":null,"4":"2015-09-02 09:28:43","fec_asig":"2015-09-02 09:28:43","5":null,"core_usuario_id_resol":null,"6":null,"fec_resol":null,"7":"308","wf_tarea_id_sig":"308","8":null,"usr_asig":null,"9":null,"usr_resol":null}
2015-09 03 13:36:49
cargar datos del sujeto(,,s,116,193)
select s.*, m.nombre as nom_muni, c.nom_cat,fec_caso
from wf_caso_116 w
inner join core_sujetoverificacion s on w.id=193 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 03 13:36:49
tabla dat adic
select tabla from core_sujetoverificaciontipo where id=3
2015-09 03 13:36:49
tabla :core_sujetoverificacionvehiculo
SELECT * FROM core_sujetoverificacionvehiculo where id=47361
2015-09 03 13:36:49
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-03 13:36:49
/******************************************************************************************************/
fin 2015-09-03 13:36:50
/******************************************************************************************************/
2015-09-04 08:15:04TraerCaso(193,116,)
CargarCaso :193
2015-09 04 08:15:04
CargarDatos: Caso :193
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_116_seguimiento_id,wf_paso_id from wf_caso_116_pasos a1 group by wf_caso_116_seguimiento_id,wf_paso_id order by id
)a
inner join wf_caso_116_pasos p using(id,wf_caso_116_seguimiento_id)
inner join ( select max(id) as wf_caso_116_seguimiento_id,wf_caso_116_id,wf_tarea_id from wf_caso_116_seguimiento where wf_caso_116_id =? group by wf_caso_116_id,wf_tarea_id order by wf_caso_116_id,wf_caso_116_seguimiento_id ) b using(wf_caso_116_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_116_seguimiento a
inner join (
select max(b0.id) as id,b0.wf_caso_116_id,b0.wf_tarea_id from wf_caso_116_seguimiento b0 where b0.wf_caso_116_id =? group by b0.wf_caso_116_id,b0.wf_tarea_id order by wf_caso_116_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":"193","id":"193","1":"193","wf_caso_116_id":"193","2":"308","wf_tarea_id":"308","3":null,"core_usuario_id":null,"4":"2015-09-02 09:28:43","fec_asig":"2015-09-02 09:28:43","5":null,"core_usuario_id_resol":null,"6":null,"fec_resol":null,"7":"308","wf_tarea_id_sig":"308","8":null,"usr_asig":null,"9":null,"usr_resol":null}
2015-09 04 08:15:04
cargar datos del sujeto(,,s,116,193)
select s.*, m.nombre as nom_muni, c.nom_cat,fec_caso
from wf_caso_116 w
inner join core_sujetoverificacion s on w.id=193 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 04 08:15:04
tabla dat adic
select tabla from core_sujetoverificaciontipo where id=3
2015-09 04 08:15:04
tabla :core_sujetoverificacionvehiculo
SELECT * FROM core_sujetoverificacionvehiculo where id=47361
2015-09 04 08:15:04
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return '
'+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 08:15:05
/******************************************************************************************************/
fin 2015-09-04 08:15:05
/******************************************************************************************************/
2015-09 04 08:16:38
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 08:16:38
/******************************************************************************************************/
fin 2015-09-04 08:16:39
/******************************************************************************************************/
2015-09 04 09:07:28
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 09:07:28
/******************************************************************************************************/
fin 2015-09-04 09:07:28
/******************************************************************************************************/
2015-09 04 09:09:57
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 09:09:57
/******************************************************************************************************/
fin 2015-09-04 09:09:57
/******************************************************************************************************/
2015-09 04 11:32:00
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:1,handler:function(){var grid = Ext.getCmp('134');var list = grid.getSelectionModel().getSelected();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}xajax_iniciarPintarModificarFormulario('134',id_periodo:'2015',document.getElementsByName('cod_formulario2').item(0).value,grid.getSelectionModel().getSelected().data.oid,'n','','',Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),'411','400');}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 11:32:01
/******************************************************************************************************/
2015-09 04 11:32:34
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:'1',handler:function(){var grid = Ext.getCmp('134');var list = grid.getSelectionModel().getSelected();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}xajax_iniciarPintarModificarFormulario('134',id_periodo:'2015',document.getElementsByName('cod_formulario2').item(0).value,grid.getSelectionModel().getSelected().data.oid,'n','','',Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),'411','400');}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 11:32:34
/******************************************************************************************************/
2015-09 04 11:33:02
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:'true',handler:function(){var grid = Ext.getCmp('134');var list = grid.getSelectionModel().getSelected();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}xajax_iniciarPintarModificarFormulario('134',id_periodo:'2015',document.getElementsByName('cod_formulario2').item(0).value,grid.getSelectionModel().getSelected().data.oid,'n','','',Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),'411','400');}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 11:33:02
/******************************************************************************************************/
2015-09 04 11:33:34
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:'true',handler:function(){var grid = Ext.getCmp('134');var list = grid.getSelectionModel().getSelected();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}xajax_iniciarPintarModificarFormulario('134',id_periodo:'2015',document.getElementsByName('cod_formulario2').item(0).value,grid.getSelectionModel().getSelected().data.oid,'n','','',Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),'411','400');}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 11:33:34
/******************************************************************************************************/
2015-09 04 11:34:25
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:'true',handler:function(){var grid = Ext.getCmp('134');var list = grid.getSelectionModel().getSelected();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}xajax_iniciarPintarModificarFormulario('134',id_periodo:'2015',document.getElementsByName('cod_formulario2').item(0).value,grid.getSelectionModel().getSelected().data.oid,'n','','',Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),'411','400');}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 11:34:25
/******************************************************************************************************/
2015-09 04 11:35:43
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:$movil=='si'?false:true,handler:function(){var grid = Ext.getCmp('134');var list = grid.getSelectionModel().getSelected();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}xajax_iniciarPintarModificarFormulario('134',id_periodo:'2015',document.getElementsByName('cod_formulario2').item(0).value,grid.getSelectionModel().getSelected().data.oid,'n','','',Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),'411','400');}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 11:35:43
/******************************************************************************************************/
2015-09 04 11:36:05
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 11:36:05
/******************************************************************************************************/
fin 2015-09-04 11:36:05
/******************************************************************************************************/
2015-09 04 11:36:19
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:$movil=='si'?false:true,handler:function(){}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 11:36:19
/******************************************************************************************************/
fin 2015-09-04 11:36:19
/******************************************************************************************************/
2015-09 04 11:36:34
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:$movil=='si'?false:true,handler:function(){var grid = Ext.getCmp('134');var list = grid.getSelectionModel().getSelected();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 11:36:34
/******************************************************************************************************/
fin 2015-09-04 11:36:34
/******************************************************************************************************/
2015-09 04 11:37:01
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:$movil=='si'?false:true,handler:function(){var grid = Ext.getCmp('134');var list = grid.getSelectionModel().getSelected();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}xajax_iniciarPintarModificarFormulario('134','2015',document.getElementsByName('cod_formulario2').item(0).value,grid.getSelectionModel().getSelected().data.oid,'n','','',Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),'411','400');}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 11:37:01
/******************************************************************************************************/
fin 2015-09-04 11:37:02
/******************************************************************************************************/
2015-09 04 11:37:15
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:$movil=='si'?false:true,handler:function(){var grid = Ext.getCmp('134');var list = grid.getSelectionModel().getSelected();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}xajax_iniciarPintarModificarFormulario('134','2015',document.getElementsByName('cod_formulario2').item(0).value,grid.getSelectionModel().getSelected().data.oid,'n','','',Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),'411','400');}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 11:37:15
/******************************************************************************************************/
fin 2015-09-04 11:37:16
/******************************************************************************************************/
2015-09 04 12:49:20
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:$movil=='si'?true:true,handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelected();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}xajax_iniciarPintarModificarFormulario('134','2015',document.getElementsByName('cod_formulario2').item(0).value,grid.getSelectionModel().getSelected().data.oid,'n','','',Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),'411','400');}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 12:49:21
/******************************************************************************************************/
fin 2015-09-04 12:49:23
/******************************************************************************************************/
2015-09 04 12:49:56
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:$movil=='si'?false:false,handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelected();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}xajax_iniciarPintarModificarFormulario('134','2015',document.getElementsByName('cod_formulario2').item(0).value,grid.getSelectionModel().getSelected().data.oid,'n','','',Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),'411','400');}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 12:49:56
/******************************************************************************************************/
fin 2015-09-04 12:49:57
/******************************************************************************************************/
2015-09 04 13:02:32
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=193 id_comp 1284
Mostrar form
Retorno :
Array
(
[ret] => Ext.getCmp('comp_1284').removeAll();Ext.getCmp('comp_1284').add(new Ext.form.FormPanel({ title: 'Autorización Sanitaria Vehículos' ,padding: 10,id:'frm_formulario_116_193',autoScroll:true ,labelAlign:'top',defaults: { anchor: '97%'} ,items: [new Ext.form.Hidden({name:'cod_formulario2',value:'133'}) ,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:'502'}) ,new Ext.form.Hidden({name :'oid',value:''}) ,new Ext.form.Hidden({name :'oid_maestro',value:''}) ,{value:'',xtype:'textfield' , maxLength:10,autoCreate:{ tag:'input',maxlength:'10'} ,allowBlank:false,id:'9636',fieldLabel:'* Concepto No' },new Ext.form.DateField({fieldLabel:'* Fecha de la visita de inspección - (DD-MM-AAAA)',name:'9637',allowBlank:false,maskRe:/^[-_0-9]$/,format:FormatoFecha,renderer:Ext.util.Format.dateRenderer(FormatoFecha) }),{value:'',xtype:'textfield' , maxLength:60,autoCreate:{ tag:'input',maxlength:'60'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9638',fieldLabel:'* Visita efectuada por (nombre funcionario de salud)' },{value:'',xtype:'textfield' , maxLength:30,autoCreate:{ tag:'input',maxlength:'30'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9639',fieldLabel:'* Marca' },{value:'',xtype:'numberfield' , maxLength:4,autoCreate:{ tag:'input',maxlength:'4'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9640',fieldLabel:'* Modelo' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9641',fieldLabel:'* Color' },{value:'',xtype:'textfield' , maxLength:20,autoCreate:{ tag:'input',maxlength:'20'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9642',fieldLabel:'* Capacidad del vehículo' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9643',id:'9643_1',inputValue:1,boxLabel:'Refrigeración'}), new Ext.form.Radio({name:'9643',id:'9643_2',inputValue:2,boxLabel:'Congelación'}), new Ext.form.Radio({name:'9643',id:'9643_3',inputValue:3,boxLabel:'Medio ambiente'}) ],columns:2,allowBlank:false,fieldLabel:'* Condiciones de almacenamiento',id:'9643'}),{ xtype:'hidden',id:'hdcampo9644',value:'134'},{ xtype:'hidden',id:'9644'}, new Ext.grid.EditorGridPanel({xtype:'editorgrid',store:new Ext.data.JsonStore({ fields:[{ name:'oid' },{ name:'nombre' },{ name:'cc' }]}),columns:[new Ext.grid.RowNumberer({width:30}),{header:'Nombre',dataIndex:'nombre',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'textfield' , maxLength:50 ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false}},{header:'Cédula',dataIndex:'cc',width:80,resizable:true,sortable:true,renderer: function columnWrap(val){return ''+ val +'
';},editor:{value:'',xtype:'numberfield' , maxLength:15 ,allowBlank:false}}],stripeRows:true,height:150,id:'9644_134',title:'Conductor',stateful:true,stateId:'grid',autoScroll:true,autoWidth:true,sm:new Ext.grid.RowSelectionModel({singleSelect:false}),anchor:'97%',viewConfig:{forceFit:true,showPreview: true,enableRowBody: false, getRowClass: function(record, rowIndex, rp, ds){ return 'fila-act-sin-pro';},listeners:{rowsinserted:function(view,row,info){this.refresh();},rowremoved:function(view,row,info){this.refresh();}}},tbar:[{iconCls:'icon-add',tooltip:'Agregar',text:'Agregar',handler:function(){if($movil=='si'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');}else {var TopicRecord = Ext.data.Record.create({ name:'oid' },{ name:'nombre' },{ name:'cc' });var myNewRecord = new TopicRecord({ oid:null ,nombre:'',cc:''});var storegri = Ext.getCmp('9644_134').getStore();storegri.add(myNewRecord);}}},{iconCls:'icon-delete',tooltip:'Eliminar',text:'Eliminar',handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelections();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}Ext.Msg.show({ title:'Advertencia de eliminacion', msg:'Esta seguro que desea eliminar los items seleccionados?', buttons:Ext.Msg.YESNO, animEl:'btnEl', fn:function(btn){ if (btn == 'yes'){grid.store.remove(list);} }, icon:Ext.MessageBox.QUESTION });}},{iconCls:'icon-delete',tooltip:'Modificar',text:'Modificar',hidden:$movil=='si'?false:false,handler:function(){var grid = Ext.getCmp('9644_134');var list = grid.getSelectionModel().getSelected();var x_oid=Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue();if (!list) {Ext.MessageBox.alert('Advertencia', 'Ningun item seleccionado');return false;}if(x_oid==''){/*Ext.MessageBox.alert('Advertencia', '');*/return false;}xajax_iniciarPintarModificarFormulario('134','2015',document.getElementsByName('cod_formulario2').item(0).value,grid.getSelectionModel().getSelected().data.oid,'n','','',Ext.getCmp('frm_formulario_116_193').getForm().findField('oid').getValue(),'411','400');}}]})/*fgp*/,{value:'',xtype:'textfield' , maxLength:50,autoCreate:{ tag:'input',maxlength:'50'} ,listeners:{ blur:function(){ this.setValue(this.getValue().toUpperCase()); } } ,allowBlank:false,id:'9645',fieldLabel:'* Este vehículo puede transportar sanitariamente' },new Ext.form.RadioGroup({columns:2,items:[ new Ext.form.Radio({name:'9649',id:'9649_1',inputValue:1,boxLabel:'Departamental'}), new Ext.form.Radio({name:'9649',id:'9649_2',inputValue:2,boxLabel:'Nacional'}) ],columns:2,allowBlank:false,fieldLabel:'* Hasta su destino final, a nivel ',id:'9649'}),new Ext.form.DateField({fieldLabel:'* Fecha de expedición - (DD-MM-AAAA)',name:'9650',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_116_193'); 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:'116',wf_paso_id:'439',wf_tarea_id:'308',wf_caso_id:'193',id:'1284',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_116_193').getForm().loadRecord(new Ext.data.Record({"cod_formulario":133,"oid_maestro":null,"cod_bloque":502,"9636":null,"9638":null,"9639":null,"9640":null,"9641":null,"9642":null,"9645":null})); llamadaAJAX({url:'http://192.168.10.116/sisad/build/view/workflow/casos/casos_datosForm.php',mostrarMsg:false,params:{accion:'verifica',wf_paso_id:'439',cod_formulario:'133',cod_bloque:'502',wf_caso_id:'{"pro":"116","cas":"193"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-04 13:02:32
/******************************************************************************************************/
fin 2015-09-04 13:02:32
/******************************************************************************************************/