Agregar evento al cambiar de pestaña

This commit is contained in:
El Mau 2021-12-28 22:26:05 -06:00
parent 54ab86a089
commit 76663fdd67
2 changed files with 21 additions and 5 deletions

View File

@ -86,6 +86,9 @@ var invoices_controllers = {
$$('search_by').attachEvent('onKeyPress', search_by_key_press)
$$('search_by').attachEvent('onItemClick', search_by_click)
tv_invoice = $$('tv_invoice').getTabbar()
tv_invoice.attachEvent('onChange', tv_invoice_change)
webix.extend($$('grid_invoices'), webix.ProgressBar)
init_config_invoices()
@ -2469,3 +2472,8 @@ function get_leyendas_fiscales(){
}
})
}
function tv_invoice_change(nv, ov){
msg_ok(nv)
}

View File

@ -879,13 +879,21 @@ var grid_cols_carta_mercancias = [
]
var opt_config_auto = [
{id: '', value: ''},
{id: 'VL', value: '[VL] Vehículo ligero de carga (2 llantas en el eje delantero y 2 llantas en el eje trasero)'},
{id: 'C2', value: '[C2] Camión Unitario (2 llantas en el eje delantero y 4 llantas en el eje trasero)'},
{id: 'C3', value: '[C3] Camión Unitario (2 llantas en el eje delantero y 6 o 8 llantas en los dos ejes traseros)'},
]
var grid_cols_carta_autotransporte = [
{id: 'id', header: 'ID', hidden: true},
{id: 'PermSCT', header: 'Tipo Permiso SCT', fillspace: 1},
{id: 'NumPermisoSCT', header: 'Número Permiso SCT', fillspace: 1},
{id: 'ConfigVehicular', header: 'Clave Autotransporte', fillspace: 1},
{id: 'PlacaVM', header: 'Placa', fillspace: 1},
{id: 'AnioModeloVM', header: 'Modelo (Año)', fillspace: 1},
{id: 'PermSCT', header: 'Tipo Permiso SCT', editor: 'text', fillspace: 1},
{id: 'NumPermisoSCT', header: 'Número Permiso SCT', editor: 'text', fillspace: 1},
{id: 'ConfigVehicular', header: 'Clave Autotransporte', editor: 'select', options: opt_config_auto, fillspace: 1},
{id: 'PlacaVM', header: 'Placa', editor: 'text', fillspace: 1},
{id: 'AnioModeloVM', header: 'Modelo (Año)', editor: 'text', fillspace: 1},
]