<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{277,33,1019,648}</property>
    <property name="Name">[dlgcaixa]</property>
    <property name="Caption">[Efetuar Pagamentos Diretos]</property>
    <property name="AlwaysOnTop">.F.</property>
    <property name="AutoCenter">.T.</property>
    <property name="FormType">[dlgModal]</property>
    <property name="Modal">.T.</property>
    <property name="ScopeVarObj">[Local]</property>
    <property name="lClipper">.F.</property>
    <property name="lExitOnEnter">.F.</property>
    <property name="lExitOnESC">.T.</property>
    <property name="FromStyle">[Popup]</property>
    <property name="Clipsiblings">.F.</property>
    <property name="Clipchildren">.F.</property>
    <property name="TitleBar">.F.</property>
    <property name="StyleBorder">[0 - No Border]</property>
    <property name="nBackColor">14870505</property>
    <property name="Icon">[]</property>
    <property name="Bitmap">[icon\tel_padrao1.jpg]</property>
    <property name="NoIcon">.F.</property>
    <property name="SystemMenu">.F.</property>
    <property name="Minimizebox">.F.</property>
    <property name="Maximizebox">.F.</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[//skel variavel zFgPeriodo:=.t.
//skel variavel zDe:=s_Datual
//skel variavel zAte:=s_dAtual
//skel variavel zFileMem:=""
//skel variavel oProgressBar:=""]]>
  </method>
  <part class="buttonex">
    <style>
      <property name="Geometry">{320,561,245,52}</property>
      <property name="Name">[oButtonex2]</property>
      <property name="Caption">[&amp;Y - Emitir Recibos de Pagamento]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="" width="0" height="-15" weight="700"/>
      </property>
      <property name="ToolTip">
[Permite Impressao / Reimpressao de Recibos de PAGAMENTO A FORNECEDORES]      </property>
      <property name="TabIndex">9</property>
    </style>
    <method name="onClick">
      <![CDATA[IF .not. QuickDialog("qbe_periodo_ou_todas", "40;5;Parametros",{ {"1;3;CHECKBOX 'Exibe apenas um Periodo ?'", "@zFgPeriodo", @zFgPeriodo, "!", "", ""}, {"3;2;Data Inicial:","@zDe",@zDe,"99.99.9999","zFgPeriodo",""},{"4;2;Data Final..:","@zAte",@zAte,"99.99.9999","zFgPeriodo",""}} ) 
  RETURN .t.
ENDIF

DBCLOSEALL()
IF .NOT. zFgPeriodo
   CiBrow(zFileMem:='sccpped',,'recibos_sccpped')
   zFgPeriodo:=.t.
   RETURN .t.
ENDIF

mensagem("Selecionando pagamentos no caixa entre "+Dtoc(zDe)+" e "+Dtoc(zAte))
Abra ('0NOIDX', r_siga, "sccpped", "sccpped","sccppedl","dtos(cp_dt_lqd)")
oProgressBar:= myHProgressBar():CREATE('Selecionando pagamentos no caixa...')
xDbCopyTo((zFileMem:="mem:_cpped"), "_cpped", {||oProgressBar:STEP(),cp_Dt_lqd>=zDe.AND.cp_dt_lqd<=zAte.and.LEFT(cp_num_ped,2)$"/SX/CX/CF/NC/"},,{||cp_dt_lqd<=zAte}, .t.,, {||DbSeek(Dtos(zDe),.t.)})
oProgressBar:CLOSE() 
mensagem("")
USE (zFileMem) new exclusive 
IF RECCOUNT()=0 
   DBCLOSEAREA()
   ALERT("Nao foram encontrados pagamentos no caixa;dos tipos /SX/CX/CF/NC/;entre "+DTOC(zDe)+" e "+Dtoc(zAte)+";;Exibirei todos os pagamentos do periodo...")
   oProgressBar:= myHProgressBar():CREATE('Selecionando pagamentos no caixa...')
   sccpped->(xDbCopyTo(zFileMem, "_cpped", {||oProgressBar:STEP(),cp_Dt_lqd>=zDe.AND.cp_dt_lqd<=zAte},,{||cp_dt_lqd<=zAte}, .t.,, {||DbSeek(Dtos(zDe),.t.)}))
   oProgressBar:CLOSE() 
   USE (zFileMem) new exclusive 
ENDIF
IF RECCOUNT()=0 
   ALERT("Nao foram encontrados pagamentos no caixa;entre "+DTOC(zDe)+" e "+Dtoc(zAte)+";;Exibirei todos os pagamentos...")
   CiBrow(zFileMem:='sccpped',,'recibos_sccpped')
ELSE
   Brow_Db('recibos_sccpped')
ENDIF 
DbCloseAll()
DbDrop("mem:_cpped")]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{26,561,264,52}</property>
      <property name="Name">[oButtonex8]</property>
      <property name="Caption">[&amp;X - Manutencao nas Contas a Pagar]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="" width="0" height="-15" weight="700"/>
      </property>
      <property name="ToolTip">
[Permite Impressao / Reimpressao de Recibos de PAGAMENTO A FORNECEDORES]      </property>
      <property name="TabIndex">9</property>
    </style>
    <method name="onClick">
      <![CDATA[CiBrow("SCCPPED")]]>
    </method>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{19,313,984,227}</property>
      <property name="Name">[oGroup2]</property>
      <property name="Caption">[Pagamentos Diretos]</property>
      <property name="TextColor">4194304</property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Segoe UI Emoji" width="0" height="-16" weight="700"/>
      </property>
      <property name="TabIndex">14</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{50,361,90,90}</property>
        <property name="Name">[oButtonex6]</property>
        <property name="Caption">[&amp;2]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="Bitmap">[icon\tesou_p1.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Pagto de DESPESA AVULSA ou titulo que não havia sido previamente lancado no CONTAS A PAGAR]        </property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[DbGet("SX_CAIXA",1,,,"SX_CXA01")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{610,361,90,90}</property>
        <property name="Name">[oButtonex12]</property>
        <property name="Caption">[&amp;6]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="Bitmap">[icon\tesou_p5.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow("CP_CSTFX")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{880,361,90,90}</property>
        <property name="Name">[oButtonex13]</property>
        <property name="Caption">[&amp;6]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="Bitmap">[icon\tesou_p6.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow("CP_SUBD")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{190,361,90,90}</property>
        <property name="Name">[oButtonex10]</property>
        <property name="Caption">[&amp;3]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="Bitmap">[icon\tesou_p2.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Pagto de DESPESA AVULSA ou titulo que não havia sido previamente lancado no CONTAS A PAGAR]        </property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[DbGet("SX_CAIXA",1,,,"SX_CXA03AD")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{330,361,90,90}</property>
        <property name="Name">[oButtonex11]</property>
        <property name="Caption">[&amp;4]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="Bitmap">[icon\tesou_p3.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Pagto de DESPESA AVULSA ou titulo que não havia sido previamente lancado no CONTAS A PAGAR]        </property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[DbGet("SX_CAIXA",1,,,"SX_CXA02PORCONTA")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{470,361,90,90}</property>
        <property name="Name">[oButtonex16]</property>
        <property name="Caption">[&amp;5]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="Bitmap">[icon\tesou_p4.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Pagto de DESPESA AVULSA ou titulo que não havia sido previamente lancado no CONTAS A PAGAR]        </property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[DbGet("SX_CAIXA",1,,,"SX_CXA02")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{747,361,90,90}</property>
        <property name="Name">[oButtonex17]</property>
        <property name="Caption">[&amp;D]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Bitmap">[icon\tesou_i5.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[LANCA_CSTFX()]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{39,453,110,61}</property>
        <property name="Name">[oLabel8]</property>
        <property name="Caption">[&amp;2-Pagar Despesa Avulsa, nao Agendada]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{174,453,117,51}</property>
        <property name="Name">[oLabel9]</property>
        <property name="Caption">[&amp;3-Registrar Vales e Adiantamentos]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{315,453,117,65}</property>
        <property name="Name">[oLabel10]</property>
        <property name="Caption">
[&amp;4-Pagar Titulo Por Conta, Quitar Parcialmente]        </property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{456,453,117,68}</property>
        <property name="Name">[oLabel11]</property>
        <property name="Caption">[&amp;5-Quitar Titulo por Numero de Pedido]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{597,453,117,70}</property>
        <property name="Name">[oLabel12]</property>
        <property name="Caption">[&amp;6-Tabela dos Custos Fixos ou Recorrentes]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{869,453,115,49}</property>
        <property name="Name">[oLabel13]</property>
        <property name="Caption">[&amp;7-Tabela de Centros de Custo]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{732,453,117,70}</property>
        <property name="Name">[oLabel14]</property>
        <property name="Caption">[&amp;6-Lancar Custos Fixos do Mes]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{19,101,984,199}</property>
      <property name="Name">[oGroup1]</property>
      <property name="Caption">[Pagar Titulos ja Agendados]</property>
      <property name="TextColor">4194304</property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Segoe UI Emoji" width="0" height="-16" weight="700"/>
      </property>
      <property name="TabIndex">14</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{120,150,90,90}</property>
        <property name="Name">[oButtonex7]</property>
        <property name="Caption">[&amp;1]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Bitmap">[icon\tesou_i1.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Pagamento de Despesa ou Titulo que JA ESTAVA lancada no CONTAS A PAGAR]        </property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[cp_concilia()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{260,150,90,90}</property>
        <property name="Name">[oButtonex5]</property>
        <property name="Caption">[&amp;A]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Bitmap">[icon\tesou_i2.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[cp_concilia(,,, 'semana')]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{400,150,90,90}</property>
        <property name="Name">[oButtonex15]</property>
        <property name="Caption">[&amp;B]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Bitmap">[icon\tesou_i3.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[cp_concilia(,,, 'quinzena')]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{540,150,90,90}</property>
        <property name="Name">[oButtonex3]</property>
        <property name="Caption">[&amp;C]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Bitmap">[icon\tesou_i4.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[cp_concilia(,,, 'mes')]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{680,150,90,90}</property>
        <property name="Name">[oButtonex4]</property>
        <property name="Caption">[&amp;D]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Bitmap">[icon\tesou_i5.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[cp_concilia(,,, 'custofixo')]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{820,150,90,90}</property>
        <property name="Name">[oButtonex9]</property>
        <property name="Caption">[&amp;D]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-1" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Bitmap">[icon\tesou_i6.jpg]</property>
        <property name="PicturePosition">[1-Center]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[cp_concilia(,,, 'vencidos')]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{244,240,117,49}</property>
        <property name="Name">[oLabel3]</property>
        <property name="Caption">[&amp;A-Vencimentos da Semana]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{385,240,117,49}</property>
        <property name="Name">[oLabel4]</property>
        <property name="Caption">[&amp;B-Vencimentos da Quinzena]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{526,240,117,49}</property>
        <property name="Name">[oLabel5]</property>
        <property name="Caption">[&amp;C-Vencimentos do Mes]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{667,240,117,49}</property>
        <property name="Name">[oLabel6]</property>
        <property name="Caption">[&amp;D-Vencimentos de Custos Fixos]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{808,240,117,49}</property>
        <property name="Name">[oLabel7]</property>
        <property name="Caption">[&amp;Z-Baixar titulos Vencidos]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{105,240,117,49}</property>
        <property name="Name">[oLabel2]</property>
        <property name="Caption">[&amp;1-Filtrar Titulos Abertos]</property>
        <property name="Justify">[Center]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Segoe UI Emoji" width="0" height="-15" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{12,37,953,52}</property>
      <property name="Name">[oLabel1]</property>
      <property name="Caption">
[Efetuar Pagamentos sem Autorização Gerencial Prévia]      </property>
      <property name="Justify">[Center]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Segoe UI Emoji" width="0" height="-29" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">15</property>
    </style>
    <method name="onClick">
      <![CDATA[DbGet("SX_CAIXA",1,,,"SX_CXA02")]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{936,577,48,48}</property>
      <property name="Name">[oButtonex14]</property>
      <property name="Id">[IDCANCEL]</property>
      <property name="Caption">[&amp;Cancelar]</property>
      <property name="Anchor">9</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-1" weight="400"/>
      </property>
      <property name="Bitmap">[icon\esc.jpg]</property>
      <property name="Icon">[icon\produto.ico]</property>
      <property name="ToolTip">[Sair ou Cancelar Alteracao]</property>
      <property name="TabIndex">26</property>
    </style>
  </part>
</part>
