1643 - Criar indicadores mobile das despesas por período
This commit is contained in:
@@ -23,9 +23,17 @@
|
||||
c.set(Calendar.DAY_OF_MONTH, 1);
|
||||
var data = c.getTime();
|
||||
engine.setGlobalVariable('fncLimpaCampos', fncLimpaCampos);
|
||||
engine.getField('dataInicio').setValue(data);
|
||||
engine.getField('dataFinal').setValue(d);
|
||||
engine.getField('tbLancamentos').refresh();
|
||||
if (engine.getGlobalVariable('_mobileRender')) {
|
||||
if (!engine.getField('dataInicio').getValue()) {
|
||||
engine.getField('dataInicio').setValue(data);
|
||||
engine.getField('dataFinal').setValue(d);
|
||||
}
|
||||
engine.getField('tbLancamentos').refresh();
|
||||
} else {
|
||||
engine.getField('dataInicio').setValue(data);
|
||||
engine.getField('dataFinal').setValue(d);
|
||||
engine.getField('tbLancamentos').refresh();
|
||||
}
|
||||
|
||||
// Registrando icones
|
||||
engine.getWidgetController('btnFiltrar').getButton().setIcon(IconFactory.instance().getIconAsResource(IconLibraryAPISmall.FILTRAR));
|
||||
@@ -49,8 +57,8 @@
|
||||
</image>
|
||||
</ImageWidget>
|
||||
<HorizontalLayout width="450" spacing="true" align="BOTTOM_RIGHT" >
|
||||
<DateField type="date" id="dataInicio" caption="Data inicial" width="150" expandRatio="0.5" description="Data inicial da exibição" format="dd/MM/yyyy" />
|
||||
<DateField type="date" id="dataFinal" caption="Data final" width="150" expandRatio="0.5" description="Data final da exibição" format="dd/MM/yyyy" />
|
||||
<DateField type="date" id="dataInicio" resolution="DAY" caption="Data inicial" width="150" expandRatio="0.5" description="Data inicial da exibição" format="dd/MM/yyyy" />
|
||||
<DateField type="date" id="dataFinal" resolution="DAY" caption="Data final" width="150" expandRatio="0.5" description="Data final da exibição" format="dd/MM/yyyy" />
|
||||
<ButtonWidget id="btnFiltrar" caption="Filtrar" description="Aplica filtro de data" width="100" >
|
||||
<onClickScript language="JavaScript">
|
||||
<![CDATA[
|
||||
@@ -64,9 +72,9 @@
|
||||
</HorizontalLayout>
|
||||
</VerticalLayout>
|
||||
</Panel>
|
||||
<Panel width="100%" margin="true" >
|
||||
<Panel width="100%" margin="true" id="pnlGeral" >
|
||||
<VerticalLayout width="100%" spacing="true" align="TOP_LEFT" >
|
||||
<DBTable id="tbLancamentos" type="number" showRowCount="true" width="100%" rows="14" selectable="false" exportXLS="true" editable="false" >
|
||||
<DBTable id="tbLancamentos" type="number" showRowCount="true" width="100%" rows="14" selectable="false" exportXLS="false" editable="false" >
|
||||
<datasource>
|
||||
<sqlBuilderDataSource connection-key="vitruvio" language="JavaScript">
|
||||
<![CDATA[
|
||||
|
||||
Reference in New Issue
Block a user