Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <dc:DataGridFilter id="dataGrid"
- dataProvider="{dataArr}"
- doubleClickEnabled="true"
- doubleClick="{dataGrid.selectedItem.CATEGORIA_TIPOCol == 0 ? goToEditarDespesa() :goToEditarReceita()}"
- rowCount="8" change="dataGrid_selectedIndex=dataGrid.selectedIndex;" scroll="dataGrid_scrollPosition = dataGrid.verticalScrollPosition;"
- editable="false" verticalAlign="middle"
- resizableColumns="true"
- verticalScrollPolicy="auto"
- width="100%" height="100%" fontSize="9" >
- <dc:columns>
- <mx:DataGridColumn headerText="Fluxo" width="45" textAlign="center" visible="{TIPO_CATEGORIA > -1 ? false : true}">
- <mx:itemRenderer>
- <mx:Component>
- <mx:HBox>
- <mx:Image horizontalAlign="center" verticalAlign="middle" width="{data.ICON_AUXCol != '' ? 16 : 0}" height="16" source="{data.ICON_AUXCol}" maintainAspectRatio="true" scaleContent="false" toolTip="{data.STATUSCol}" />
- <mx:Image horizontalAlign="center" verticalAlign="middle" width="16" height="16" source="{data.CATEGORIA_ICONCol}" maintainAspectRatio="true" scaleContent="false" toolTip="{data.STATUSCol}" />
- </mx:HBox>
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn headerText="Cód." dataField="CODIGOCol" textAlign="center" width="50">
- <mx:itemRenderer>
- <mx:Component>
- <mx:Label text="{data.CODIGOCol}" color="{data.fontColor}" />
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn dataField="DT_EMISSAOCol" width="80" headerText="Emissão" editable="false" textAlign="center" paddingRight="5">
- <mx:itemRenderer>
- <mx:Component>
- <mx:Label text="{data.DT_EMISSAOCol}" />
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn dataField="DT_VENCIMENTOCol" width="80" headerText="Venc." editable="false" textAlign="center" paddingRight="5">
- <mx:itemRenderer>
- <mx:Component>
- <mx:Label text="{data.DT_VENCIMENTOCol}" color="{data.fontColorAberta}" fontWeight="bold" />
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn dataField="DT_PAGAMENTOCol" width="80" headerText="Pgto." editable="false" textAlign="center" paddingRight="5">
- <mx:itemRenderer>
- <mx:Component>
- <mx:Label text="{data.DT_PAGAMENTOCol}" color="{data.fontColor}" />
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn headerText="Descrição" dataField="DESCRICAO_GridCol" minWidth="150" paddingRight="5"/>
- <mx:DataGridColumn headerText="Centro de Custo" dataField="GRUPO_CONTA_DESCCol" id="CENTRO_CUSTO_SHOWCol" />
- <mx:DataGridColumn headerText="Conta Bancária" dataField="CONTA_BANCARIA_EMPRESARIAL_DESCRICAOCol" />
- <mx:DataGridColumn headerText="Plano de Contas" dataField="CATEGORIA_DESCRICAOCol" visible="true" />
- <mx:DataGridColumn headerText="Nº boleto" dataField="NUMERO_BOLETOCol" visible="{showColunaNumeroBoleto()}" />
- <mx:DataGridColumn headerText="Valor" dataField="VALORCol" width="90" paddingRight="10" >
- <mx:itemRenderer>
- <mx:Component>
- <mx:Label text="{data.VALOR_FORMATCol}" fontWeight="bold" textAlign="right" fontSize="10"/>
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn headerText="Multa" dataField="VALOR_MULTA_FORMATCol" width="50" paddingRight="10" >
- <mx:itemRenderer>
- <mx:Component>
- <mx:Label text="{data.VALOR_MULTA_FORMATCol}" textAlign="right" fontSize="10"/>
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn headerText="Juros" dataField="VALOR_JUROS_FORMATCol" width="50" paddingRight="10" >
- <mx:itemRenderer>
- <mx:Component>
- <mx:Label text="{data.VALOR_JUROS_FORMATCol}" textAlign="right" fontSize="10"/>
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn headerText="Desconto" dataField="VALOR_DESCONTO_FORMATCol" width="60" paddingRight="10" >
- <mx:itemRenderer>
- <mx:Component>
- <mx:Label text="{data.VALOR_DESCONTO_FORMATCol}" textAlign="right" fontSize="10"/>
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn headerText="Pago" dataField="VALOR_PAGO_FORMATCol" width="90" paddingRight="10" >
- <mx:itemRenderer>
- <mx:Component>
- <mx:Label text="{data.VALOR_PAGO_FORMATCol}" fontWeight="bold" textAlign="right" fontSize="10" color="{data.fontColor}" />
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <!--
- <mx:DataGridColumn headerText="Valor Reajust." dataField="VALOR_TOTAL_CONVERTIDOCol" width="100" visible="{TIPO_CATEGORIA > 0 ? false : true}">
- <mx:itemRenderer>
- <mx:Component>
- <mx:Label text="{data.VALOR_TOTAL_CONVERTIDOCol}" fontWeight="bold" textAlign="right" color="{data.VALORCol != data.VALOR_TOTALCol ? 0xDE3737 : 0x000000}">
- </mx:Label>
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- -->
- <mx:DataGridColumn width="25" headerText="" editable="false" resizable="false" sortable="false" draggable="false">
- <mx:itemRenderer>
- <mx:Component>
- <mx:LinkButton click="{data.CATEGORIA_TIPOCol == 0 ? outerDocument.goToEditDespesa() : outerDocument.(goToEditReceita)}" width="20" icon="@Embed('icons/financeiroCompreCerto/grid/detalhes.png')" toolTip="Editar Registro"/>
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn width="60" headerText="Interac." editable="false" resizable="true" sortable="false" draggable="false">
- <mx:itemRenderer>
- <mx:Component>
- <mx:LinkButton click="{outerDocument.gotoInteracao()}" icon="@Embed('icons/interacaoico.png')"
- toolTip="Interações" label="{'(' + (data.contador_ContasInteracao_interacoes == null ? 0 : data.contador_ContasInteracao_interacoes) + ')'}"/>
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn width="25" headerText="" editable="false" resizable="false" sortable="false" draggable="false">
- <mx:itemRenderer>
- <mx:Component>
- <mx:Image click="{outerDocument.validaBoleto()}" horizontalAlign="center" width="16" height="16" source="icons/financeiroCompreCerto/grid/boleto.png" maintainAspectRatio="true" scaleContent="false" useHandCursor="true" buttonMode="true"
- toolTip="Gerar boleto para a conta selecionada" alpha="{data.CANPRINTCol == 1 ? 1 : 0.2}" enabled="{data.CANPRINTCol == 1 ? true : false}">
- </mx:Image>
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- <mx:DataGridColumn dataField="SITUACAOCol" id="SITUACAO_SHOWCol" width="25" headerText="" editable="false" resizable="false" sortable="false" draggable="false">
- <mx:itemRenderer>
- <mx:Component>
- <mx:Image click="{outerDocument.onClickSituacao(source)}" horizontalAlign="center" width="16" height="16" source="{data.STATUS_IMGCol}" maintainAspectRatio="true" scaleContent="false" useHandCursor="true" buttonMode="true"
- toolTip="{data.STATUS_TOOLTIP}" alpha="{data.STATUS_DESCCol == 'ABERTA' ? 0.5 : 1}" enabled="{outerDocument.editar}">
- </mx:Image>
- </mx:Component>
- </mx:itemRenderer>
- </mx:DataGridColumn>
- </dc:columns>
- </dc:DataGridFilter>
Add Comment
Please, Sign In to add comment