Home
Discusiones
Actividad
Acceder
Home
›
Framework PXP
Acceder
•
Register
¡Hola Forastero!
Pareces nuevo por aquí. Si quieres participar, ¡pulsa uno de estos botones!
Acceder
Registrarse
Categorías
Recent Discussions
Actividad
Categorías
All Categories
109
Typeorm
1
PXP-UI
1
GIT
3
Sistema de Mantenimiento GEMA
1
central telefónicas elastix
3
Sistema de Contabilidad
6
Sistema de Almacenes
0
Sistema de Planillas
0
Sistema de Tesoreria
1
Sistema de Adquisiciones
0
Postgres
17
Inteligencia de Negocios con Pentaho
0
Framework PXP
76
In this Discussion
rensi
octubre 2019
ruben0scar
octubre 2019
www.kplian.com
Para solicitar una invitación remitir un correo a info@kplian.com (Esta es una medida para evitar ataques de SPAM)
Agregar boton en cualquier sistema
ruben0scar
octubre 2019
in
Framework PXP
Muy buenas tardes estimad@s, una enorme favor, intento agregar un boton a un reporte pero no puedo, por favor una manito......
Comentarios
rensi
octubre 2019
Intenta con estos atributos para habilitar la barra de tareas
topBar : true,
botones : false,
labelSubmit : 'Generar',
tooltipSubmit : '<b>Reporte LCV - IVA</b>',
despues debería poder añadir botón como cualquier otra interface
//Botón para Imprimir el Comprobante
this.addButton('btnImprimir',
{
text: 'Imprimir',
iconCls: 'bprint',
disabled: true,
handler: function(){ alert('xxxxxxxxxxxxxx') },
tooltip: '<b>Imprimir Comprobante</b><br/>Imprime el Comprobante en el formato oficial'
}
)
ruben0scar
octubre 2019
como estas rensi, gracias por responder, trate de adicionar como indicas no me funciona porque en el formulario tengo 2 botones al al activar el bar se pierden esos botones.Este es el codigo que tengo:
Phx.vista.FormFiltroResultado = Ext.extend(Phx.frmInterfaz, {
constructor: function (config)
{
this.panelResumen = new Ext.Panel({html: ''});
this.Grupos = [{
xtype: 'fieldset',
border: false,
autoScroll: true,
layout: 'form',
items: [],
id_grupo: 0
},
this.panelResumen
];
Phx.vista.FormFiltroResultado.superclass.constructor.call(this, config);
this.init();
this.iniciarEventos();
},
Atributos: [
{
config: {
name: 'hasta',
fieldLabel: 'Hasta',
allowBlank: true,
format: 'd/m/Y',
width: 150
},
type: 'DateField',
id_grupo: 0,
form: true
},
],
labelSubmit: '<i class="fa fa-check"></i> Aplicar Filtro:ruben',
title: 'Filtro de mayores',
onSubmit: function (o) {
var me = this;
if (me.form.getForm().isValid()) {
var parametros = me.getValForm()
Phx.CP.loadingShow();
var deptos = this.Cmp.id_deptos.getValue('object');
console.log('deptos', deptos)
var sw = 0, codigos = ''
deptos.forEach(function (entry) {
if (sw == 0) {
codigos = entry.codigo;
} else {
codigos = codigos + ', ' + entry.codigo;
}
sw = 1;
});
Ext.Ajax.request({
url: '../../sis_contabilidad/control/Cuenta/reporteResultados',
params: Ext.apply(parametros, {'codigos': codigos}),
success: this.successExport,
failure: this.conexionFailure,
timeout: this.timeout,
scope: this
})
}
},
iniciarEventos: function () {
this.Cmp.id_resultado_plantilla.on('select', function (cmb, record) {
this.Cmp.titulo_rep.setValue(record.data.nombre)
}, this)
},
})
rensi
octubre 2019
no entiendo, el siguiente codigo lo probe y funciona,
con lo que te dije anteriormente
Phx.vista.ReporteLibroComprasVentasIVA = Ext.extend(Phx.frmInterfaz, {
topBar : true,
botones : false,
labelSubmit : 'Generar',
tooltipSubmit : '
Reporte LCV - IVA
',
constructor: function (config)
{ var me = this;
this.panelResumen = new Ext.Panel({html: ''});
this.Grupos = [{
xtype: 'fieldset',
border: false,
autoScroll: true,
layout: 'form',
items: [],
id_grupo: 0
},
this.panelResumen
];
Phx.vista.ReporteLibroComprasVentasIVA.superclass.constructor.call(this, config);
this.init();
this.iniciarEventos();
this.addButton('btnImprimir',
{
text: 'Imprimir',
iconCls: 'bprint',
disabled: false,
handler: me.nuevoBoton,
tooltip: '
Imprimir Comprobante
Imprime el Comprobante en el formato oficial'
} );
},
Atributos: [
{
config: {
name: 'hasta',
fieldLabel: 'Hasta',
allowBlank: true,
format: 'd/m/Y',
width: 150
},
type: 'DateField',
id_grupo: 0,
form: true
},
],
labelSubmit: '
Aplicar Filtro:ruben',
title: 'Filtro de mayores',
onSubmit: function (o) {
var me = this;
if (me.form.getForm().isValid()) {
alert('logica submit')
}
},
iniciarEventos: function () { },
nuevoBoton: function(){
alert('otra funcionalidad')
}
})
Sign In
or
Register
to comment.
Powered by Vanilla
Comentarios
constructor: function (config)
{
this.panelResumen = new Ext.Panel({html: ''});
this.Grupos = [{
xtype: 'fieldset',
border: false,
autoScroll: true,
layout: 'form',
items: [],
id_grupo: 0
},
this.panelResumen
];
Phx.vista.FormFiltroResultado.superclass.constructor.call(this, config);
this.init();
this.iniciarEventos();
},
Atributos: [
{
config: {
name: 'hasta',
fieldLabel: 'Hasta',
allowBlank: true,
format: 'd/m/Y',
width: 150
},
type: 'DateField',
id_grupo: 0,
form: true
},
],
labelSubmit: '<i class="fa fa-check"></i> Aplicar Filtro:ruben',
title: 'Filtro de mayores',
onSubmit: function (o) {
var me = this;
if (me.form.getForm().isValid()) {
var parametros = me.getValForm()
Phx.CP.loadingShow();
var deptos = this.Cmp.id_deptos.getValue('object');
console.log('deptos', deptos)
var sw = 0, codigos = ''
deptos.forEach(function (entry) {
if (sw == 0) {
codigos = entry.codigo;
} else {
codigos = codigos + ', ' + entry.codigo;
}
sw = 1;
});
Ext.Ajax.request({
url: '../../sis_contabilidad/control/Cuenta/reporteResultados',
params: Ext.apply(parametros, {'codigos': codigos}),
success: this.successExport,
failure: this.conexionFailure,
timeout: this.timeout,
scope: this
})
}
},
iniciarEventos: function () {
this.Cmp.id_resultado_plantilla.on('select', function (cmb, record) {
this.Cmp.titulo_rep.setValue(record.data.nombre)
}, this)
},
})
con lo que te dije anteriormente
Phx.vista.ReporteLibroComprasVentasIVA = Ext.extend(Phx.frmInterfaz, {
topBar : true,
botones : false,
labelSubmit : 'Generar',
tooltipSubmit : 'Reporte LCV - IVA',
constructor: function (config)
{ var me = this;
this.panelResumen = new Ext.Panel({html: ''});
this.Grupos = [{
xtype: 'fieldset',
border: false,
autoScroll: true,
layout: 'form',
items: [],
id_grupo: 0
},
this.panelResumen
];
Phx.vista.ReporteLibroComprasVentasIVA.superclass.constructor.call(this, config);
this.init();
this.iniciarEventos();
this.addButton('btnImprimir',
{
text: 'Imprimir',
iconCls: 'bprint',
disabled: false,
handler: me.nuevoBoton,
tooltip: 'Imprimir Comprobante
Imprime el Comprobante en el formato oficial'
} );
},
Atributos: [
{
config: {
name: 'hasta',
fieldLabel: 'Hasta',
allowBlank: true,
format: 'd/m/Y',
width: 150
},
type: 'DateField',
id_grupo: 0,
form: true
},
],
labelSubmit: ' Aplicar Filtro:ruben',
title: 'Filtro de mayores',
onSubmit: function (o) {
var me = this;
if (me.form.getForm().isValid()) {
alert('logica submit')
}
},
iniciarEventos: function () { },
nuevoBoton: function(){
alert('otra funcionalidad')
}
})