<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{454,117,1027,670}</property>
    <property name="Name">[osot.tel]</property>
    <property name="Caption">[Ordem de Servico - AutoPecas]</property>
    <property name="AlwaysOnTop">.F.</property>
    <property name="AutoCenter">.T.</property>
    <property name="Font">
      <font name="Courier New" width="0" height="-12" 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,osoSayCR_COD_CLI,osoSayfvendedor,osoSayCRM,osoSayLOD_PCOD,osoSayLOE_PCOD,osoSayarm_pcod,osoSayCP_COD_FOR}    </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">[icon\tela.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 ),)
SET(5,1960) 
//skel variavel zNil = abra_arq("se_prod")
//skel variavel zNil = abra_arq("sccrcli")
//skel variavel zNil = DbSelectArea("osot")
//skel variavel m_cr_cep=""
//skel variavel m_cr_fone=""
//skel variavel m_cr_rua=""
//skel variavel m_cr_bairro=""
//skel variavel m_cr_cidade=""
//skel variavel m_cr_fone=""
//skel variavel m_cr_uf=""
//skel variavel zbDadosCli = {||sccrcli->(m_cr_cep:=cr_cep,m_cr_fone:=cr_fone,m_cr_rua:=cr_rua,m_cr_bairro:=cr_bairro,m_cr_cidade:=cr_cidade,m_cr_uf:=cr_uf), refreshGetList()}
//skel comando antes m_fNumOs = if(x_operacao=1, reccount()+1, m_fNumOs)
//skel comando antes m_hHora= if(x_operacao=1, time(), m_fHora)
//skel comando antes m_fatprecno = if(type("m_fatprecno")="U" .or. x_operacao=1, 0, m_fatprecno)
//skel comando antes m_fDataPed = if(day(m_fDataPed)=0.or.x_operacao=1, date(), m_fDataPed)
//skel comando antes m_fHORA = if(empty(m_fHORA).or. x_operacao=1, left(time(),5), m_fHORA)
//skel comando antes m_fDtPrevEnt = if(day(m_fDtPrevEnt)=0 .or. x_operacao=1, date(), m_fDtPrevEnt)
//skel comando antes m_fHrPrevEnt = if(empty(m_fHrPrevEnt).or. x_operacao=1, left(time(),5), m_fHrPrevEnt)
//skel comando saida sccrcli->(DbCloseArea())
//skel comando saida se_prod->(DbCloseArea())]]>
  </method>
  <part class="line">
    <style>
      <property name="Geometry">{4,637,1011,2}</property>
      <property name="Name">[oLine1]</property>
    </style>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{2,0,1011,635}</property>
      <property name="Name">[oGroup1]</property>
      <property name="TabIndex">1</property>
    </style>
    <part class="group">
      <style>
        <property name="Geometry">{8,18,876,62}</property>
        <property name="Name">[oGroup9]</property>
        <property name="TabIndex">1</property>
      </style>
      <part class="editbox">
        <style>
          <property name="Geometry">{315,46,65,23}</property>
          <property name="Name">[ofvendedor]</property>
          <property name="varName">[m_fvendedor]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">4</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">1</property>
        </style>
        <method name="onLostFocus">
          <![CDATA[LASTKEY()=5.OR.PSQ_BROW('SF_VEND','PSFVEND','M_FVENDEDOR','N','N',6,20,'NOME','@S20','',,ofvendedor,osoSayfvendedor)]]>
        </method>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{14,45,97,23}</property>
          <property name="Name">[oFnumOs]</property>
          <property name="varName">[m_fNumOs]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">10</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">2</property>
        </style>
        <method name="onGetFocus">
          <![CDATA[.f.]]>
        </method>
      </part>
      <part class="datepicker">
        <style>
          <property name="Geometry">{121,44,103,23}</property>
          <property name="Name">[ofdataped]</property>
          <property name="varName">[m_fdataped]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">3</property>
        </style>
        <method name="onGetFocus">
          <![CDATA[.f.]]>
        </method>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{14,26,89,16}</property>
          <property name="Name">[oSayFNUMPED]</property>
          <property name="Caption">[OS]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-13" weight="700"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">3</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{815,27,62,16}</property>
          <property name="Name">[oLabel15]</property>
          <property name="Caption">[HoraPrev]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-13" weight="700"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">4</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{234,27,62,16}</property>
          <property name="Name">[oLabel11]</property>
          <property name="Caption">[Hora]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-13" weight="700"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">4</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{121,26,91,16}</property>
          <property name="Name">[oSayfdataped]</property>
          <property name="Caption">[Data Compra]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-13" weight="700"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">4</property>
        </style>
      </part>
      <part class="datepicker">
        <style>
          <property name="Geometry">{710,44,103,23}</property>
          <property name="Name">[ofDtPrevEnt]</property>
          <property name="varName">[m_fDtPrevEnt]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">5</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{710,26,85,16}</property>
          <property name="Name">[oSayfdatasai]</property>
          <property name="Caption">[Prev.Entrega]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-13" weight="700"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">6</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{319,28,60,19}</property>
          <property name="Name">[oSayfvendedor]</property>
          <property name="Caption">[Cod.Vnd]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-12" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">7</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{405,27,114,19}</property>
          <property name="Name">[oLabel6]</property>
          <property name="Caption">[Atendente/Vendedor]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-12" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">7</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{815,45,60,23}</property>
          <property name="Name">[ofHrPrevEnt]</property>
          <property name="varName">[m_fHrPrevEnt]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="cPicture">[99:99]</property>
          <property name="nMaxLength">5</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">24</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{236,45,60,23}</property>
          <property name="Name">[ofHora]</property>
          <property name="varName">[m_fhora]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="cPicture">[99:99]</property>
          <property name="nMaxLength">5</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">24</property>
        </style>
        <method name="onGetFocus">
          <![CDATA[.f.]]>
        </method>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{404,46,236,22}</property>
          <property name="Name">[osoSayfvendedor]</property>
          <property name="Caption">[...]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="400"/>
          </property>
          <property name="Border">.T.</property>
          <property name="TabIndex">70</property>
        </style>
      </part>
      <part class="ownerbutton">
        <style>
          <property name="Geometry">{383,52,16,16}</property>
          <property name="Name">[obofvendedor]</property>
          <property name="BtnBitmap">[smPreview]</property>
          <property name="lResource">.T.</property>
          <property name="TabIndex">77</property>
        </style>
        <method name="onClick">
          <![CDATA[PSQ_BROW('SF_VEND','PSFVEND','M_FVENDEDOR','N','N',6,20,'NOME','@S20','','EXIBA',ofvendedor,osoSayfvendedor)]]>
        </method>
      </part>
    </part>
    <part class="group">
      <style>
        <property name="Geometry">{8,93,535,70}</property>
        <property name="Name">[oGroup4]</property>
        <property name="Caption">[Cliente]</property>
        <property name="Transparent">.T.</property>
        <property name="font">
          <font name="Arial" width="0" height="-12" weight="700"/>
        </property>
        <property name="TabIndex">2</property>
      </style>
      <part class="editbox">
        <style>
          <property name="Geometry">{12,131,85,23}</property>
          <property name="Name">[oCR_COD_CLI]</property>
          <property name="varName">[m_CR_COD_CLI]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="cPicture">[999999]</property>
          <property name="nMaxLength">6</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">2</property>
        </style>
        <method name="onLostFocus">
          <![CDATA[LASTKEY()=5.OR.PSQ_BROW('SCCRCLI','PSCCRCLI','M_CR_COD_CLI','N','N',4,20,'CR_NOME','@S35','',,oCR_COD_CLI,osoSayCR_COD_CLI)]]>
        </method>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{12,111,48,20}</property>
          <property name="Name">[oSayCR_COD_CLI]</property>
          <property name="Caption">[Codigo]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-12" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">2</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{114,111,48,20}</property>
          <property name="Name">[oLabel5]</property>
          <property name="Caption">[Nome]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-12" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">2</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{122,131,379,22}</property>
          <property name="Name">[osoSayCR_COD_CLI]</property>
          <property name="Caption">[...]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="400"/>
          </property>
          <property name="Border">.T.</property>
          <property name="TabIndex">69</property>
        </style>
      </part>
      <part class="ownerbutton">
        <style>
          <property name="Geometry">{102,137,16,16}</property>
          <property name="Name">[oboCR_COD_CLI]</property>
          <property name="BtnBitmap">[smPreview]</property>
          <property name="lResource">.T.</property>
          <property name="TabIndex">76</property>
        </style>
        <method name="onClick">
          <![CDATA[PSQ_BROW('SCCRCLI','PSCCRCLI','M_CR_COD_CLI','N','N',4,20,'CR_NOME','@S35','','EXIBA',oCR_COD_CLI,osoSayCR_COD_CLI)]]>
        </method>
      </part>
    </part>
    <part class="group">
      <style>
        <property name="Geometry">{10,260,994,112}</property>
        <property name="Name">[oGroup6]</property>
        <property name="Caption">[Produtos]</property>
        <property name="Transparent">.T.</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="700"/>
        </property>
        <property name="TabIndex">6</property>
      </style>
      <part class="editbox">
        <style>
          <property name="Geometry">{98,292,70,23}</property>
          <property name="Name">[oLOD_PCOD]</property>
          <property name="varName">[m_LOD_PCOD]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">6</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">10</property>
        </style>
        <method name="onLostFocus">
          <![CDATA[m_LOD_PCOD=0.OR.(PSQ_BROW('SE_PROD','PSEPROD','M_LOD_PCOD','N','S',10,23,'PDESC','@S30','',,oLOD_PCOD,osoSayLOD_PCOD).and.(m_lod_pVenda:=se_prod->pVluVenda,m_Lod_Mat:=se_prod->pMaterial,RefreshGetlist()))]]>
        </method>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{24,297,71,16}</property>
          <property name="Name">[oSayLOD_PCOD]</property>
          <property name="Caption">[Lente O.D.]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-13" weight="700"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">11</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{625,292,225,23}</property>
          <property name="Name">[olod_mat]</property>
          <property name="varName">[m_lod_mat]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">10</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">11</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{98,273,47,18}</property>
          <property name="Name">[oLabel18]</property>
          <property name="Caption">[Codigo]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-12" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">11</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{626,273,70,16}</property>
          <property name="Name">[oSaylod_mat]</property>
          <property name="Caption">[Material]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-12" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">12</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{857,292,130,23}</property>
          <property name="Name">[olod_pvenda]</property>
          <property name="varName">[m_lod_pvenda]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="cPicture">[999999.99]</property>
          <property name="nMaxLength">9</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">12</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{98,317,70,23}</property>
          <property name="Name">[oLOE_PCOD]</property>
          <property name="varName">[m_LOE_PCOD]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">6</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">13</property>
        </style>
        <method name="onLostFocus">
          <![CDATA[m_LOe_PCOD=0.OR.(PSQ_BROW('SE_PROD','PSEPROD','M_LOE_PCOD','N','S',11,23,'PDESC','@S30','',,oLOE_PCOD,osoSayLOE_PCOD).and.(m_loe_pVenda:=se_prod->pVluVenda,m_Loe_Mat:=se_prod->pMaterial,RefreshGetlist()))]]>
        </method>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{859,273,90,16}</property>
          <property name="Name">[oSaylod_pvenda]</property>
          <property name="Caption">[Preco de Venda]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-12" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">13</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{625,317,225,23}</property>
          <property name="Name">[oloE_mat]</property>
          <property name="varName">[m_loE_mat]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">10</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">14</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{25,323,71,16}</property>
          <property name="Name">[oSayLOE_PCOD]</property>
          <property name="Caption">[Lente O.E.]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-13" weight="700"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">14</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{857,317,130,23}</property>
          <property name="Name">[oloE_pvenda]</property>
          <property name="varName">[m_loE_pvenda]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="cPicture">[999999.99]</property>
          <property name="nMaxLength">9</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">15</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{98,342,70,23}</property>
          <property name="Name">[oarm_pcod]</property>
          <property name="varName">[m_arm_pcod]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">6</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">16</property>
        </style>
        <method name="onLostFocus">
          <![CDATA[m_arm_PCOD=0.OR.(PSQ_BROW('SE_PROD','PSEPROD','M_ARM_PCOD','N','S',12,23,'PDESC','@S30','',,oarm_pcod,osoSayarm_pcod).and.(m_arm_pVenda:=se_prod->pVluVenda,m_Arm_Mat:=se_prod->pMaterial,RefreshGetlist()))]]>
        </method>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{33,348,61,16}</property>
          <property name="Name">[oSayarm_pcod]</property>
          <property name="Caption">[Armação]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-13" weight="700"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">17</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{625,342,225,23}</property>
          <property name="Name">[oARM_mat]</property>
          <property name="varName">[m_ARM_mat]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">10</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">17</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{857,342,130,23}</property>
          <property name="Name">[oARM_pvenda]</property>
          <property name="varName">[m_ARM_pvenda]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="cPicture">[999999.99]</property>
          <property name="nMaxLength">9</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">18</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{193,294,425,21}</property>
          <property name="Name">[osoSayLOD_PCOD]</property>
          <property name="Caption">[...]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="400"/>
          </property>
          <property name="Border">.T.</property>
          <property name="TabIndex">72</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{193,320,425,21}</property>
          <property name="Name">[osoSayLOE_PCOD]</property>
          <property name="Caption">[...]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="400"/>
          </property>
          <property name="Border">.T.</property>
          <property name="TabIndex">73</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{193,344,425,21}</property>
          <property name="Name">[osoSayarm_pcod]</property>
          <property name="Caption">[...]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="400"/>
          </property>
          <property name="Border">.T.</property>
          <property name="TabIndex">74</property>
        </style>
      </part>
      <part class="ownerbutton">
        <style>
          <property name="Geometry">{172,299,16,16}</property>
          <property name="Name">[oboLOD_PCOD]</property>
          <property name="BtnBitmap">[smPreview]</property>
          <property name="lResource">.T.</property>
          <property name="TabIndex">79</property>
        </style>
        <method name="onClick">
          <![CDATA[PSQ_BROW('SE_PROD','PSEPROD','M_LOD_PCOD','N','S',10,23,'PDESC','@S30','','EXIBA',oLOD_PCOD,osoSayLOD_PCOD)]]>
        </method>
      </part>
      <part class="ownerbutton">
        <style>
          <property name="Geometry">{172,324,16,16}</property>
          <property name="Name">[oboLOE_PCOD]</property>
          <property name="BtnBitmap">[smPreview]</property>
          <property name="lResource">.T.</property>
          <property name="TabIndex">80</property>
        </style>
        <method name="onClick">
          <![CDATA[PSQ_BROW('SE_PROD','PSEPROD','M_LOE_PCOD','N','S',11,23,'PDESC','@S30','','EXIBA',oLOE_PCOD,osoSayLOE_PCOD)]]>
        </method>
      </part>
      <part class="ownerbutton">
        <style>
          <property name="Geometry">{171,349,16,16}</property>
          <property name="Name">[oboarm_pcod]</property>
          <property name="BtnBitmap">[smPreview]</property>
          <property name="lResource">.T.</property>
          <property name="TabIndex">81</property>
        </style>
        <method name="onClick">
          <![CDATA[PSQ_BROW('SE_PROD','PSEPROD','M_ARM_PCOD','N','S',12,23,'PDESC','@S30','','EXIBA',oarm_pcod,osoSayarm_pcod)]]>
        </method>
      </part>
    </part>
    <part class="group">
      <style>
        <property name="Geometry">{7,381,432,67}</property>
        <property name="Name">[oGroup7]</property>
        <property name="Caption">[Medidas da Armacao]</property>
        <property name="Transparent">.T.</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="700"/>
        </property>
        <property name="TabIndex">7</property>
      </style>
      <part class="editbox">
        <style>
          <property name="Geometry">{19,415,100,23}</property>
          <property name="Name">[oMEDID_DIAG]</property>
          <property name="varName">[m_MEDID_DIAG]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">8</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">19</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{20,396,96,16}</property>
          <property name="Name">[oSayMEDID_DIAG]</property>
          <property name="Caption">[Diagonal Maior]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-13" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">20</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{125,415,100,23}</property>
          <property name="Name">[oMEDID_hori]</property>
          <property name="varName">[m_MEDID_hori]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">8</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">20</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{128,396,84,16}</property>
          <property name="Name">[oSayMEDID_hori]</property>
          <property name="Caption">[Horizontal]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-13" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">21</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{228,415,100,23}</property>
          <property name="Name">[oMEDID_pont]</property>
          <property name="varName">[m_MEDID_pont]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">8</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">21</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{231,396,49,16}</property>
          <property name="Name">[oSayMEDID_pont]</property>
          <property name="Caption">[Ponte]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-13" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">22</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{331,415,100,23}</property>
          <property name="Name">[oMEDID_vert]</property>
          <property name="varName">[m_MEDID_vert]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">8</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">22</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{334,396,70,16}</property>
          <property name="Name">[oSayMEDID_vert]</property>
          <property name="Caption">[Vertical]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-12" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">23</property>
        </style>
      </part>
    </part>
    <part class="group">
      <style>
        <property name="Geometry">{450,380,555,67}</property>
        <property name="Name">[oGroup8]</property>
        <property name="Caption">[Fornecedor ou Laboratorio]</property>
        <property name="Transparent">.T.</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="700"/>
        </property>
        <property name="TabIndex">8</property>
      </style>
      <part class="editbox">
        <style>
          <property name="Geometry">{458,412,70,23}</property>
          <property name="Name">[oCP_COD_FOR]</property>
          <property name="varName">[m_CP_COD_FOR]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="700"/>
          </property>
          <property name="nMaxLength">6</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">23</property>
        </style>
        <method name="onLostFocus">
          <![CDATA[m_cp_cod_for=0.or.PSQ_BROW('SCCPFOR','PSCCPFOR','M_CP_COD_FOR','N','N',16,35,'CP_NOME','@S30','',,oCP_COD_FOR,osoSayCP_COD_FOR)]]>
        </method>
        <method name="onGetFocus">
          <![CDATA[x_operacao=1.or.x_operacao=2]]>
        </method>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{458,393,84,16}</property>
          <property name="Name">[oSayCP_COD_FOR]</property>
          <property name="Caption">[Codigo]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-12" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">24</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{553,393,84,16}</property>
          <property name="Name">[oLabel19]</property>
          <property name="Caption">[Nome]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-12" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">24</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{552,415,444,21}</property>
          <property name="Name">[osoSayCP_COD_FOR]</property>
          <property name="Caption">[...]</property>
          <property name="font">
            <font name="Arial" width="0" height="-16" weight="400"/>
          </property>
          <property name="Border">.T.</property>
          <property name="TabIndex">75</property>
        </style>
      </part>
      <part class="ownerbutton">
        <style>
          <property name="Geometry">{532,422,16,16}</property>
          <property name="Name">[oboCP_COD_FOR]</property>
          <property name="BtnBitmap">[smPreview]</property>
          <property name="lResource">.T.</property>
          <property name="TabIndex">82</property>
        </style>
        <method name="onClick">
          <![CDATA[PSQ_BROW('SCCPFOR','PSCCPFOR','M_CP_COD_FOR','N','N',16,35,'CP_NOME','@S30','','EXIBA',oCP_COD_FOR,osoSayCP_COD_FOR)]]>
        </method>
      </part>
    </part>
    <part class="page">
      <style>
        <property name="Geometry">{7,457,973,160}</property>
        <property name="Name">[oPage1]</property>
        <property name="Tabs">
{Veiculo,Servicos,Pecas Utilizadas,Observacoes/Laudo Tecnico,Miscelanea}        </property>
        <property name="TabIndex">1018</property>
      </style>
    </part>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{551,97,535,154}</property>
      <property name="Name">[oGroup10]</property>
      <property name="TabIndex">3</property>
    </style>
    <part class="datepicker">
      <style>
        <property name="Geometry">{556,133,103,23}</property>
        <property name="Name">[omdatarecei]</property>
        <property name="varName">[m_mdatarecei]</property>
        <property name="font">
          <font name="Arial" width="0" height="-16" weight="700"/>
        </property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">3</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{667,133,97,23}</property>
        <property name="Name">[oCRM]</property>
        <property name="varName">[m_CRM]</property>
        <property name="font">
          <font name="Arial" width="0" height="-16" weight="700"/>
        </property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">4</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[PSQ_BROW('VB_CRM','PVBCRM','M_CRM','N','S',7,35,'MEDICO','@S30','',,oCRM,osoSayCRM)]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{556,116,98,16}</property>
        <property name="Name">[oSaymdatarecei]</property>
        <property name="Caption">[Data Receita]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="700"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">5</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{556,217,78,23}</property>
        <property name="Name">[oAmetropia]</property>
        <property name="varName">[m_Ametropia]</property>
        <property name="font">
          <font name="Arial" width="0" height="-16" weight="700"/>
        </property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">7</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{556,198,66,16}</property>
        <property name="Name">[oSayAmetropia]</property>
        <property name="Caption">[Ametropia]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">8</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{685,116,56,16}</property>
        <property name="Name">[oSayCRM]</property>
        <property name="Caption">[Medico]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{556,160,82,22}</property>
        <property name="Name">[oSayobs]</property>
        <property name="Caption">[Observações:]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">10</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{640,161,438,81}</property>
        <property name="Name">[oObs]</property>
        <property name="varName">[m_obs]</property>
        <property name="font">
          <font name="Arial" 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">21</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[// editor(@M_CR_OBS,'Observacoes Adicionais',10,05,20,75)
RETURN .T.]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{794,133,283,22}</property>
        <property name="Name">[osoSayCRM]</property>
        <property name="Caption">[...]</property>
        <property name="font">
          <font name="Arial" width="0" height="-16" weight="400"/>
        </property>
        <property name="Border">.T.</property>
        <property name="TabIndex">71</property>
      </style>
    </part>
    <part class="ownerbutton">
      <style>
        <property name="Geometry">{770,139,16,16}</property>
        <property name="Name">[oboCRM]</property>
        <property name="BtnBitmap">[smPreview]</property>
        <property name="lResource">.T.</property>
        <property name="TabIndex">78</property>
      </style>
      <method name="onClick">
        <![CDATA[PSQ_BROW('VB_CRM','PVBCRM','M_CRM','N','S',7,35,'MEDICO','@S30','','EXIBA',oCRM,osoSayCRM)]]>
      </method>
    </part>
  </part>
  <part class="button">
    <style>
      <property name="Geometry">{877,641,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">{950,641,70,28}</property>
      <property name="Name">[oOwnerbutton2]</property>
      <property name="Id">[IDCANCEL]</property>
      <property name="Caption">[&amp;Cancela]</property>
      <property name="TabIndex">1001</property>
    </style>
  </part>
</part>
