Guest User

Untitled

a guest
Mar 18th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.06 KB | None | 0 0
  1. <mx:State name="Editar">
  2. <mx:SetProperty target="{btnAddNewDespesa}" name="enabled" value="false"/>
  3. <mx:SetProperty target="{btnAddNewReceita}" name="enabled" value="false"/>
  4. <mx:SetProperty target="{filterTxt}" name="enabled" value="false"/>
  5. <mx:SetProperty target="{filterButton}" name="enabled" value="false"/>
  6. <mx:SetProperty name="title" value="Editando Receita *" />
  7. <mx:SetProperty name="width" value="820"/>
  8. <mx:SetProperty name="height" value="670"/>
  9. <mx:SetProperty target="{addDeleteSearchControlBar}" name="width" value="0"/>
  10. <mx:SetProperty target="{addDeleteSearchControlBar}" name="height" value="0"/>
  11. <mx:RemoveChild target="{boxdataGrid}"/>
  12. <mx:RemoveChild target="{controlBarAll}" />
  13.  
  14. <mx:SetProperty target="{btnAddNewDespesa}" name="enabled" value="false"/>
  15. <mx:SetProperty target="{btnAddNewReceita}" name="enabled" value="false"/>
  16. <mx:SetProperty target="{filterTxt}" name="enabled" value="false"/>
  17. <mx:SetProperty target="{filterButton}" name="enabled" value="false"/>
  18. <mx:SetProperty name="width" value="820"/>
  19. <mx:SetProperty name="height" value="670"/>
  20.  
  21. <mx:SetProperty name="title" value="Editando Receita"/>
  22.  
  23. <mx:SetProperty name="width" value="40%"/>
  24. <mx:SetProperty name="minWidth" value="780"/>
  25. <mx:SetProperty name="explicitMinWidth" value="780"/>
  26.  
  27. <mx:SetProperty name="height" value="581"/>
  28. <mx:SetProperty name="minHeight" value="600"/>
  29.  
  30. <mx:SetProperty target="{addDeleteSearchControlBar}" name="width" value="0"/>
  31. <mx:SetProperty target="{addDeleteSearchControlBar}" name="height" value="0"/>
  32. <mx:RemoveChild target="{boxdataGrid}"/>
  33. <mx:RemoveChild target="{controlBarAll}" />
  34.  
  35. <mx:AddChild relativeTo="{MovimentacaoCaixaPanel}" position="lastChild">
  36. <mx:VBox width="100%" height="100%" id="boxEditarState" verticalAlign="top">
  37.  
  38. <!-- STATUS -->
  39. <mx:HBox width="100%" horizontalGap="10" fontWeight="normal" visible="{dataGrid.selectedItem.CONCLUIDOCol}" backgroundColor="#efefef" verticalAlign="bottom" >
  40. <mx:Label text="CONTA CONCLUÍDA" color="blue" fontSize="12" width="100%" fontWeight="bold" visible="{dataGrid.selectedItem.CONCLUIDOCol}"/>
  41. </mx:HBox>
  42.  
  43. <mx:HBox width="100%" height="28" verticalAlign="middle" >
  44. <!-- CÓDIGO E DESCRIÇÃO -->
  45. <mx:HBox width="100%" height="28" backgroundColor="#efefef" verticalAlign="middle">
  46. <mx:Label text="Código:" fontWeight="bold" textAlign="right" width="110"/>
  47.  
  48. <mx:TextInput id="CODIGOCol_Editar" text="{dataGrid.selectedItem.CODIGOCol}" enabled="false" width="65" textAlign="right"/>
  49.  
  50. <mx:Label text="Descrição:" fontWeight="bold" textAlign="right" width="70"/>
  51.  
  52.  
  53. <controls:MasterTextInput
  54. capsType="upercase" id="DESCRICAOCol_Editar" text="{dataGrid.selectedItem.DESCRICAOCol}"
  55. width="100%"
  56. fontWeight="normal"
  57. enabled="{dataGrid.selectedItem.CONCLUIDOCol ? false : (dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '')}"
  58. backgroundColor="#ededed" />
  59.  
  60. </mx:HBox>
  61. </mx:HBox>
  62.  
  63. <!-- COMBOS DA TELA -->
  64.  
  65. <!-- COMBO CONTA BANCÁRIA -->
  66. <mx:HBox width="100%" height="28" verticalAlign="middle">
  67. <mx:HBox width="100%" height="100%" backgroundColor="#efefef" verticalAlign="middle">
  68. <mx:HBox width="100%" height="100%" verticalAlign="middle">
  69. <mx:Label text="Conta Bancária:" fontWeight="bold" textAlign="right" width="110"/>
  70. <mx:ComboBox id="COMBO_CONTABANCARIA_Editar" text="" editable="false" dataProvider="{dataArrContaBancaria}" change="validaShowBoleto()"
  71. minWidth="185" width="100%" prompt="Selecione a Conta Bancária..." />
  72. </mx:HBox>
  73. <mx:HBox width="32" height="100%" verticalAlign="middle">
  74. <mx:Button icon="@Embed('icons/SearchRecord.png')" width="30"
  75. click="pesquisa(dataArrContaBancaria, function(itemSelecionado:*):void{COMBO_CONTABANCARIA_Editar.selectedItem=itemSelecionado;} )"/>
  76. </mx:HBox>
  77. </mx:HBox>
  78. </mx:HBox>
  79.  
  80. <!-- COMBO PLANO DE CONTAS -->
  81. <mx:HBox width="100%" height="28" verticalAlign="middle">
  82. <mx:HBox width="100%" height="100%" backgroundColor="#efefef" verticalAlign="middle">
  83. <mx:HBox width="100%" height="100%" verticalAlign="middle">
  84. <mx:Label text="Plano de Contas:" fontWeight="bold" textAlign="right" width="110"/>
  85. <TreeComboBox:TreeComboBox id="COMBO_CATEGORIACol_Editar" labelField="@label"
  86. arrProvider="{dataArrCategoria}" enabled="{dataGrid.selectedItem.CONCLUIDOCol ? false : (dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '')}"
  87. minWidth="185" width="100%" selectFather="false" prompt="Selecione o Plano de Contas"/>
  88. </mx:HBox>
  89. <mx:HBox width="32" height="100%" verticalAlign="middle">
  90. <mx:Button icon="@Embed('icons/SearchRecord.png')" width="30" enabled="{dataGrid.selectedItem.CONCLUIDOCol ? false : (dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '')}"
  91. click="pesquisaTreeFolder(COMBO_CATEGORIACol_Editar,dataArrCategoria, function(itemSelecionado:*):void{ COMBO_CATEGORIACol_Editar.selectedItem = itemSelecionado; } )"/>
  92. </mx:HBox>
  93. </mx:HBox>
  94. </mx:HBox>
  95.  
  96. <!-- CENTRO DE CUSTO -->
  97. <mx:HBox width="100%" height="28" verticalAlign="middle">
  98. <mx:HBox width="100%" height="100%" backgroundColor="#efefef" verticalAlign="middle">
  99. <mx:HBox width="100%" height="28" verticalAlign="middle">
  100. <mx:Label text="Centro de Custo:" fontWeight="bold" textAlign="right" width="110" />
  101. <CentroCustoInputWidth:CentroCustoComponentWidth id="CENTRO_CUSTO_COMPONENT_EDITAR" showBotaoPesquisar="true" showBotaoLimpar="true" />
  102. </mx:HBox>
  103. </mx:HBox>
  104. </mx:HBox>
  105.  
  106.  
  107.  
  108. <!-- DATAS DO DOCUMENTO DE CONTA -->
  109. <mx:HBox width="100%" height="28">
  110. <mx:HBox width="100%" height="100%" backgroundColor="#efefef" verticalAlign="middle">
  111.  
  112. <mx:Label text="Data Emissão:" fontWeight="bold" textAlign="right" width="110"/>
  113.  
  114. <mx:DateField id="DT_EMISSAOCol_Editar" text="{dataGrid.selectedItem.DT_EMISSAOCol}" width="126" textAlign="center" enabled="{dataGrid.selectedItem.CONCLUIDOCol ? false : (dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '')}"
  115. formatString="DD/MM/YYYY" monthNames="{nomeMeses}" dayNames="{nomeDias}" yearNavigationEnabled="true"/>
  116.  
  117. <mx:Label text="Data Vencimento:" fontWeight="bold" textAlign="right" width="110"/>
  118.  
  119. <mx:DateField id="DT_VENCIMENTOCol_Editar" text="{dataGrid.selectedItem.DT_VENCIMENTOCol}" width="120" textAlign="center" enabled="{dataGrid.selectedItem.CONCLUIDOCol ? false : (dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '')}"
  120. formatString="DD/MM/YYYY" monthNames="{nomeMeses}" dayNames="{nomeDias}"/>
  121. <mx:HBox width="100%" height="28" backgroundColor="#efefef" verticalAlign="middle" horizontalAlign="right" paddingRight="10">
  122.  
  123. <mx:Label text="Data Pagamento:" fontWeight="bold" textAlign="right" width="110"/>
  124.  
  125. <mx:DateField id="DT_PAGAMENTOCol_Editar" text="{dataGrid.selectedItem.DT_PAGAMENTOCol}" width="110" textAlign="center" enabled="false"
  126. formatString="DD/MM/YYYY" monthNames="{nomeMeses}" dayNames="{nomeDias}"/>
  127. </mx:HBox>
  128. </mx:HBox>
  129. </mx:HBox>
  130.  
  131.  
  132.  
  133. <!-- CHECK BOXES ;-) -->
  134.  
  135. <!-- BOLETO / BLOQUEIO ;-) -->
  136.  
  137. <mx:HBox width="100%" height="28" verticalAlign="middle" >
  138. <!-- GERAR BOLETO -->
  139. <mx:HBox width="100%" height="28" backgroundColor="#efefef" verticalAlign="middle">
  140. <mx:Label text="Gera Boleto:" fontWeight="bold" textAlign="right" width="110" />
  141.  
  142. <mx:CheckBox id="gerarBoleto_Editar" toolTip="Selecione para que a conta possa gerar boletos"
  143. enabled="{dataGrid.selectedItem.CONCLUIDOCol ? false : (dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '' && !gerarBoleto_Editar.selected ) }"
  144. selected="{dataGrid.selectedItem.GERA_BOLETOCol}" click="validacaoContaBoleto()"/>
  145.  
  146. <mx:Text fontSize="10" visible="{gerarBoleto_Editar.selected}" fontWeight="bold" selectable="false"
  147. text="Verifique os dados" color="red" width="20%"/>
  148.  
  149. <mx:Label text="Bloqueio Acesso se não Quitada:" fontWeight="bold" textAlign="right" width="220"/>
  150.  
  151. <mx:CheckBox id="bloqAcesso_Editar" change="changeBxBloqueoAcesso()"
  152. selected="{dataGrid.selectedItem.BLOQUEAR_ACESSOCol}" enabled="{dataGrid.selectedItem.CONCLUIDOCol ? false : (dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '')}"
  153. toolTip="Selecione para Bloqueiar acesso ao sistema caso não a fatura não seja Paga"/>
  154.  
  155. <mx:HBox width="100%" height="28" backgroundColor="#efefef" verticalAlign="middle" horizontalAlign="right" paddingRight="10">
  156. <mx:Label text="Nº boleto :" fontWeight="bold"/>
  157. <mx:TextInput id="NUMERO_BOLETO_Editar" text="{dataGrid.selectedItem.NUMERO_BOLETOCol}" editable="{ !gerarBoleto_Editar.selected }" width="110" textAlign="right" />
  158. </mx:HBox>
  159.  
  160.  
  161.  
  162. </mx:HBox>
  163. </mx:HBox>
  164.  
  165.  
  166. <mx:HBox width="100%" height="28" verticalAlign="middle" >
  167. <!-- POSSUI NOTA FISCAL -->
  168. <mx:HBox width="100%" height="28" backgroundColor="#efefef" verticalAlign="middle">
  169. <mx:Label text="Nota Fiscal:" fontWeight="bold" textAlign="right" width="110"/>
  170.  
  171. <mx:CheckBox label="Possui Nota Fiscal" id="checkNotaFiscal_Editar" change="validaCheckNotaFiscal()" selected="false" />
  172.  
  173. <mx:Label text="Número da N.F.:" fontWeight="bold" />
  174. <controls:MasterTextInput id="NF_NUMERO_Editar" text="{dataGrid.selectedItem.NOTA_FISCAL_NUMEROCol}" width="110" paddingRight="5" textAlign="right"/>
  175.  
  176. <mx:HBox width="100%" height="28" backgroundColor="#efefef" verticalAlign="middle" horizontalAlign="right" paddingRight="10">
  177.  
  178. <mx:Label text="Data de Emissão:" fontWeight="bold" />
  179. <mx:DateField id="NF_DT_EMISSAO_Editar" text="" width="110" textAlign="center"
  180. formatString="DD/MM/YYYY" monthNames="{nomeMeses}" dayNames="{nomeDias}" yearNavigationEnabled="true"/>
  181.  
  182. </mx:HBox>
  183. </mx:HBox>
  184. </mx:HBox>
  185.  
  186. <mx:HBox width="100%" height="48" verticalAlign="middle" >
  187. <!-- OBSERVAÇÕES DA CONTA -->
  188. <mx:HBox width="100%" height="100%" backgroundColor="#efefef" verticalAlign="middle">
  189.  
  190. <mx:Label text="Observação:" fontWeight="bold" textAlign="right" width="110"/>
  191.  
  192. <mx:TextArea width="100%" id="OBSERVACAOCol_Editar" text="{dataGrid.selectedItem.OBSERVACAOCol}" enabled="{dataGrid.selectedItem.CONCLUIDOCol ? false : (dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '')}" height="100%"/>
  193.  
  194. </mx:HBox>
  195. </mx:HBox>
  196.  
  197. <!-- Botões e dados malucos -->
  198.  
  199. <mx:HBox width="100%" horizontalAlign="left" height="85" verticalAlign="bottom">
  200. <mx:Form width="100%" height="85">
  201. <mx:FormItem width="100%" label="Parcelamento:" visible="{dataGrid.selectedItem.TOTAL_PARCELACol > 1}">
  202. <mx:HBox verticalAlign="middle">
  203. <mx:Label fontWeight="bold" text="{'Parcela ' + dataGrid.selectedItem.PARCELACol + ' de ' + dataGrid.selectedItem.TOTAL_PARCELACol}" />
  204. <mx:Spacer width="100%" />
  205. <mx:HBox>
  206. <mx:CheckBox width="100%" id="chk_ant_Edit" label="Alterar parcelas anteriores." selected="false" enabled="{dataGrid.selectedItem.CONCLUIDOCol ? false : (dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '')}"/>
  207. <mx:CheckBox width="100%" id="chk_post_Edit" label="Alterar parcelas posteriores." selected="false" enabled="{dataGrid.selectedItem.CONCLUIDOCol ? false : (dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '')}"/>
  208. </mx:HBox>
  209. </mx:HBox>
  210. </mx:FormItem>
  211. </mx:Form>
  212. </mx:HBox>
  213.  
  214. <mx:HRule width="100%" />
  215.  
  216. <mx:HBox width="100%" horizontalAlign="left" height="35" verticalAlign="bottom">
  217.  
  218. <mx:HBox width="46%" horizontalAlign="left">
  219. <mx:Button icon="@Embed(source='icons/DeleteRecord.png')" toolTip="Excluir conta"
  220. width="40" height="32" click="openExcluir(event)"/>
  221. </mx:HBox>
  222.  
  223. <mx:Button icon="@Embed(source='icons/financeiroCompreCerto/juridico24x24.png')" toolTip="Enviar para Jurídico"
  224. width="40" height="35" click="enviarParaJuridico()" enabled="{dataGrid.selectedItem.CONCLUIDOCol ? false : !editar ? false:true}"/>
  225. <mx:Button label="Conta Renegociada" height="35" width="160" visible="{dataGrid.selectedItem.CODIGO_WAS_RENEGOCIADACol != ''}"
  226. click= " ListarContas.showConta(parseInt(dataGrid.selectedItem.CODIGO_WAS_RENEGOCIADACol ))"
  227. icon="@Embed(source='icons/financeiroCompreCerto/grid/negociada.png')"/>
  228.  
  229. <mx:Button label="Renegociar Conta" height="35" width="136" enabled="{editar}" visible="{!dataGrid.selectedItem.CONCLUIDOCol ? ( dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '' ? true : false) : false }"
  230. click= "renegociarConta()"
  231. icon="@Embed(source='icons/financeiroCompreCerto/grid/negociada.png')" />
  232.  
  233. <mx:Button label="Interações" icon="@Embed(source='../../../icons/comentarios.png')" height="35" width="160"
  234. click="ContasInteracao.show(dataGrid.selectedItem.CODIGOCol, editar)"/>
  235.  
  236. <mx:HBox width="100%" horizontalAlign="center">
  237. <mx:Button label="Concluir Conta" height="35" width="136" enabled="{editar}" visible="{!dataGrid.selectedItem.CONCLUIDOCol ? ( dataGrid.selectedItem.CODIGO_RENEGOCIADACol == '' ? true : false) : false }"
  238. click= "goToConcluirContaState()"
  239. icon="@Embed(source='icons/financeiroCompreCerto/grid/pago.png')" />
  240. </mx:HBox>
  241.  
  242. <mx:HBox width="100%" horizontalAlign="right">
  243. <mx:Button label="Salvar" id="btnSubmit_Edit" click="updateItem()" icon="@Embed('icons/padrao/save.png')" enabled="{editar}" height="35" width="115"/>
  244. <mx:Button label="Cancelar" id="btnCancel_Edit" click="goToDefaultState(false)" height="35" width="115" icon="@Embed('icons/financeiroCompreCerto/grid/cancelar.png')"/>
  245. </mx:HBox>
  246. </mx:HBox>
  247. </mx:VBox>
  248.  
  249. </mx:AddChild>
  250.  
  251. </mx:State>
Add Comment
Please, Sign In to add comment