<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{317,152,798,510}</property>
    <property name="Name">[sccpped.tel]</property>
    <property name="Caption">[Titulo a Pagar]</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,osoSayCP_COD_FOR,osoSayCP_DIVISAO,osoSayCP_SUBDIV,osoSayCP_SITUACA,osoSayCP_LOCAL,osoSayCP_TIP_LQD}    </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="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 zAreaOrig=Select()
//skel VARIAVEL zAreaDivis=select("CP_DIVIS")
//skel VARIAVEL zAreaSubd=select("CP_SUBD")
//skel COMANDO ANTES z_nil=if(zAreaDivis=0,abra_arq("CP_DIVIS"),"")
//skel COMANDO ANTES z_nil=if(zAreaSubd=0,abra_arq("CP_SUBD"),"")
//skel COMANDO ANTES z_nil=dbselectarea(zAreaOrig)
//skel COMANDO SAIDA z_nil=if(zAreaSubd=0, cp_subd->(DbCloseArea()), "")
//skel COMANDO SAIDA z_nil=if(zAreaDivis=0, cp_divis->(DbCloseArea()), "")
SET(5,1960) ]]>
  </method>
  <part class="group">
    <style>
      <property name="Geometry">{7,3,777,435}</property>
      <property name="Name">[oGroup1]</property>
      <property name="TabIndex">1</property>
    </style>
    <part class="line">
      <style>
        <property name="Geometry">{7,450,777,2}</property>
        <property name="Name">[oLine1]</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{162,63,114,28}</property>
        <property name="Name">[oCP_NUM_PED]</property>
        <property name="varName">[m_CP_NUM_PED]</property>
        <property name="cPicture">[XXXXXXXXXX]</property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[//
return x_operacao=1.or.x_operacao=2]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{38,63,124,26}</property>
        <property name="Name">[oSayCP_NUM_PED]</property>
        <property name="Caption">[Cod Pedido:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">2</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{473,63,114,28}</property>
        <property name="Name">[oCP_DUPLIC]</property>
        <property name="varName">[m_CP_DUPLIC]</property>
        <property name="cPicture">[XXXXXXXXXX]</property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">2</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[//
return x_operacao=1.or.x_operacao=2]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{349,63,124,26}</property>
        <property name="Name">[oSayCP_DUPLIC]</property>
        <property name="Caption">[Duplicata.:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">3</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{162,93,62,28}</property>
        <property name="Name">[oCP_COD_FOR]</property>
        <property name="varName">[m_CP_COD_FOR]</property>
        <property name="cPicture">[99999]</property>
        <property name="nMaxLength">5</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">3</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[//
return CHK_LASTKEY(5).OR.PSQ_BROW('SCCPFOR','PSCCPFOR','M_CP_COD_FOR','N','N',9,38,'CP_NOME','@S30','',,oCP_COD_FOR,osoSayCP_COD_FOR)]]>
      </method>
      <method name="onGetFocus">
        <![CDATA[//
return x_operacao=1.or.x_operacao=2]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{38,93,124,26}</property>
        <property name="Name">[oSayCP_COD_FOR]</property>
        <property name="Caption">[Cod Fornec:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">4</property>
      </style>
    </part>
    <part class="datepicker">
      <style>
        <property name="Geometry">{162,153,136,28}</property>
        <property name="Name">[oCP_DT_EMIS]</property>
        <property name="varName">[m_CP_DT_EMIS]</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">4</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[//
return x_operacao=1.or.x_operacao=2]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{38,153,124,26}</property>
        <property name="Name">[oSayCP_DT_EMIS]</property>
        <property name="Caption">[Dt Emissao:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">5</property>
      </style>
    </part>
    <part class="datepicker">
      <style>
        <property name="Geometry">{162,183,136,28}</property>
        <property name="Name">[oCP_DT_VENC]</property>
        <property name="varName">[m_CP_DT_VENC]</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">5</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[//
return x_operacao=1.or.x_operacao=2]]>
      </method>
      <method name="onLostFocus">
        <![CDATA[//
return M_cp_dt_venc>=M_cp_dt_emis]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{38,183,124,26}</property>
        <property name="Name">[oSayCP_DT_VENC]</property>
        <property name="Caption">[Dt Venc...:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">6</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{162,213,114,28}</property>
        <property name="Name">[oCP_VALOR]</property>
        <property name="varName">[m_CP_VALOR]</property>
        <property name="cPicture">[9999999.99]</property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">6</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[//
return x_operacao=1.or.x_operacao=2]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{38,213,124,26}</property>
        <property name="Name">[oSayCP_VALOR]</property>
        <property name="Caption">[Valor.....:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">7</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{476,153,49,28}</property>
        <property name="Name">[oCP_DIVISAO]</property>
        <property name="varName">[m_CP_DIVISAO]</property>
        <property name="cPicture">[999]</property>
        <property name="nMaxLength">3</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">7</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[//
return CHK_LASTKEY(5).OR.PSQ_BROW('CP_DIVIS','PCPDIVIS','M_CP_DIVISAO','N','S',11,56,'DESC','@S18','',,oCP_DIVISAO,osoSayCP_DIVISAO)]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{349,153,126,26}</property>
        <property name="Name">[oSayCP_DIVISAO]</property>
        <property name="Caption">[Div.Despesa:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">8</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{476,183,79,28}</property>
        <property name="Name">[oCP_SUBDIV]</property>
        <property name="varName">[m_CP_SUBDIV]</property>
        <property name="cPicture">[XXXXX]</property>
        <property name="nMaxLength">5</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">8</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[//
return CHK_LASTKEY(5).OR..not.CP_SUBD->(DBSEEK(STRZERO(M_CP_DIVISAO,3))).OR.PSQ_BROW('CP_SUBD','PCPSUBDF','M_CP_SUBDIV','N','S',12,56,'DESC','@S18','',,oCP_SUBDIV,osoSayCP_SUBDIV)]]>
      </method>
      <method name="onGetFocus">
        <![CDATA[//
RETURN CP_SUBD->(DBSEEK(STRZERO(M_CP_DIVISAO,3)))]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{349,183,123,26}</property>
        <property name="Name">[oSayCP_SUBDIV]</property>
        <property name="Caption">[Subdiv.Desp:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{476,213,28,28}</property>
        <property name="Name">[oCP_SITUACA]</property>
        <property name="varName">[m_CP_SITUACA]</property>
        <property name="cPicture">[9]</property>
        <property name="nMaxLength">1</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[//
return CHK_LASTKEY(5).OR.PSQ_BROW('SI_SITDP','PSISITDP','M_CP_SITUACA','N','N',13,56,'CR_SITUACA','@S18','',,oCP_SITUACA,osoSayCP_SITUACA)]]>
      </method>
      <method name="onGetFocus">
        <![CDATA[//
return x_operacao=1.or.x_operacao=2]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{349,213,110,26}</property>
        <property name="Name">[oSayCP_SITUACA]</property>
        <property name="Caption">[Situacao...:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">10</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{162,273,604,28}</property>
        <property name="Name">[oCP_DESC]</property>
        <property name="varName">[m_CP_DESC]</property>
        <property name="cPicture">[XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]</property>
        <property name="nMaxLength">30</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">10</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{38,273,124,26}</property>
        <property name="Name">[oSayCP_DESC]</property>
        <property name="Caption">[Comentario:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">11</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{38,333,124,26}</property>
        <property name="Name">[oSayCP_DT_LQD]</property>
        <property name="Caption">[Dt Liquid.:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">12</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{162,363,114,28}</property>
        <property name="Name">[oCP_VAL_LQD]</property>
        <property name="varName">[m_CP_VAL_LQD]</property>
        <property name="cPicture">[9999999.99]</property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">12</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[//
RETURN x_operacao=1 .or. DAY(m_cp_dt_lqd)>0]]>
      </method>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{162,333,114,28}</property>
        <property name="Name">[oCP_DT_LQD]</property>
        <property name="varName">[m_CP_DT_LQD]</property>
        <property name="cPicture">[99.99.9999]</property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">12</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[//
RETURN x_operacao=1.or.DAY(m_cp_dt_lqd)>0]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{38,363,124,26}</property>
        <property name="Name">[oSayCP_VAL_LQD]</property>
        <property name="Caption">[Val Liquid:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">13</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{473,333,41,28}</property>
        <property name="Name">[oCP_LOCAL]</property>
        <property name="varName">[m_CP_LOCAL]</property>
        <property name="cPicture">[999]</property>
        <property name="nMaxLength">3</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">13</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[//
return CHK_LASTKEY(5).OR.PSQ_BROW('CP_LOCAL','PCPLOCAL','M_CP_LOCAL','N','N',17,56,'BANCO','@S18','',,oCP_LOCAL,osoSayCP_LOCAL)]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{349,333,124,26}</property>
        <property name="Name">[oSayCP_LOCAL]</property>
        <property name="Caption">[Portador..:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">14</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{473,363,21,28}</property>
        <property name="Name">[oCP_TIP_LQD]</property>
        <property name="varName">[m_CP_TIP_LQD]</property>
        <property name="cPicture">[9]</property>
        <property name="nMaxLength">1</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">14</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[//
return CHK_LASTKEY(5).OR.PSQ_BROW('SI_TIPLQ','PSITIPLQ','M_CP_TIP_LQD','N','N',18,56,'CR_TIPO_LQ','@S18','',,oCP_TIP_LQD,osoSayCP_TIP_LQD)]]>
      </method>
      <method name="onGetFocus">
        <![CDATA[//
return x_operacao=2]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{349,363,124,26}</property>
        <property name="Name">[oSayCP_TIP_LQD]</property>
        <property name="Caption">[Tip Liquid:]</property>
        <property name="BackColor">16777215</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{256,93,512,26}</property>
        <property name="Name">[osoSayCP_COD_FOR]</property>
        <property name="Caption">[...]</property>
        <property name="Border">.T.</property>
        <property name="TabIndex">16</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{556,153,212,26}</property>
        <property name="Name">[osoSayCP_DIVISAO]</property>
        <property name="Caption">[...]</property>
        <property name="Border">.T.</property>
        <property name="TabIndex">17</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{577,183,191,26}</property>
        <property name="Name">[osoSayCP_SUBDIV]</property>
        <property name="Caption">[...]</property>
        <property name="Border">.T.</property>
        <property name="TabIndex">18</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{535,213,234,26}</property>
        <property name="Name">[osoSayCP_SITUACA]</property>
        <property name="Caption">[...]</property>
        <property name="Border">.T.</property>
        <property name="TabIndex">19</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{546,333,223,26}</property>
        <property name="Name">[osoSayCP_LOCAL]</property>
        <property name="Caption">[...]</property>
        <property name="Border">.T.</property>
        <property name="TabIndex">20</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{525,363,242,26}</property>
        <property name="Name">[osoSayCP_TIP_LQD]</property>
        <property name="Caption">[...]</property>
        <property name="Border">.T.</property>
        <property name="TabIndex">21</property>
      </style>
    </part>
    <part class="ownerbutton">
      <style>
        <property name="Geometry">{227,93,16,16}</property>
        <property name="Name">[oboCP_COD_FOR]</property>
        <property name="BtnBitmap">[smPreview]</property>
        <property name="lResource">.T.</property>
        <property name="TabIndex">22</property>
      </style>
      <method name="onClick">
        <![CDATA[PSQ_BROW('SCCPFOR','PSCCPFOR','M_CP_COD_FOR','N','N',9,38,'CP_NOME','@S30','','EXIBA',oCP_COD_FOR,osoSayCP_COD_FOR)]]>
      </method>
    </part>
    <part class="ownerbutton">
      <style>
        <property name="Geometry">{527,153,16,16}</property>
        <property name="Name">[oboCP_DIVISAO]</property>
        <property name="BtnBitmap">[smPreview]</property>
        <property name="lResource">.T.</property>
        <property name="TabIndex">23</property>
      </style>
      <method name="onClick">
        <![CDATA[PSQ_BROW('CP_DIVIS','PCPDIVIS','M_CP_DIVISAO','N','S',11,56,'DESC','@S18','','EXIBA',oCP_DIVISAO,osoSayCP_DIVISAO)]]>
      </method>
    </part>
    <part class="ownerbutton">
      <style>
        <property name="Geometry">{558,183,16,16}</property>
        <property name="Name">[oboCP_SUBDIV]</property>
        <property name="BtnBitmap">[smPreview]</property>
        <property name="lResource">.T.</property>
        <property name="TabIndex">24</property>
      </style>
      <method name="onClick">
        <![CDATA[PSQ_BROW('CP_SUBD','PCPSUBDF','M_CP_SUBDIV','N','S',12,56,'SDDESC','@S18','','EXIBA',oCP_SUBDIV,osoSayCP_SUBDIV)]]>
      </method>
    </part>
    <part class="ownerbutton">
      <style>
        <property name="Geometry">{506,213,16,16}</property>
        <property name="Name">[oboCP_SITUACA]</property>
        <property name="BtnBitmap">[smPreview]</property>
        <property name="lResource">.T.</property>
        <property name="TabIndex">25</property>
      </style>
      <method name="onClick">
        <![CDATA[PSQ_BROW('SI_SITDP','PSISITDP','M_CP_SITUACA','N','N',13,56,'CR_SITUACA','@S18','','EXIBA',oCP_SITUACA,osoSayCP_SITUACA)]]>
      </method>
    </part>
    <part class="ownerbutton">
      <style>
        <property name="Geometry">{517,333,16,16}</property>
        <property name="Name">[oboCP_LOCAL]</property>
        <property name="BtnBitmap">[smPreview]</property>
        <property name="lResource">.T.</property>
        <property name="TabIndex">26</property>
      </style>
      <method name="onClick">
        <![CDATA[PSQ_BROW('CP_LOCAL','PCPLOCAL','M_CP_LOCAL','N','N',17,56,'BANCO','@S18','','EXIBA',oCP_LOCAL,osoSayCP_LOCAL)]]>
      </method>
    </part>
    <part class="ownerbutton">
      <style>
        <property name="Geometry">{496,363,16,16}</property>
        <property name="Name">[oboCP_TIP_LQD]</property>
        <property name="BtnBitmap">[smPreview]</property>
        <property name="lResource">.T.</property>
        <property name="TabIndex">27</property>
      </style>
      <method name="onClick">
        <![CDATA[PSQ_BROW('SI_TIPLQ','PSITIPLQ','M_CP_TIP_LQD','N','N',18,56,'CR_TIPO_LQ','@S18','','EXIBA',oCP_TIP_LQD,osoSayCP_TIP_LQD)]]>
      </method>
    </part>
  </part>
  <part class="button">
    <style>
      <property name="Geometry">{609,464,70,28}</property>
      <property name="Name">[oOwnerbutton1]</property>
      <property name="Id">[IDOK]</property>
      <property name="Caption">[&amp;OK]</property>
      <property name="TabIndex">1000</property>
    </style>
  </part>
  <part class="button">
    <style>
      <property name="Geometry">{694,464,90,28}</property>
      <property name="Name">[oOwnerbutton2]</property>
      <property name="Id">[IDCANCEL]</property>
      <property name="Caption">[&amp;Cancela]</property>
      <property name="TabIndex">1001</property>
      <property name="TabStop">.F.</property>
    </style>
  </part>
</part>
