Guest User

Untitled

a guest
Apr 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.62 KB | None | 0 0
  1. <dc:DataGridFilter id="dataGrid"
  2. dataProvider="{dataArr}"
  3. doubleClickEnabled="true"
  4. doubleClick="{dataGrid.selectedItem.CATEGORIA_TIPOCol == 0 ? goToEditarDespesa() :goToEditarReceita()}"
  5. rowCount="8" change="dataGrid_selectedIndex=dataGrid.selectedIndex;" scroll="dataGrid_scrollPosition = dataGrid.verticalScrollPosition;"
  6. editable="false" verticalAlign="middle"
  7. resizableColumns="true"
  8. verticalScrollPolicy="auto"
  9. width="100%" height="100%" fontSize="9" >
  10.  
  11. <dc:columns>
  12. <mx:DataGridColumn headerText="Fluxo" width="45" textAlign="center" visible="{TIPO_CATEGORIA > -1 ? false : true}">
  13. <mx:itemRenderer>
  14. <mx:Component>
  15. <mx:HBox>
  16. <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}" />
  17. <mx:Image horizontalAlign="center" verticalAlign="middle" width="16" height="16" source="{data.CATEGORIA_ICONCol}" maintainAspectRatio="true" scaleContent="false" toolTip="{data.STATUSCol}" />
  18. </mx:HBox>
  19. </mx:Component>
  20. </mx:itemRenderer>
  21. </mx:DataGridColumn>
  22.  
  23. <mx:DataGridColumn headerText="Cód." dataField="CODIGOCol" textAlign="center" width="50">
  24. <mx:itemRenderer>
  25. <mx:Component>
  26. <mx:Label text="{data.CODIGOCol}" color="{data.fontColor}" />
  27. </mx:Component>
  28. </mx:itemRenderer>
  29. </mx:DataGridColumn>
  30.  
  31. <mx:DataGridColumn dataField="DT_EMISSAOCol" width="80" headerText="Emissão" editable="false" textAlign="center" paddingRight="5">
  32. <mx:itemRenderer>
  33. <mx:Component>
  34. <mx:Label text="{data.DT_EMISSAOCol}" />
  35. </mx:Component>
  36. </mx:itemRenderer>
  37. </mx:DataGridColumn>
  38.  
  39. <mx:DataGridColumn dataField="DT_VENCIMENTOCol" width="80" headerText="Venc." editable="false" textAlign="center" paddingRight="5">
  40. <mx:itemRenderer>
  41. <mx:Component>
  42. <mx:Label text="{data.DT_VENCIMENTOCol}" color="{data.fontColorAberta}" fontWeight="bold" />
  43. </mx:Component>
  44. </mx:itemRenderer>
  45. </mx:DataGridColumn>
  46.  
  47. <mx:DataGridColumn dataField="DT_PAGAMENTOCol" width="80" headerText="Pgto." editable="false" textAlign="center" paddingRight="5">
  48. <mx:itemRenderer>
  49. <mx:Component>
  50. <mx:Label text="{data.DT_PAGAMENTOCol}" color="{data.fontColor}" />
  51. </mx:Component>
  52. </mx:itemRenderer>
  53. </mx:DataGridColumn>
  54.  
  55. <mx:DataGridColumn headerText="Descrição" dataField="DESCRICAO_GridCol" minWidth="150" paddingRight="5"/>
  56.  
  57. <mx:DataGridColumn headerText="Centro de Custo" dataField="GRUPO_CONTA_DESCCol" id="CENTRO_CUSTO_SHOWCol" />
  58. <mx:DataGridColumn headerText="Conta Bancária" dataField="CONTA_BANCARIA_EMPRESARIAL_DESCRICAOCol" />
  59. <mx:DataGridColumn headerText="Plano de Contas" dataField="CATEGORIA_DESCRICAOCol" visible="true" />
  60. <mx:DataGridColumn headerText="Nº boleto" dataField="NUMERO_BOLETOCol" visible="{showColunaNumeroBoleto()}" />
  61.  
  62. <mx:DataGridColumn headerText="Valor" dataField="VALORCol" width="90" paddingRight="10" >
  63. <mx:itemRenderer>
  64. <mx:Component>
  65. <mx:Label text="{data.VALOR_FORMATCol}" fontWeight="bold" textAlign="right" fontSize="10"/>
  66. </mx:Component>
  67. </mx:itemRenderer>
  68. </mx:DataGridColumn>
  69.  
  70. <mx:DataGridColumn headerText="Multa" dataField="VALOR_MULTA_FORMATCol" width="50" paddingRight="10" >
  71. <mx:itemRenderer>
  72. <mx:Component>
  73. <mx:Label text="{data.VALOR_MULTA_FORMATCol}" textAlign="right" fontSize="10"/>
  74. </mx:Component>
  75. </mx:itemRenderer>
  76. </mx:DataGridColumn>
  77.  
  78. <mx:DataGridColumn headerText="Juros" dataField="VALOR_JUROS_FORMATCol" width="50" paddingRight="10" >
  79. <mx:itemRenderer>
  80. <mx:Component>
  81. <mx:Label text="{data.VALOR_JUROS_FORMATCol}" textAlign="right" fontSize="10"/>
  82. </mx:Component>
  83. </mx:itemRenderer>
  84. </mx:DataGridColumn>
  85.  
  86. <mx:DataGridColumn headerText="Desconto" dataField="VALOR_DESCONTO_FORMATCol" width="60" paddingRight="10" >
  87. <mx:itemRenderer>
  88. <mx:Component>
  89. <mx:Label text="{data.VALOR_DESCONTO_FORMATCol}" textAlign="right" fontSize="10"/>
  90. </mx:Component>
  91. </mx:itemRenderer>
  92. </mx:DataGridColumn>
  93.  
  94. <mx:DataGridColumn headerText="Pago" dataField="VALOR_PAGO_FORMATCol" width="90" paddingRight="10" >
  95. <mx:itemRenderer>
  96. <mx:Component>
  97. <mx:Label text="{data.VALOR_PAGO_FORMATCol}" fontWeight="bold" textAlign="right" fontSize="10" color="{data.fontColor}" />
  98. </mx:Component>
  99. </mx:itemRenderer>
  100. </mx:DataGridColumn>
  101.  
  102. <!--
  103.  
  104. <mx:DataGridColumn headerText="Valor Reajust." dataField="VALOR_TOTAL_CONVERTIDOCol" width="100" visible="{TIPO_CATEGORIA > 0 ? false : true}">
  105.  
  106. <mx:itemRenderer>
  107. <mx:Component>
  108. <mx:Label text="{data.VALOR_TOTAL_CONVERTIDOCol}" fontWeight="bold" textAlign="right" color="{data.VALORCol != data.VALOR_TOTALCol ? 0xDE3737 : 0x000000}">
  109. </mx:Label>
  110. </mx:Component>
  111. </mx:itemRenderer>
  112. </mx:DataGridColumn>
  113.  
  114. -->
  115.  
  116. <mx:DataGridColumn width="25" headerText="" editable="false" resizable="false" sortable="false" draggable="false">
  117. <mx:itemRenderer>
  118. <mx:Component>
  119. <mx:LinkButton click="{data.CATEGORIA_TIPOCol == 0 ? outerDocument.goToEditDespesa() : outerDocument.(goToEditReceita)}" width="20" icon="@Embed('icons/financeiroCompreCerto/grid/detalhes.png')" toolTip="Editar Registro"/>
  120. </mx:Component>
  121. </mx:itemRenderer>
  122. </mx:DataGridColumn>
  123.  
  124. <mx:DataGridColumn width="60" headerText="Interac." editable="false" resizable="true" sortable="false" draggable="false">
  125. <mx:itemRenderer>
  126. <mx:Component>
  127. <mx:LinkButton click="{outerDocument.gotoInteracao()}" icon="@Embed('icons/interacaoico.png')"
  128. toolTip="Interações" label="{'(' + (data.contador_ContasInteracao_interacoes == null ? 0 : data.contador_ContasInteracao_interacoes) + ')'}"/>
  129. </mx:Component>
  130. </mx:itemRenderer>
  131. </mx:DataGridColumn>
  132.  
  133. <mx:DataGridColumn width="25" headerText="" editable="false" resizable="false" sortable="false" draggable="false">
  134. <mx:itemRenderer>
  135. <mx:Component>
  136. <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"
  137. toolTip="Gerar boleto para a conta selecionada" alpha="{data.CANPRINTCol == 1 ? 1 : 0.2}" enabled="{data.CANPRINTCol == 1 ? true : false}">
  138. </mx:Image>
  139. </mx:Component>
  140. </mx:itemRenderer>
  141. </mx:DataGridColumn>
  142.  
  143. <mx:DataGridColumn dataField="SITUACAOCol" id="SITUACAO_SHOWCol" width="25" headerText="" editable="false" resizable="false" sortable="false" draggable="false">
  144. <mx:itemRenderer>
  145. <mx:Component>
  146. <mx:Image click="{outerDocument.onClickSituacao(source)}" horizontalAlign="center" width="16" height="16" source="{data.STATUS_IMGCol}" maintainAspectRatio="true" scaleContent="false" useHandCursor="true" buttonMode="true"
  147. toolTip="{data.STATUS_TOOLTIP}" alpha="{data.STATUS_DESCCol == 'ABERTA' ? 0.5 : 1}" enabled="{outerDocument.editar}">
  148. </mx:Image>
  149. </mx:Component>
  150. </mx:itemRenderer>
  151. </mx:DataGridColumn>
  152.  
  153. </dc:columns>
  154. </dc:DataGridFilter>
Add Comment
Please, Sign In to add comment