<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{362,136,767,470}</property>
    <property name="Name">[CX_FPAG.scr]</property>
    <property name="Caption">[Totais de suas Formas de Pagamento]</property>
    <property name="AlwaysOnTop">.F.</property>
    <property name="AutoCenter">.T.</property>
    <property name="Font">
      <font name="Verdana" width="0" height="-13" weight="400"/>
    </property>
    <property name="FormType">[dlgModal]</property>
    <property name="Modal">.F.</property>
    <property name="ScopeVarObj">[Private]</property>
    <property name="lClipper">.T.</property>
    <property name="lExitOnEnter">.F.</property>
    <property name="lExitOnESC">.T.</property>
    <property name="FromStyle">[Center]</property>
    <property name="Clipsiblings">.F.</property>
    <property name="Clipchildren">.F.</property>
    <property name="TitleBar">.T.</property>
    <property name="StyleBorder">[3 - Sizable (Default)]</property>
    <property name="nBackColor">14215660</property>
    <property name="Icon">[]</property>
    <property name="NoIcon">.F.</property>
    <property name="SystemMenu">.T.</property>
    <property name="Minimizebox">.T.</property>
    <property name="Maximizebox">.T.</property>
    <property name="AbsAlignment">.T.</property>
    <property name="WindowState">[1 - Normal (Default)]</property>
    <property name="minHeight">-1</property>
    <property name="maxHeight">-1</property>
    <property name="minWidth">-1</property>
    <property name="maxWidth">-1</property>
    <property name="ScrollBars">[0 - None (Default)]</property>
    <property name="DSControl">.F.</property>
  </style>
  <method name="onDlgInit">
    <![CDATA[parameters oDlg
oContextMenu:=Hwg_ContextMenu()
hwg_Btn(oToolbar,5,5,54,54)
hwg_TbMt(oToolbar,'13;doget(D_ob);Enter-Edita ;Enter - Edita;;')
d_ob:lEditable = .t.
hwg_TbMt(oToolbar,'0;;;espaco;espaco;')
hwg_TbMt(oToolbar,'27;hwg_oDlgKey(oDlg, 27, nBrwAtivo);Saida;Saida;xml\icon\saida.ico;48;48;')
SetDlgKey(oDlg,8,26,{|| (aBrowses[nBrwAtivo,2])->(moveRec(aBrowses[nBrwAtivo,1],"UP"))})
SetDlgKey(oDlg,8,28,{|| (aBrowses[nBrwAtivo,2])->(moveRec(aBrowses[nBrwAtivo,1],"DOWN"))})
Hwg_EndMenu()
ofObs:SETFOCUS()]]>
  </method>
  <method name="onPaint">
    <![CDATA[Parameters oCtrl,hDC
oCtrl:bpaint:=NIL
D_oB:setFocus()]]>
  </method>
  <part class="panel">
    <style>
      <property name="Geometry">{0,0,767,63}</property>
      <property name="Name">[oToolbar]</property>
      <property name="Anchor">11</property>
    </style>
  </part>
  <part class="status">
    <style>
      <property name="Geometry">{0,440,767,30}</property>
      <property name="Name">[oDlgStatusBar]</property>
      <property name="aParts">{448,112,0}</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{15,227,738,48}</property>
      <property name="Name">[oLabel2]</property>
      <property name="Caption">
[Por favor, informe sua justificativa para as diferenças entre os valores informados em seu fechamento e o calculados pelo sistema:]      </property>
      <property name="font">
        <font name="Lucida Console" width="0" height="-19" weight="400" italic="255"/>
      </property>
      <property name="TabIndex">2</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{15,281,738,116}</property>
      <property name="Name">[ofObs]</property>
      <property name="varName">[m_obs]</property>
      <property name="font">
        <font name="Lucida Bright" width="0" height="-16" weight="400"/>
      </property>
      <property name="Multiline">.T.</property>
      <property name="nMaxLength">10</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">3</property>
    </style>
  </part>
  <part class="browse">
    <style>
      <property name="Geometry">{5,63,756,156}</property>
      <property name="Name">[D_oB]</property>
      <property name="TabIndex">4</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[nBrwAtivo:=1]]>
    </method>
    <method name="onInit">
      <![CDATA[D_oB:bColorSel:= RGB(3,23,133)
D_oB:tColorSel:= RGB(255,255,255)
D_oB:bKeyDown := {|self, wParam| (aBrowses[nBrwAtivo,2])->(hwg_oDlgKey(self, wparam,1)) , .T. }
hwg_TbFi(D_oB, 'Descricao da Forma de Pagamento;if(fcartao>0,"(Ct"+StrZero(fcartao,2)+")","      ")+ctnome;C;@S22; 22;N;')
hwg_TbFi(D_oB, 'Total Informado;cr_valinf;N;999999.99; 9;S;')
hwg_TbFi(D_oB, 'Total Calculado;cr_valor;N;999999.99; 9;S;')
hwg_TbFi(D_oB, 'Diferenca;lTrim(Str(Abs(cr_valinf-cr_valor),10,2))+if(cr_valinf-cr_valor>0," a mais","a menos") ;P;@S17;17;S;')
hwg_TbFi(D_oB, 'Forma de Pagamento;cr_tip_dup;C;XX;  8;N;')
D_oB:Alias := alias()
D_oB:bOther:={|o,m,wp,lp| MessagesBrowse(o,m,wp,lp)}
D_oB:cargo:={.T.,.T.,"VB_FPAG",.F.,.T.,{||.T.} }
AADD(aBrowses,{D_oB,D_oB:Alias,{||.f.},{|| .T.},})]]>
    </method>
  </part>
</part>
