<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{215,73,1101,593}</property>
    <property name="Name">[sx_cxa02.tel]</property>
    <property name="Caption">[Tesouraria: Pagamento de Titulo]</property>
    <property name="AlwaysOnTop">.F.</property>
    <property name="AutoCenter">.T.</property>
    <property name="Font">
      <font name="Arial" width="0" height="-21" weight="400"/>
    </property>
    <property name="FormType">[dlgModal]</property>
    <property name="Modal">.F.</property>
    <property name="ScopeVarObj">[Local]</property>
    <property name="lClipper">.T.</property>
    <property name="lExitOnEnter">.T.</property>
    <property name="lExitOnESC">.T.</property>
    <property name="Variables">
{modus,osoSaySX_CONTA,osoSayCP_COD_FOR,osoSayCP_DIVISAO,osoSayCP_SUBDIV,osoSayCP_SITUACA,osoSayCP_LOCAL}    </property>
    <property name="FromStyle">[Popup]</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">16777215</property>
    <property name="Icon">[]</property>
    <property name="Bitmap">[form4_.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="onFormInit">
    <![CDATA[parameters o, p1
modus:=p1]]>
  </method>
  <method name="onDlgInit">
    <![CDATA[if(modus<>NIL,SetWindowText( oDlg:handle, modus ),)
//skel VARIAVEL z_divcompras=" "
//skel VARIAVEL m_acesso = reccount()+1
//skel VARIAVEL m_sx_ACESSO := (DbGoBottom(),if(sx_acesso>0,sx_acesso+1,RecCount()))
//skel VARIAVEL m_cp_tip_lqd = 1
//skel VARIAVEL zFgEdit = .f.
//skel VARIAVEL m_tipo = "Retirada"
//skel VARIAVEL m_grupo = 2
//skel VARIAVEL m_fg_contab = " "
//skel VARIAVEL m_data = s_datual
//skel VARIAVEL m_sx_Conta=GetCtaTesou("ES")
//skel VARIAVEL zbSetGet0={||m_cp_num_ped:=cp_num_ped,m_cp_divisao:=cp_divisao,m_cp_subdiv:=cp_subdiv,m_cp_situaca:=cp_situaca,m_cp_local:=cp_local}
//skel VARIAVEL zbSetGet={||sccpped->(m_desc:=pad('Tit '+Alltrim(sccpfor->CP_FANTASI)+' Vencto '+Dtoc(cp_dt_venc),len(m_desc)),m_Valor:=cp_valor,eVal(zbSetGet0)),RefreshGetList(),.f.}
//skel VARIAVEL zbSubD={||cSubD:=StrZero(m_CP_DIVISAO,3),m_CP_SUBDIV:=cSubD+SubStr(m_CP_SUBDIV,4),RefreshGetList(),cp_subd->(DbSeek(cSubD))}
//skel VARIAVEL zQtdParcelas=0
//skel VARIAVEL zIntervaloParcelas:=30
//skel VARIAVEL zDtPrimeira:=Date()+30
//skel VARIAVEL zValorParcelas:=0
//skel VARIAVEL zbGetParcelas=#TEXTO_FONTE
//skel    Private zaLinesTela:={}
//skel    // Se sx_conta->CP_COD_FOR>0 eh porque a conta pagadora eh um cartao
//skel    // Soh deve exibir tela de parcelamento do debito em cartao, se a conta destino nao for o proprio bnds, por exemplo
//skel    if sx_conta->CP_COD_FOR>0 .and. m_CP_COD_FOR<>sx_conta->CP_COD_FOR
//skel       aAdd( zaLinesTela, {"2;3;Quantidade de Parcelas...:", "@zQtdParcelas",   @zQtdParcelas,  "999", "zQtdParcelas:=if(zQtdParcelas=0,1,zQtdParcelas),RefreshGetList()", "zQtdParcelas>0" } )
//skel       aAdd( zaLinesTela, {"3;3;Valor das Parcelas ......:", "@zValorParcelas", @zValorParcelas, "999999999.99", "zQtdParcelas>0.and.(zValorParcelas:=m_valor/zQtdParcelas,RefreshGetList())", "" } )
//skel       aAdd( zaLinesTela, {"4;3;Intervalor Entre Parcelas:", "@zIntervaloParcelas",  @zIntervaloParcelas,  "99", "zQtdParcelas>0", "" } )
//skel       aAdd( zaLinesTela, {"5;3;Vencimento da Primeira...:", "@zDtPrimeira",    @zDtPrimeira,  "99.99.9999", "zQtdParcelas>0", "" } )
//skel       Return QuickDialog("SxGet_PgtoCartao","45;6;Pagamento com Cartao", zaLinesTela)
//skel    else
//skel       Return .t.
//skel    endif
//skel #FIM_TEXTO_FONTE
//skel VARIAVEL #TEXTO_FONTE
//skel    if(select("SX_CONTA")=0, Abra_arq("SX_CONTA"), "")
//skel    if(select("SCCPFOR")=0,  Abra_arq("SCCPFOR"),  "")
//skel    if(select("SCCPPED")=0,  Abra_arq("SCCPPED",.f.,"0",r_siga,"SCCPPED","sccppdff,str(cp_cod_for,5)+cp_duplic"), "")
//skel    if(select("CP_SUBD")=0,  Abra_arq("CP_SUBD"),  "")
//skel    if(select("CP_DIVIS")=0, Abra_arq("CP_DIVIS"), "")
//skel    DbSelectArea("SX_CAIXA")
//skel #FIM_TEXTO_FONTE
//skel VARIAVEL zbSetGet=#TEXTO_FONTE
//skel     Private cSubd
//skel     m_desc:=SccpPed->(pad('Tit '+Alltrim(sccpfor->CP_FANTASI)+' Vencto '+Dtoc(cp_dt_venc),len(m_desc)))
//skel     SccpPed->(m_cp_divisao:=cp_divisao,m_cp_subdiv:=cp_subdiv,m_cp_num_ped:=cp_num_ped,m_cp_situaca:=cp_situaca,m_cp_local:=cp_local)
//skel     SccpPed->(m_Valor:=if(cp_valor-cp_val_lqd>0,cp_valor-cp_val_lqd,0), m_cp_valor:=cp_valor, m_cp_val_lqd:=cp_val_lqd)
//skel     se cp_divis->(DbSeek(m_cp_divisao)) entao osoSayCp_Divisao:SetText(cp_divis->DESC) senao (m_cp_subdiv:=StrZero(m_CP_DIVISAO,3), osoSayCp_Divisao:SetText("Nao Cadastrada"))
//skel     se cp_subd->(DbSeek(m_cp_subdiv)) entao osoSayCp_SubDiv:SetText(Cp_SubD->DESC) senao (m_cp_subdiv:=StrZero(m_CP_DIVISAO,3), osoSayCp_SubDiv:SetText("*Sem SubDivisao*"))
//skel    (osoSayCp_Divisao:Refresh(), osoSayCp_SubDiv:Refresh(), RefreshGetList())
//skel    Return .t.
//skel #FIM_TEXTO_FONTE
//skel comando depois Sx_caixa('GRAVE_PAGAMENTO_AGENDADO')
//skel COMANDO SAIDA #TEXTO_FONTE
//skel    Sccpped->(DbCloseArea())
//skel    sx_conta->(DbCloseArea())
//skel    cp_subd->(DbCloseArea())
//skel    cp_divis->(DbCloseArea())
//skel    sccpfor->(DbCloseArea())
//skel    DbSelectArea("SX_CAIXA")
//skel #FIM_TEXTO_FONTE
SET(5,1960) ]]>
  </method>
  <part class="editbox">
    <style>
      <property name="Geometry">{313,118,81,42}</property>
      <property name="Name">[oSX_CONTA]</property>
      <property name="varName">[m_SX_CONTA]</property>
      <property name="font">
        <font name="" width="0" height="-29" weight="400"/>
      </property>
      <property name="nMaxLength">3</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">1</property>
    </style>
    <method name="onLostFocus">
      <![CDATA[PSQ_BROW('SX_CONTA','PSXCONTA','M_SX_CONTA','N','S',6,30,'CT_TITULO','@S18','',,oSX_CONTA,osoSaySX_CONTA)]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{748,105,107,26}</property>
      <property name="Name">[oSaysx_ACESSO]</property>
      <property name="Caption">[Acesso...........:]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">2</property>
    </style>
  </part>
  <part class="ownerbutton">
    <style>
      <property name="Geometry">{398,118,16,16}</property>
      <property name="Name">[oboSX_CONTA]</property>
      <property name="BtnBitmap">[smPreview]</property>
      <property name="lResource">.T.</property>
      <property name="TabIndex">2</property>
    </style>
    <method name="onClick">
      <![CDATA[PSQ_BROW('SX_CONTA','PSXCONTA','M_SX_CONTA','N','S',6,30,'CT_TITULO','@S18','','EXIBA',oSX_CONTA,osoSaySX_CONTA)]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{748,138,103,26}</property>
      <property name="Name">[oSayTIPO]</property>
      <property name="Caption">[Tipo ........:]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">3</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{313,164,91,42}</property>
      <property name="Name">[oCP_COD_FOR]</property>
      <property name="varName">[m_CP_COD_FOR]</property>
      <property name="font">
        <font name="" width="0" height="-29" weight="400"/>
      </property>
      <property name="nMaxLength">5</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">3</property>
    </style>
    <method name="onLostFocus">
      <![CDATA[CHK_LASTKEY(5).OR.PSQ_BROW('SCCPFOR','PSCCPFOR','M_CP_COD_FOR','N','N',7,30,'CP_NOME','@S25','',,oCP_COD_FOR,osoSayCP_COD_FOR)]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{750,173,69,26}</property>
      <property name="Name">[oSayDATA]</property>
      <property name="Caption">[Data .:]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">4</property>
    </style>
  </part>
  <part class="ownerbutton">
    <style>
      <property name="Geometry">{406,164,16,16}</property>
      <property name="Name">[oboCP_COD_FOR]</property>
      <property name="BtnBitmap">[smPreview]</property>
      <property name="lResource">.T.</property>
      <property name="TabIndex">4</property>
    </style>
    <method name="onClick">
      <![CDATA[PSQ_BROW('SCCPFOR','PSCCPFOR','M_CP_COD_FOR','N','N',7,30,'CP_NOME','@S25','','EXIBA',oCP_COD_FOR,osoSayCP_COD_FOR)]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{13,118,280,42}</property>
      <property name="Name">[oSaySX_CONTA]</property>
      <property name="Caption">[Conta Tesouraria:]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-32" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">5</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{314,211,220,42}</property>
      <property name="Name">[oCP_DUPLIC]</property>
      <property name="varName">[m_CP_DUPLIC]</property>
      <property name="font">
        <font name="" width="0" height="-29" weight="400"/>
      </property>
      <property name="nMaxLength">10</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">5</property>
    </style>
    <method name="onLostFocus">
      <![CDATA[IF CHK_LASTKEY(5).OR.(PSQ_BROW('SCCPPED','PSCCPPD1','STR(M_CP_COD_FOR,5)+if(empty(M_CP_DUPLIC),"zyzyzyz",m_cp_duplic)','N','S',4,5,'','','CP_DUPLIC',,oCP_DUPLIC).AND.m_cp_cod_for=sccpped->cp_cod_for.and.ALLTRIM(M_CP_DUPLIC)=alltrim(sccpped->cp_duplic))
   IF DAY(SCCPPED->CP_DT_LQD)=0
      RETURN EVAL(zbSetGet)
   ELSE
      EVAL(zbSetGet)
      ALERT("Titulo ja liquidado! Escolha outro!")
   ENDIF
ENDIF
RETURN .f.]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{175,13,838,71}</property>
      <property name="Name">[oLabel1]</property>
      <property name="Caption">[Pagamento de Titulo Agendado]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial Black" width="0" height="-48" weight="900"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">5</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{12,164,284,43}</property>
      <property name="Name">[oSayCP_COD_FOR]</property>
      <property name="Caption">[Fornecedor..........:]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-32" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">6</property>
    </style>
  </part>
  <part class="ownerbutton">
    <style>
      <property name="Geometry">{539,211,18,19}</property>
      <property name="Name">[oboCP_DUPLIC]</property>
      <property name="BtnBitmap">[smPreview]</property>
      <property name="lResource">.T.</property>
      <property name="TabIndex">6</property>
    </style>
    <method name="onClick">
      <![CDATA[PSQ_BROW('SCCPPED','PSCCPPD1','STR(M_CP_COD_FOR,5)+M_CP_DUPLIC','N','S',4,5,'','','CP_DUPLIC','EXIBA',oCP_DUPLIC,)]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{14,211,281,42}</property>
      <property name="Name">[oSayCP_DUPLIC]</property>
      <property name="Caption">[Duplicata.............:]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-32" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">7</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{331,298,187,42}</property>
      <property name="Name">[oVALOR]</property>
      <property name="varName">[m_VALOR]</property>
      <property name="font">
        <font name="" width="0" height="-29" weight="400"/>
      </property>
      <property name="cPicture">[@E 99,999.99]</property>
      <property name="nMaxLength">11</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">7</property>
    </style>
    <method name="onLostFocus">
      <![CDATA[eVal(zbGetParcelas)]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{745,296,96,26}</property>
      <property name="Name">[oSaycp_num_ped]</property>
      <property name="Caption">[Cod.Pedid..:]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">8</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{331,345,397,82}</property>
      <property name="Name">[oDESC]</property>
      <property name="varName">[m_DESC]</property>
      <property name="font">
        <font name="" width="0" height="-19" weight="400"/>
      </property>
      <property name="Multiline">.T.</property>
      <property name="nMaxLength">80</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">8</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{749,210,103,26}</property>
      <property name="Name">[oSayCP_DIVISAO]</property>
      <property name="Caption">[Div. Despesa:]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">9</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{748,247,103,26}</property>
      <property name="Name">[oSayCP_SUBDIV]</property>
      <property name="Caption">[Subdiv.Desp.:]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">10</property>
    </style>
  </part>
  <part class="button">
    <style>
      <property name="Geometry">{151,448,400,110}</property>
      <property name="Name">[oOwnerbutton1]</property>
      <property name="Id">[IDOK]</property>
      <property name="Caption">[&amp;OK]</property>
      <property name="font">
        <font name="" width="0" height="-48" weight="400"/>
      </property>
      <property name="TabIndex">10</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{103,259,226,33}</property>
      <property name="Name">[oLabel2]</property>
      <property name="Caption">[Valor ja Adiantado:]</property>
      <property name="Justify">[Right]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-23" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">10</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{749,332,92,26}</property>
      <property name="Name">[oSayCP_SITUACA]</property>
      <property name="Caption">[Situacao....:]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">11</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{331,259,173,35}</property>
      <property name="Name">[ocp_val_lqd]</property>
      <property name="varName">[m_cp_val_lqd]</property>
      <property name="font">
        <font name="" width="0" height="-21" weight="700"/>
      </property>
      <property name="cPicture">[@E 9999,999.99]</property>
      <property name="nMaxLength">11</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">11</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{749,368,92,26}</property>
      <property name="Name">[oSayCP_LOCAL]</property>
      <property name="Caption">[Portador....:]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">12</property>
    </style>
  </part>
  <part class="button">
    <style>
      <property name="Geometry">{590,448,400,110}</property>
      <property name="Name">[oOwnerbutton2]</property>
      <property name="Id">[IDCANCEL]</property>
      <property name="Caption">[&amp;Cancela]</property>
      <property name="font">
        <font name="" width="0" height="-48" weight="400"/>
      </property>
      <property name="TabIndex">12</property>
      <property name="TabStop">.F.</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{749,405,92,26}</property>
      <property name="Name">[oSayGRUPO]</property>
      <property name="Caption">[Gr.Contabil.:]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">13</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{881,401,121,22}</property>
      <property name="Name">[oSay0018]</property>
      <property name="Caption">[Informar 1 ou 2]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">14</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{13,298,318,36}</property>
      <property name="Name">[oSayVALOR]</property>
      <property name="Caption">[Valor Pendente:]</property>
      <property name="Justify">[Right]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-29" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">15</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{16,345,313,41}</property>
      <property name="Name">[oSayDESC]</property>
      <property name="Caption">[Obs. Complementar...:]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-29" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">16</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{427,118,296,42}</property>
      <property name="Name">[osoSaySX_CONTA]</property>
      <property name="Caption">[...]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-27" weight="400"/>
      </property>
      <property name="TabIndex">17</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{428,164,296,42}</property>
      <property name="Name">[osoSayCP_COD_FOR]</property>
      <property name="Caption">[...]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-19" weight="400"/>
      </property>
      <property name="TabIndex">18</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{930,210,162,32}</property>
      <property name="Name">[osoSayCP_DIVISAO]</property>
      <property name="Caption">[...]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-13" weight="400"/>
      </property>
      <property name="TabIndex">19</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{950,247,142,33}</property>
      <property name="Name">[osoSayCP_SUBDIV]</property>
      <property name="Caption">[...]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-13" weight="400"/>
      </property>
      <property name="TabIndex">20</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{892,328,200,25}</property>
      <property name="Name">[osoSayCP_SITUACA]</property>
      <property name="Caption">[...]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="400"/>
      </property>
      <property name="TabIndex">21</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{908,364,185,25}</property>
      <property name="Name">[osoSayCP_LOCAL]</property>
      <property name="Caption">[...]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="400"/>
      </property>
      <property name="TabIndex">22</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{857,105,91,25}</property>
      <property name="Name">[osx_ACESSO]</property>
      <property name="varName">[m_sx_ACESSO]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="400"/>
      </property>
      <property name="nMaxLength">6</property>
      <property name="Border">.F.</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">100</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{857,138,93,25}</property>
      <property name="Name">[oTIPO]</property>
      <property name="varName">[m_TIPO]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="400"/>
      </property>
      <property name="nMaxLength">8</property>
      <property name="Border">.F.</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">102</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
  </part>
  <part class="datepicker">
    <style>
      <property name="Geometry">{857,173,128,25}</property>
      <property name="Name">[oDATA]</property>
      <property name="varName">[m_DATA]</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="400"/>
      </property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">103</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{858,210,41,25}</property>
      <property name="Name">[oCP_DIVISAO]</property>
      <property name="varName">[m_CP_DIVISAO]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="400"/>
      </property>
      <property name="nMaxLength">3</property>
      <property name="Border">.F.</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">104</property>
    </style>
    <method name="onLostFocus">
      <![CDATA[CHK_LASTKEY(5).OR.PSQ_BROW('CP_DIVIS','PCPDIVIF','M_CP_DIVISAO','N','S',11,30,'DESC','@S18','',,oCP_DIVISAO,osoSayCP_DIVISAO)]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{857,247,62,25}</property>
      <property name="Name">[oCP_SUBDIV]</property>
      <property name="varName">[m_CP_SUBDIV]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="400"/>
      </property>
      <property name="nMaxLength">5</property>
      <property name="Border">.F.</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">105</property>
    </style>
    <method name="onLostFocus">
      <![CDATA[CHK_LASTKEY(5).OR.!CP_SUBD->(DBSEEK(STRZERO(M_CP_DIVISAO,3))).OR.PSQ_BROW('CP_SUBD','PCPSUBDF','M_CP_SUBDIV','N','S',12,30,'SDDESC','@S18','',,oCP_SUBDIV,osoSayCP_SUBDIV)]]>
    </method>
    <method name="onGetFocus">
      <![CDATA[eval(zbSubD)]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{842,296,124,25}</property>
      <property name="Name">[ocp_num_ped]</property>
      <property name="varName">[m_cp_num_ped]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="400"/>
      </property>
      <property name="nMaxLength">11</property>
      <property name="Border">.F.</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">106</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[eval(zbSetGet)]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{842,326,21,25}</property>
      <property name="Name">[oCP_SITUACA]</property>
      <property name="varName">[m_CP_SITUACA]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="400"/>
      </property>
      <property name="nMaxLength">1</property>
      <property name="Border">.F.</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">107</property>
    </style>
    <method name="onLostFocus">
      <![CDATA[CHK_LASTKEY(5).OR.PSQ_BROW('SI_SITDP','PSISITDP','M_CP_SITUACA','N','N',13,30,'CR_SITUACA','@S18','',,oCP_SITUACA,osoSayCP_SITUACA)]]>
    </method>
    <method name="onGetFocus">
      <![CDATA[x_operacao=1.or.x_operacao=2]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{843,366,41,25}</property>
      <property name="Name">[oCP_LOCAL]</property>
      <property name="varName">[m_CP_LOCAL]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="400"/>
      </property>
      <property name="nMaxLength">3</property>
      <property name="Border">.F.</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">108</property>
    </style>
    <method name="onLostFocus">
      <![CDATA[CHK_LASTKEY(5).OR.PSQ_BROW('CP_LOCAL','PCPLOCAL','M_CP_LOCAL','N','N',14,30,'BANCO','@S18','',,oCP_LOCAL,osoSayCP_LOCAL)]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{843,402,21,25}</property>
      <property name="Name">[oGRUPO]</property>
      <property name="varName">[m_GRUPO]</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">952491</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="400"/>
      </property>
      <property name="nMaxLength">1</property>
      <property name="Border">.F.</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">109</property>
    </style>
    <method name="onLostFocus">
      <![CDATA[Chk_LastKey(5).or.m_grupo=1.or.m_grupo=2]]>
    </method>
  </part>
  <part class="ownerbutton">
    <style>
      <property name="Geometry">{901,210,16,16}</property>
      <property name="Name">[oboCP_DIVISAO]</property>
      <property name="BtnBitmap">[smPreview]</property>
      <property name="lResource">.T.</property>
      <property name="TabIndex">110</property>
    </style>
    <method name="onClick">
      <![CDATA[PSQ_BROW('CP_DIVIS','PCPDIVIF','M_CP_DIVISAO','N','S',11,30,'DESC','@S18','','EXIBA',oCP_DIVISAO,osoSayCP_DIVISAO)]]>
    </method>
  </part>
  <part class="ownerbutton">
    <style>
      <property name="Geometry">{921,247,16,16}</property>
      <property name="Name">[oboCP_SUBDIV]</property>
      <property name="BtnBitmap">[smPreview]</property>
      <property name="lResource">.T.</property>
      <property name="TabIndex">111</property>
    </style>
    <method name="onClick">
      <![CDATA[PSQ_BROW('CP_SUBD','PCPSUBDF','M_CP_SUBDIV','N','S',12,30,'SDDESC','@S18','','EXIBA',oCP_SUBDIV,osoSayCP_SUBDIV)]]>
    </method>
  </part>
  <part class="ownerbutton">
    <style>
      <property name="Geometry">{864,328,16,16}</property>
      <property name="Name">[oboCP_SITUACA]</property>
      <property name="BtnBitmap">[smPreview]</property>
      <property name="lResource">.T.</property>
      <property name="TabIndex">112</property>
    </style>
    <method name="onClick">
      <![CDATA[PSQ_BROW('SI_SITDP','PSISITDP','M_CP_SITUACA','N','N',13,30,'CR_SITUACA','@S18','','EXIBA',oCP_SITUACA,osoSayCP_SITUACA)]]>
    </method>
  </part>
  <part class="ownerbutton">
    <style>
      <property name="Geometry">{887,368,16,16}</property>
      <property name="Name">[oboCP_LOCAL]</property>
      <property name="BtnBitmap">[smPreview]</property>
      <property name="lResource">.T.</property>
      <property name="TabIndex">113</property>
    </style>
    <method name="onClick">
      <![CDATA[PSQ_BROW('CP_LOCAL','PCPLOCAL','M_CP_LOCAL','N','N',14,30,'BANCO','@S18','','EXIBA',oCP_LOCAL,osoSayCP_LOCAL)]]>
    </method>
  </part>
</part>
