2015-09 02 11:29:37
Nuevo(47359,1)
Caso :195
2015-09 02 11:29:37
cargar datos del sujeto(,,s,116,195)
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=195 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 11:29:37
tabla dat adic
select tabla from core_sujetoverificaciontipo where id=3
2015-09 02 11:29:37
tabla :core_sujetoverificacionvehiculo
SELECT * FROM core_sujetoverificacionvehiculo where id=47359
CasoSeguimiento :195
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1282
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 id_comp 1282
Mostrar form
fin 2015-09-02 11:29:38
/******************************************************************************************************/
fin 2015-09-02 11:29:38
/******************************************************************************************************/
2015-09 02 11:31:09
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195").getForm().findField("oid").getValue(),obs_ingreso:'133',contenedor_nuevo:'_134'},'n','','511','500');}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 11:31:09
/******************************************************************************************************/
fin 2015-09-02 11:31:10
/******************************************************************************************************/
2015-09 02 11:31:32
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195").getForm().findField("oid").getValue(),obs_ingreso:'133',contenedor_nuevo:'_134'},'n','','511','500');}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 11:31:32
/******************************************************************************************************/
fin 2015-09-02 11:31:33
/******************************************************************************************************/
2015-09 02 11:32:15
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195").getForm().findField("oid").getValue(),obs_ingreso:'133',contenedor_nuevo:'_134'},'n','','511','500');}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 11:32:15
/******************************************************************************************************/
fin 2015-09-02 11:32:15
/******************************************************************************************************/
2015-09 02 11:34:43
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195").getForm().findField("oid").getValue(),obs_ingreso:'133',contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 11:34:43
/******************************************************************************************************/
fin 2015-09-02 11:34:43
/******************************************************************************************************/
2015-09 02 11:46:00
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195").getForm().findField("oid").getValue(),obs_ingreso:'133',contenedor_nuevo:'_134'},'n','','411','400');Ext.getCmp('9644_134').getStore().rejectChanges();Ext.getCmp('9644_134').getStore().loadData(json.data);}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 11:46:00
/******************************************************************************************************/
fin 2015-09-02 11:46:00
/******************************************************************************************************/
2015-09 02 11:47:18
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195").getForm().findField("oid").getValue(),obs_ingreso:'133',contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 11:47:18
/******************************************************************************************************/
fin 2015-09-02 11:47:18
/******************************************************************************************************/
2015-09 02 11:58:54
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195").getForm().findField("oid").getValue(),obs_ingreso:'133',contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 11:58:54
/******************************************************************************************************/
fin 2015-09-02 11:58:54
/******************************************************************************************************/
2015-09 02 12:52:14
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:Ext.getCmp('cod_formulario2').getValue(),contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 12:52:14
/******************************************************************************************************/
fin 2015-09-02 12:52:14
/******************************************************************************************************/
2015-09 02 12:54:38
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:'\''+Ext.getCmp('cod_formulario2').getValue()+''\',contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 12:54:38
/******************************************************************************************************/
2015-09 02 12:56:24
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:"'"+Ext.getCmp('cod_formulario2').getValue()+"'",contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 12:56:24
/******************************************************************************************************/
fin 2015-09-02 12:56:25
/******************************************************************************************************/
2015-09 02 12:57:12
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:'133',contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 12:57:12
/******************************************************************************************************/
fin 2015-09-02 12:57:12
/******************************************************************************************************/
2015-09 02 12:58:30
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:Ext.getCmp('cod_formulario2').getValue(),contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 12:58:30
/******************************************************************************************************/
fin 2015-09-02 12:58:30
/******************************************************************************************************/
2015-09 02 12:59:39
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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=='no'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_195').getForm().findField('oid').getValue(),obs_ingreso:Ext.getCmp('cod_formulario2').getValue(),contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 12:59:39
/******************************************************************************************************/
fin 2015-09-02 12:59:39
/******************************************************************************************************/
2015-09 02 13:00:01
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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=='no'){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_195').getForm().findField('oid').getValue(),obs_ingreso:Ext.getCmp('cod_formulario2').getValue(),contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 13:00:01
/******************************************************************************************************/
fin 2015-09-02 13:00:01
/******************************************************************************************************/
2015-09 02 13:00:42
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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(true){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_195').getForm().findField('oid').getValue(),obs_ingreso:Ext.getCmp('cod_formulario2').getValue(),contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 13:00:42
/******************************************************************************************************/
fin 2015-09-02 13:00:43
/******************************************************************************************************/
2015-09 02 13:02:45
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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(true){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 13:02:45
/******************************************************************************************************/
fin 2015-09-02 13:02:45
/******************************************************************************************************/
2015-09 02 13:03:52
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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(true){xajax_iniciarPintarFormulario({cod_formulario2:'134',id_periodo:'2015',oid_maestro:Ext.getCmp('frm_formulario_116_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 13:03:52
/******************************************************************************************************/
fin 2015-09-02 13:03:53
/******************************************************************************************************/
2015-09 02 13:09:15
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 13:09:15
/******************************************************************************************************/
fin 2015-09-02 13:09:15
/******************************************************************************************************/
2015-09 02 13:21:20
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 13:21:20
/******************************************************************************************************/
fin 2015-09-02 13:21:21
/******************************************************************************************************/
2015-09 02 13:22:00
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134'},'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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-02 13:22:00
/******************************************************************************************************/
fin 2015-09-02 13:22:01
/******************************************************************************************************/
2015-09-03 11:32:33TraerCaso(195,116,)
CargarCaso :195
2015-09 03 11:32:33
CargarDatos: Caso :195
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":"195","id":"195","1":"195","wf_caso_116_id":"195","2":"308","wf_tarea_id":"308","3":null,"core_usuario_id":null,"4":"2015-09-02 11:29:37","fec_asig":"2015-09-02 11:29:37","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 11:32:33
cargar datos del sujeto(,,s,116,195)
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=195 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 11:32:33
tabla dat adic
select tabla from core_sujetoverificaciontipo where id=3
2015-09 03 11:32:33
tabla :core_sujetoverificacionvehiculo
SELECT * FROM core_sujetoverificacionvehiculo where id=47359
2015-09 03 11:32:33
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134'},'n','','411','400');//enviar id_grilla=9644_134}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-03 11:32:34
/******************************************************************************************************/
2015-09 03 11:33:09
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134'},'n','','411','400');/*enviar id_grilla=9644_134*/}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-03 11:33:09
/******************************************************************************************************/
fin 2015-09-03 11:33:10
/******************************************************************************************************/
2015-09 03 11:57:39
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134'},'n','','411','400');/*enviar id_grilla=9644_134*/}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-03 11:57:39
/******************************************************************************************************/
fin 2015-09-03 11:57:40
/******************************************************************************************************/
2015-09 03 11:58:58
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134'},'n','','411','400');/*enviar id_grilla=9644_134*/}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-03 11:58:58
/******************************************************************************************************/
fin 2015-09-03 11:58:58
/******************************************************************************************************/
2015-09 03 12:02:34
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134'},'n','','411','400');/*enviar id_grilla=9644_134*/}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-03 12:02:34
/******************************************************************************************************/
fin 2015-09-03 12:02:34
/******************************************************************************************************/
2015-09 03 12:13:03
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134'},'n','','411','400');/*enviar id_grilla=9644_134*/}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-03 12:13:03
/******************************************************************************************************/
fin 2015-09-03 12:13:04
/******************************************************************************************************/
2015-09 03 12:25:30
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:'9644'},'n','','411','400');/*enviar id_grilla=9644_134*/}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-03 12:25:30
/******************************************************************************************************/
fin 2015-09-03 12:25:30
/******************************************************************************************************/
2015-09 03 12:27:16
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:''},'n','','411','400');/*enviar id_grilla=9644_134*/}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-03 12:27:16
/******************************************************************************************************/
fin 2015-09-03 12:27:16
/******************************************************************************************************/
2015-09 03 12:34:22
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').getForm().findField('oid').getValue(),obs_ingreso:document.getElementsByName('cod_formulario2').item(0).value,contenedor_nuevo:'_134',cod_camp_m:''},'n','','411','400');/*enviar id_grilla=9644_134*/}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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-03 12:34:22
/******************************************************************************************************/
fin 2015-09-03 12:34:22
/******************************************************************************************************/
2015-09 03 12:43:17
Continuar(,308,,s)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 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_195',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_195').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_195'); 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:'195',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_195').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":"195"}'}}); }catch(e){alert(e);} } } }) );Ext.getCmp('comp_1284').doLayout();
[suc] => 1
)
fin 2015-09-03 12:43:17
/******************************************************************************************************/
fin 2015-09-03 12:43:18
/******************************************************************************************************/
2015-09 03 12:47:11
Continuar(s,308,439,)
EjecutarTarea_308() Autorización sanitaria para vehículos id_comp1284
1
ValidarUsuario(308):1
EjecutarPaso_439: form:133 , caso=195 id_comp 1284
Paso::Guardar(Caso:195)
Datos a guardar:
Array
(
[wf_proceso_id] => 116
[wf_paso_id] => 439
[wf_tarea_id] => 308
[wf_caso_id] => 195
[id] => 1284
[accion] => nextPaso
[reg] => s
[rta] => n
[cod_formulario2] => 133
[id_periodo] => 2015
[obs_ingreso] =>
[cod_bloque] => 502
[oid] =>
[oid_maestro] =>
[9636] => 1449
[9637] => 2015-09-11
[9638] => JJJJ
[9639] => FF555
[9640] => 3456
[9641] => VERDE
[9642] => 4
[9643] => 2
[hdcampo9644] => 134
[9644] => [{"oid":null,"nombre":"MONIK","cc":1085838282,"form_master_escribir_xxx":"134"}]
[9645] => HFFHD
[9649] => 1
[9650] => 2015-09-03
)
OID: 196
rta: 1 dato:196 tabla:sce.t133
CasoPaso:348
CargarDatos_439(196)
se carga 116_308_439_133_502_96502015-09-03
se carga 116_308_439_133_502_96491
se carga 116_308_439_133_502_9645HFFHD
se carga 116_308_439_133_502_9644Array
se carga 116_308_439_133_502_96432
se carga 116_308_439_133_502_96424
se carga 116_308_439_133_502_9641VERDE
se carga 116_308_439_133_502_96403456
se carga 116_308_439_133_502_9639FF555
se carga 116_308_439_133_502_9638JJJJ
se carga 116_308_439_133_502_96372015-09-11
se carga 116_308_439_133_502_96361449
SiguientePasoDe439: Funcion para ejecutar el siguiente paso
EjecutarPaso_440: docs:118 , caso=195 id_comp 1284
Mostrar docs
A PETICIÓN DEL INTERESADO
Nombre | Cédula |
---|---|
MONIK | 1085838282 |