<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{280,27,1020,678}</property>
    <property name="Name">[prod_t0.tel]</property>
    <property name="Caption">[ALTERAÇÃO - Cadastro de Produtos]</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,osoSayPDIVISAO,osoSayPgPreco,osoSayPPRINCFORN}    </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[preget_prd()
if(modus<>NIL,SetWindowText( oDlg:handle, modus ),)

//skel VARIAVEL zMsgCatFiscOk = ";;Informe:;01 - Se o Produto for Tributado;FF-Se com Substituicao Tributaria;II-Se Isento;S-Se Servico"
//skel VARIAVEL zCatFisc = {||val(m_pcategoria)>0.or.StrWith(m_pcategoria,'0,T,F,I,N,S').or.(Alert('Categoria fiscal Invalida!'+zMsgCatFiscOk,,'B/W'),.f.)}
//skel Variavel zNIL = GetTaxasTributarias("CARREGA")
//skel variavel wPicmSubCpa=0
//skel variavel wPipient=0
//skel variavel wPfreteCpa=0
//skel variavel wPCstEmbCpa=0
//skel variavel wPEncFinCpa=0
//skel variavel wPicmCpa=0
//skel variavel wPdscCpa=0
//skel variavel vTxOp=0
//skel variavel vTxFed=0
//skel variavel vPcom=0
//skel variavel vIcmVda=0
//skel variavel vTxOut=0
//skel variavel mPmargem=0
//skel VARIAVEL b0PrCst={||m_PVLUcst:=m_PVLUVEN3+wPicmSubCpa+wPipient+wPfreteCpa+wPCstEmbCpa+wPEncFinCpa-wPicmCpa-wPdscCpa}
//skel VARIAVEL b0PrMin={||m_pVluMin:=m_PVLUcst/(1-(m_pTxOper+m_pTxFed+m_pTxIcmVda+m_PtxOutros+m_Pcomisvis)/100)}
//skel VARIAVEL b0Taxas={||vTxOp:=m_pVluMin*m_pTxOper/100,vTxFed:=m_pVluMin*m_pTxFed/100,vIcmVda:=m_pVluMin*m_pTxIcmVda/100,vPcom:=m_pVluMin*m_Pcomisvis/100,vTxOut:=m_pVluMin*m_PtxOutros/100}
//skel VARIAVEL b0PrSug={||m_PvluSug:=m_pVluMin/(1-m_Pmargem/100)}
//skel VARIAVEL zbRefresh={||eval(b0PrCst), eval(b0PrMin), eval(b0PrSug), eval(b0Taxas), RefreshGetlist()}
//skel VARIAVEL zBlPrTab={||m_PVLUtab:=if(m_PVLUVEN3*m_pitens>m_PVLUtab*(1-m_PdscCompr/100),m_PVLUVEN3*m_pitens,m_PVLUtab), eval(zbRefresh)}
//skel VARIAVEL b1DscCpa={||wPdscCpa:=m_PVLUVEN3*m_PdscCompr/100, eval(zbRefresh)}
//skel VARIAVEL b1FreteCpa={||wPfreteCpa:=(m_PVLUVEN3+wPipient)*m_PfreteCpa/100, eval(zbRefresh)}
//skel VARIAVEL b1IcmSubCpa = {||m_PicmSubCpa:=if('F'$m_pcategoria,0,m_PicmSubCpa), wPicmSubCpa:=m_PVLUVEN3*m_PicmSubCpa/100, eval(zbRefresh)}
//skel VARIAVEL b1IpiEnt    = {||wPipient:=m_PVLUVEN3*m_Pipient/100, eval(zbRefresh)}
//skel VARIAVEL b1CstEmbCpa = {||wPCstEmbCpa:=m_PVLUVEN3*m_PCstEmbCpa/100, eval(zbRefresh)}
//skel VARIAVEL b1EncFinCpa = {||wPEncFinCpa:=(m_PVLUVEN3-wPdscCpa+wPipient)*m_PEncFinCpa/100, eval(zbRefresh)}
//skel VARIAVEL zMsgIcmOk1 = "O Credito de Icms so e permitido para produtos Tributados"
//skel VARIAVEL zMsgIcmOk2 = "O Credito de Icms nao eh permitido para sua modalidade configurada para Simples Nacional"
//skel VARIAVEL zbMsg = {||Alert(if(snfRegime='1',zMsgIcmOk1,zMsgIcmOk2),,'B/W'),0}
//skel VARIAVEL zbIcmCp={||m_PicmCpa:=if(m_PicmCpa>0.and.(snfRegime='1'.or.StrWith(m_pcategoria,'F,I,N,S')),eval(zbMsg),m_PicmCpa),wPicmCpa:=(m_PVLUVEN3+wPfreteCpa-wPdscCpa)*m_PicmCpa/100,eval(zbRefresh)}
//skel VARIAVEL zBlkPdic6 = "Z_recn:=Recno(),DbSetOrder(3),z_fgExistCod:=DbSeek(x_pdic6),"
//skel VARIAVEL zBlkPdic6 = zBlkPdic6 + "z_nil:=if(x_operacao=1.and.z_fgExistCod,Mensagem('Esse Codigo de Barras JA ESTA CADASTRADO !',1),''),"
//skel VARIAVEL zBlkPdic6 = zBlkPdic6 + "DbSetOrder(1),DbGoto(Z_recn),!z_fgExistCod.or.x_operacao<>1"
//skel VARIAVEL zb_PeanOk = _CreateBlock( zBlkPdic6, {"x_pdic6"} )
//skel VARIAVEL zBlkPdic6 = ""
//skel comando antes wlCommitByStruct=.t.
//skel COMANDO ANTES M_PITENS = if(m_pitens=0, 1, m_pitens)

SET(5,1960)
CiSetKey( "K_F2","ExecutaXML('se_prod_pteq.tel')",,,"F2:Composicao de Preco do Produto")
CiSetKey( "K_F3","ExecutaXML('se_prod_descontos.tel')",,,"F3:Define Descontos e Promocoes do Produto")
CiSetKey( "K_F4","BrwComposicoes(, Pcod)",,,"F4:Cadastra Composicao do Produto")]]>
  </method>
  <part class="line">
    <style>
      <property name="Geometry">{5,643,1011,2}</property>
      <property name="Name">[oLine1]</property>
    </style>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{4,2,1014,635}</property>
      <property name="Name">[oGroup1]</property>
      <property name="TabIndex">1</property>
    </style>
    <part class="editbox">
      <style>
        <property name="Geometry">{222,18,97,30}</property>
        <property name="Name">[oPCOD]</property>
        <property name="varName">[m_PCOD]</property>
        <property name="font">
          <font name="Arial" width="0" height="-24" weight="700"/>
        </property>
        <property name="cPicture">[999999]</property>
        <property name="nMaxLength">6</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[.f.]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{44,23,171,25}</property>
        <property name="Name">[oSayPCOD]</property>
        <property name="Caption">[Codigo:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">2</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{222,51,195,30}</property>
        <property name="Name">[opdic6]</property>
        <property name="varName">[m_pdic6]</property>
        <property name="font">
          <font name="Arial" width="0" height="-24" weight="700"/>
        </property>
        <property name="cPicture">[9999999999999]</property>
        <property name="nMaxLength">13</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">2</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{36,56,179,25}</property>
        <property name="Name">[oSaypdic6]</property>
        <property name="Caption">[Codigo de Barras:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">3</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{222,85,211,30}</property>
        <property name="Name">[oPREFFAB]</property>
        <property name="varName">[m_PREFFAB]</property>
        <property name="font">
          <font name="Arial" width="0" height="-24" weight="700"/>
        </property>
        <property name="cPicture">[@s15]</property>
        <property name="nMaxLength">15</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">3</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{14,90,201,25}</property>
        <property name="Name">[oSayPREFFAB]</property>
        <property name="Caption">[Referencia de Fabrica:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">4</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{222,118,676,30}</property>
        <property name="Name">[oPDESC]</property>
        <property name="varName">[m_PDESC]</property>
        <property name="font">
          <font name="Arial" width="0" height="-24" weight="700"/>
        </property>
        <property name="cPicture">[@s50]</property>
        <property name="nMaxLength">50</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">4</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[alltrim(m_pdesc)<>""]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{72,123,143,25}</property>
        <property name="Name">[oSayPDESC]</property>
        <property name="Caption">[Descricao:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">5</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{420,166,64,25}</property>
        <property name="Name">[oPDIVISAO]</property>
        <property name="varName">[m_PDIVISAO]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">4</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">5</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[LASTKEY()=5 .OR. PSQ_BROW('SE_SUBD','PSESUBD','M_PDIVISAO','N','S',10,35,'SDDESC','@S25','',,oPDIVISAO,osoSayPDIVISAO)]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{129,168,288,23}</property>
        <property name="Name">[oSayPDIVISAO]</property>
        <property name="Caption">[Divisao do Estoque......................:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">6</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{420,196,21,25}</property>
        <property name="Name">[oPgPreco]</property>
        <property name="varName">[m_PgPreco]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">2</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">6</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[PSQ_BROW('SE_GPRE','PSEGPRE','M_PGPRECO','N','S',11,35,'MARKUP','999.99%','',,oPgPreco,osoSayPgPreco)]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{129,198,288,23}</property>
        <property name="Name">[oSayPgPreco]</property>
        <property name="Caption">[Grupo de Precos..........................:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">7</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{420,226,73,25}</property>
        <property name="Name">[oPPRINCFORN]</property>
        <property name="varName">[m_PPRINCFORN]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">4</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">7</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[LASTKEY()=5 .OR. PSQ_BROW('SCCPFAB','PSCCPFAB','M_PPRINCFORN','N','N',12,35,'CP_FANTASI','@S25','',,oPPRINCFORN,osoSayPPRINCFORN)]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{129,228,288,23}</property>
        <property name="Name">[oSayPPRINCFORN]</property>
        <property name="Caption">
[Fabricante.....................................:]        </property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">8</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{420,256,59,25}</property>
        <property name="Name">[oPUNIDADE]</property>
        <property name="varName">[m_PUNIDADE]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">3</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">8</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{129,258,288,23}</property>
        <property name="Name">[oSayPUNIDADE]</property>
        <property name="Caption">[Embalagem Vender por Unidade:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{420,286,59,25}</property>
        <property name="Name">[oPUNIDemb]</property>
        <property name="varName">[m_PUNIDemb]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">3</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">9</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{129,288,288,23}</property>
        <property name="Name">[oSayPUNIDemb]</property>
        <property name="Caption">[Embalagem Vender por Caixa.....:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">10</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{420,316,36,25}</property>
        <property name="Name">[oPCATEGORIA]</property>
        <property name="varName">[m_PCATEGORIA]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">2</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">10</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{129,318,288,23}</property>
        <property name="Name">[oSayPCATEGORIA]</property>
        <property name="Caption">
[Categoria Fiscal............................:]        </property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">11</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{420,346,64,25}</property>
        <property name="Name">[oPitens]</property>
        <property name="varName">[m_Pitens]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="Justify">[Right]</property>
        <property name="nMaxLength">3</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">11</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{129,348,288,23}</property>
        <property name="Name">[oSayPitens]</property>
        <property name="Caption">[Quantidade na Caixa Fechada.....:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">12</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{420,376,107,25}</property>
        <property name="Name">[opCodClaFis]</property>
        <property name="varName">[m_pCodClaFis]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="Justify">[Right]</property>
        <property name="nMaxLength">8</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">12</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{129,378,288,23}</property>
        <property name="Name">[oSaypCodClaFis]</property>
        <property name="Caption">[Codigo de NCM - Classif. Fiscal..:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">13</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{420,406,85,25}</property>
        <property name="Name">[oPDESCONTO]</property>
        <property name="varName">[m_PDESCONTO]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="Justify">[Right]</property>
        <property name="cPicture">[@e 99.99]</property>
        <property name="nMaxLength">5</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">13</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{129,408,288,23}</property>
        <property name="Name">[oSayPDESCONTO]</property>
        <property name="Caption">[Desconto Maximo na Venda........:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">14</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{420,436,21,25}</property>
        <property name="Name">[oPEANPESO]</property>
        <property name="varName">[m_PEANPESO]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">1</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">14</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{129,438,288,23}</property>
        <property name="Name">[oSayPEANPESO]</property>
        <property name="Caption">[Vende por Etiqueta de Balanca..?]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{420,466,21,25}</property>
        <property name="Name">[oPvndquant]</property>
        <property name="varName">[m_Pvndquant]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">1</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">15</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{129,468,288,23}</property>
        <property name="Name">[oSayPvndquant]</property>
        <property name="Caption">[Vende Calculando Quantidade...?]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">16</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{639,502,185,44}</property>
        <property name="Name">[oPVLUvenda]</property>
        <property name="varName">[m_PVLUvenda]</property>
        <property name="font">
          <font name="Arial Black" width="0" height="-27" weight="900"/>
        </property>
        <property name="Justify">[Right]</property>
        <property name="cPicture">[@e 999,999.99]</property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">16</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{299,521,335,25}</property>
        <property name="Name">[oSayPVLUvenda]</property>
        <property name="Caption">[Preco de Venda (Unitario)............:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-21" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">17</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{639,550,185,35}</property>
        <property name="Name">[oPVLUemb]</property>
        <property name="varName">[m_PVLUemb]</property>
        <property name="font">
          <font name="Arial" width="0" height="-27" weight="700"/>
        </property>
        <property name="Justify">[Right]</property>
        <property name="cPicture">[@e 999,999.99]</property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">17</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{299,560,335,25}</property>
        <property name="Name">[oSayPVLUemb]</property>
        <property name="Caption">[Preco de Venda (Caixa)...............:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-21" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">18</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{639,588,185,35}</property>
        <property name="Name">[oPVLUven3]</property>
        <property name="varName">[m_PVLUven3]</property>
        <property name="font">
          <font name="Arial" width="0" height="-27" weight="700"/>
        </property>
        <property name="Justify">[Right]</property>
        <property name="cPicture">[@e 999,999.99]</property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">18</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{299,598,335,25}</property>
        <property name="Name">[oSayPVLUven3]</property>
        <property name="Caption">[Preco de Fabrica.........................:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-21" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">19</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{519,169,332,20}</property>
        <property name="Name">[osoSayPDIVISAO]</property>
        <property name="Caption">[...]</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="Border">.T.</property>
        <property name="TabIndex">20</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{519,200,332,20}</property>
        <property name="Name">[osoSayPgPreco]</property>
        <property name="Caption">[...]</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="Border">.T.</property>
        <property name="TabIndex">21</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{519,230,332,20}</property>
        <property name="Name">[osoSayPPRINCFORN]</property>
        <property name="Caption">[...]</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="Border">.T.</property>
        <property name="TabIndex">22</property>
      </style>
    </part>
    <part class="ownerbutton">
      <style>
        <property name="Geometry">{497,174,16,16}</property>
        <property name="Name">[oboPDIVISAO]</property>
        <property name="BtnBitmap">[smPreview]</property>
        <property name="lResource">.T.</property>
        <property name="TabIndex">23</property>
      </style>
      <method name="onClick">
        <![CDATA[PSQ_BROW('SE_SUBD','PSESUBD','M_PDIVISAO','N','S',10,35,'SDDESC','@S25','','EXIBA',oPDIVISAO,osoSayPDIVISAO)]]>
      </method>
    </part>
    <part class="ownerbutton">
      <style>
        <property name="Geometry">{497,202,16,16}</property>
        <property name="Name">[oboPgPreco]</property>
        <property name="BtnBitmap">[smPreview]</property>
        <property name="lResource">.T.</property>
        <property name="TabIndex">24</property>
      </style>
      <method name="onClick">
        <![CDATA[PSQ_BROW('SE_GPRE','PSEGPRE','M_PGPRECO','N','S',11,35,'MARKUP','999.99%','','EXIBA',oPgPreco,osoSayPgPreco)]]>
      </method>
    </part>
    <part class="ownerbutton">
      <style>
        <property name="Geometry">{497,234,16,16}</property>
        <property name="Name">[oboPPRINCFORN]</property>
        <property name="BtnBitmap">[smPreview]</property>
        <property name="lResource">.T.</property>
        <property name="TabIndex">25</property>
      </style>
      <method name="onClick">
        <![CDATA[PSQ_BROW('SCCPFAB','PSCCPFAB','M_PPRINCFORN','N','N',12,35,'CP_FANTASI','@S25','','EXIBA',oPPRINCFORN,osoSayPPRINCFORN)]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{812,290,182,34}</property>
        <property name="Name">[oButtonex1]</property>
        <property name="Caption">[F2 - Precificacao]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1002</property>
      </style>
      <method name="onClick">
        <![CDATA[ExecutaXML("se_prod_pteq.tel")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{812,328,182,32}</property>
        <property name="Name">[oButtonex2]</property>
        <property name="Caption">[F3 - Descontos Permitidos]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1003</property>
      </style>
      <method name="onClick">
        <![CDATA[ExecutaXML("se_prod_descontos.tel")
]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{812,366,182,32}</property>
        <property name="Name">[oButtonex3]</property>
        <property name="Caption">[F4 - CST/Taxas NFE SPED]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1003</property>
      </style>
      <method name="onClick">
        <![CDATA[DbSeek_Add_Se_Pnfe( m_pCod, .f., .t.)]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{812,404,182,32}</property>
        <property name="Name">[oButtonex4]</property>
        <property name="Caption">[F5 - Composicao do Produto]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1003</property>
      </style>
      <method name="onClick">
        <![CDATA[BrwComposicoes(, m_Pcod)]]>
      </method>
    </part>
  </part>
  <part class="button">
    <style>
      <property name="Geometry">{863,649,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">{940,648,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>
