<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{211,110,1027,699}</property>
    <property name="Name">[dlgvenda]</property>
    <property name="Caption">[]</property>
    <property name="AlwaysOnTop">.F.</property>
    <property name="AutoCenter">.T.</property>
    <property name="FormType">[dlgModal]</property>
    <property name="Modal">.T.</property>
    <property name="ScopeVarObj">[Local]</property>
    <property name="lClipper">.F.</property>
    <property name="lExitOnEnter">.F.</property>
    <property name="lExitOnESC">.T.</property>
    <property name="Variables">{zFgConfirmouGerarPedido}</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">14870505</property>
    <property name="Icon">[]</property>
    <property name="Bitmap">[tel_principal2.jpg]</property>
    <property name="NoIcon">.F.</property>
    <property name="SystemMenu">.F.</property>
    <property name="Minimizebox">.F.</property>
    <property name="Maximizebox">.T.</property>
    <property name="AbsAlignment">.T.</property>
    <property name="WindowState">[1 - Normal (Default)]</property>
    <property name="minHeight">-1</property>
    <property name="maxHeight">-1</property>
    <property name="minWidth">-1</property>
    <property name="maxWidth">-1</property>
    <property name="ScrollBars">[0 - None (Default)]</property>
    <property name="DSControl">.F.</property>
  </style>
  <method name="onDlgInit">
    <![CDATA[//skel variavel zDe:=s_Datual
//skel variavel zAte:=s_dAtual
//skel VARIAVEL zFileFat:='mem:_fatnf'
//skel variavel zwSomaFat:=0
//skel variavel zwfValES:=0
//skel variavel zwfValCV:=0
//skel variavel zwfValCA:=0
//skel variavel zwfValCT:=0
//skel variavel zwQtdPedidos:=0
//skel variavel zwSomaCanc:=0
//skel variavel zwQtdCanc:=0
//skel variavel zFgPeriodo:=.t.

//   hwg_Btn(oToolbar,11,45,54,54)
//   hwg_TbMt(oToolbar,'66;ExecutaXML("dlg_fiscal");N-Teste NFC;N-Criar NFC referente a venda;xml\icon\nfce_qr1.jpg;47;47;;')

se sys_segmento<>'calcados' entao obtnrelgrades:Hide()

IF sys_segmento='oticas'
   oBtnNovaOsOtica:Move( ,24,, )   
   oBtnRelOsOtica:Move( ,24,, )   
   oBtnCadOsOtica:Move( ,24,, )   
else
   oContainerReceitas:Hide()
   oBtnNovaOsOtica:Hide()
   oBtnRelOsOtica:Hide()
   oBtnCadOsOtica:Hide()
ENDIF

IF sys_segmento<>'farma'
   oGroupPbm:Hide()
   oBtnFPopular:Hide()
   oBtnEPharma:Hide()
   oBtnVidalinkDireta:Hide()
   oBtnFuncional:Hide()
   oBtnTrnCenter:Hide()
   oBtnValemais:Hide()
   oBtnVidalink:Hide()
   oBtnFechaVidalink:Hide()
ENDIF

IF s_sys_paf
   oBtnVenda:SetToolTip( "Emite Venda Direta no PAF")
ELSE
   oBtnMenuFiscal:Hide()
   oBtnReducaoZ:Hide()
   IF sFgNFC
      IF xGetEnv("ESTACAO_NFC")<>"S"
         oBtnVenda:SetText("&1.NFC")
         oBtnVenda:SetToolTip( "Emite Nota Fiscal de Venda Eletronica a Consumidor")
      ELSE
         oBtnVenda:SetText("&1.PV NFC")
         oBtnVenda:SetToolTip( "Emite Prevenda a Ser Fechada no Checkout de Nota Fiscal de Venda Eletronica a Consumidor")
      Endif
   ELSE
      oBtnNfe:Hide()
      oBtnVenda:Move(,,400,)
      oBtnVenda:SetText("&1.NFE")
      oBtnVenda:SetToolTip( "Emite Nota Fiscal Eletronica Mod 55")
   ENDIF
ENDIF

// IF xGetEnv('PERGUNTA_SE_IMPRIME_CARNE_APOS_VENDA')<>'S' 

IF s_sys_paf .OR. xGetEnv("ESTACAO_NFC")<>"S"
   IF .NOT. sFgNFC
//      oBtnNFCpendentes:Hide()
//      oBtnSync:Hide()
//      oBtnNFCfaturadas:Hide()
//      oBtnSendAll:Hide()
//      oFgNFCoffline:Hide()
//      oBtnNFE:Hide()
   ENDIF
   IF xGetEnv("TEF")="N"
      oBtnTEFadm:Hide()
      oBtnTEFavulso:Hide()
   ENDIF
ELSE
   oBtnEPharma:Hide()
   oBtnFechaVidalink:Hide()
   se .NOT. sFgNFC entao oBtnFuncional:Hide()

   oBtnMenuCaixa:Hide() 
   oBtnReimprimeCarne:Hide()
   oBtnGaveta:Hide()
   
   oBtnNFCpendentes:Hide()
   oBtnSync:Hide()
   oBtnNFCfaturadas:Hide()
   oBtnSendAll:Hide()
   oFgNFCoffline:Hide()
   oBtnFechaPN:Hide()
   oBtnNFE:Hide()

   oBtnTEFadm:Hide()
   oBtnTEFavulso:Hide()
   
   oBtnReImprimirCupom:Hide()
   oBtnAlteraPrecoComEtq:Hide()
   oBtnQuitacao:Hide()
   oBtnTransf:Hide()
   oBtnCancelaVenda:Hide()
ENDIF

if xGetEnv("ATACADO")<>"S"
   oBtnAtacado:Hide()
   oBtnInternet:Hide()
endif

se xGetEnv("SISTEMA_GERENCIAL_COM_NFE")<>"S" entao ( oContainerNFE:Hide() , oFgNFCoffline:Hide() )

se xGetEnv("ESTACAO_SISTEMA_GERENCIAL")="S" ENTAO (ocontainer1:Hide(), ocontainer3:hide(), oBtnFecharEncomendaServico:Hide())
//if xGetEnv("FATURA_SERVICOS")<>"S"
//   oBtnEncomendaServico:Hide()
//   oBtnFecharEncomendaServico:Hide()
//   oBtnExibirEncomendaServico:Hide()
//ELSE
//   IF LEFT(sys_segmento,2)<>'os'
//      oBtnEncomendaServico:SetText("Criar DAV")
//      oBtnEncomendaServico:SetToolTip("Cria DAV, Orcamento ou Pedido sujeito a confirmacao posterior...")
//      oBtnFecharEncomendaServico:SetText("Fechar DAV")
//      oBtnFecharEncomendaServico:Hide()
//      oBtnExibirEncomendaServico:SetText("Listar/Alterar DAV")
//      oBtnExibirEncomendaServico:SetToolTip("Lista/Altera DAV, Orcamento ou Pedido sujeito a confirmacao posterior...")
//   endif
//ENDIF

//   if sys_segmento='oticas'
//      oBtnEncomendaServico:SetText("Criar OS/Receituario")
//      oBtnEncomendaServico:SetToolTip( "Cadastra OS/Pedido baseado em Receituario do Cliente")
//
//      oBtnFecharEncomendaServico:SetText("Fechar OS")
//      oBtnFecharEncomendaServico:SetToolTip("Exibe Lista de Receituarios, permitindo imprimir, faturar, etc...")
//
//      oBtnExibirEncomendaServico:SetText("Listar OS")
//      oBtnExibirEncomendaServico:SetToolTip("Imprime Relacao de Receituarios com varias opcoes de filtragem" )

oBtnPedido:SETFOCUS()]]>
  </method>
  <part class="container">
    <style>
      <property name="Geometry">{0,269,180,190}</property>
      <property name="Name">[oContainerReceitas]</property>
      <property name="TabIndex">0</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{10,279,158,55}</property>
        <property name="Name">[oBtnCadOsOtica]</property>
        <property name="Caption">[Cadastro de Receituarios]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-15" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Exibe e Permite Manutencao Geral no Cadastro Geral de Receituarios]        </property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow("OSOT")
]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{10,336,158,55}</property>
        <property name="Name">[oBtnRelOsOtica]</property>
        <property name="Caption">[Posicao das Ordens de Servico]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-15" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Lista pendencias das Ordens de Servico Referentes aos Receituarios]        </property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[Relat('lst_exec("OSOT1")','nb',,'X')]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{11,394,157,55}</property>
        <property name="Name">[oBtnNovaOSotica]</property>
        <property name="Caption">[Adiciona Novo Receituario]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-15" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Cadastra novo receituario com opcao de Gerar Pedido]        </property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[zFgConfirmouGerarPedido:=.f.
DbGet("OSOT",1,,,"OSOT")

IF zFgConfirmouGerarPedido
   ConverteReceitaOticaEmPedido()
ENDIF]]>
      </method>
    </part>
  </part>
  <part class="container">
    <style>
      <property name="Geometry">{594,108,422,288}</property>
      <property name="Name">[oContainerNFE]</property>
      <property name="TabIndex">0</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{605,120,314,79}</property>
        <property name="Name">[oBtnVenda]</property>
        <property name="Id">[IDOK]</property>
        <property name="Caption">[&amp;1.NFCe]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-37" weight="700"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[IF s_sys_paf
   vb_venda("V")
ELSE
   IF sFgNFC
      wFgVaiGerarNFC:=.t.
      vb_venda("V",,,,,"/PN/")
      wFgVaiGerarNFC:=.f.
   else
      wFgVaiGerarNFE:=.t.
      vb_venda("MV",,,,,"/PN/")
      wFgVaiGerarNFE:=.f.
   ENDIF
ENDIF]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{605,202,400,42}</property>
        <property name="Name">[oBtnFechaPN]</property>
        <property name="Caption">[&amp;Fecha DAV/Prenota/Orcamento]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura-Medium" width="0" height="-16" weight="500" italic="255"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[IF s_sys_paf
   //vb_venda("V")
   StartVenda(,,,,,"/FECHAMENTO/")         
ELSE
   IF sFgNFC
      wFgVaiGerarNFC:=.t.
      vb_venda("V",,,,,"/ALTERARPN/")
      wFgVaiGerarNFC:=.f.
   else
      if xGetEnv("FATURA_SERVICOS")="S"
         // vb_venda("S")
         vb_venda("S",,,,,"/FECHAPN/")
      ELSE
         vb_venda("V",,,,,"/FECHAMENTO/")
      ENDIF
   ENDIF
ENDIF]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{605,245,198,42}</property>
        <property name="Name">[oBtnSendAll]</property>
        <property name="Caption">[&amp;TRANSMITIR PENDENCIAS]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura-Medium" width="0" height="-15" weight="500"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[vb_venda("NFC_SendAll")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{605,291,198,42}</property>
        <property name="Name">[oBtnNFCpendentes]</property>
        <property name="Caption">[NFC &amp;PENDENTES]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-15" weight="700"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[BrowNfePN(,'65')]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{808,291,197,42}</property>
        <property name="Name">[oBtnNFCfaturadas]</property>
        <property name="Caption">[NFC FAT&amp;URADAS]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-15" weight="700"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[BrowNfe(,'65')]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{808,245,197,42}</property>
        <property name="Name">[oBtnSync]</property>
        <property name="Caption">[&amp;SyncNFE]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura-Medium" width="0" height="-15" weight="500"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[Relat('Sync_NFE(s_dAtual, s_dAtual)','nb')]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{923,120,81,79}</property>
        <property name="Name">[oBtnNFE]</property>
        <property name="Caption">[&amp;2.NFe]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura-Medium" width="0" height="-21" weight="500"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[IF sFgNFC
   wFgVaiGerarNFE:=.t.
   vb_venda("MV",,,,,"/PN/")
   wFgVaiGerarNFE:=.f.
ENDIF]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{605,341,97,42}</property>
        <property name="Name">[oBtnTefADM]</property>
        <property name="Caption">[Tef Adm]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-16" weight="700"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Reimprime Comprovante TEF, Permite Cancelamentos, Invoca funcoes Administrativas do TEF, etc...]        </property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[IF oEcf:s_df_TefDedi="S"
  DbMenuDlg("TEF")
ELSE
  Tef_Adm('TD')
ENDIF
]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{708,341,95,42}</property>
        <property name="Name">[oBtnTEFavulso]</property>
        <property name="Caption">[Tef Avulso]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-16" weight="700"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">[Efetua um recebimento TEF avulso]</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[TefAvulso()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{919,341,86,42}</property>
        <property name="Name">[oBtnTroca]</property>
        <property name="Caption">[Troca NFC/NFE]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[IF s_sys_paf
   vb_venda("D")
ELSE
   IF sFgNFC
      wFgVaiGerarNFC:=.t.
      vb_venda("D",,,,,"/PN/")
      wFgVaiGerarNFC:=.f.
   else
      vb_venda("D",,,,,"/PREVENDA/")
   ENDIF
ENDIF]]>
      </method>
    </part>
  </part>
  <part class="container">
    <style>
      <property name="Geometry">{0,108,166,134}</property>
      <property name="Name">[oContainer3]</property>
      <property name="TabIndex">0</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{5,156,154,38}</property>
        <property name="Name">[oButtonex4]</property>
        <property name="Caption">[Emissoes e Recebimentos]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="" width="0" height="-13" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="ToolTip">
[Imprime Resumo de Fechamento de Caixa em Formato A4 PDF]        </property>
        <property name="TabIndex">3</property>
      </style>
      <method name="onClick">
        <![CDATA[Relat('cr_r7()',"nb",,"X")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{6,116,154,38}</property>
        <property name="Name">[oButtonex6]</property>
        <property name="Caption">[Relacao NFE/NFC/NFS]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura Light" width="0" height="-13" weight="300"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[IF .not. QuickDialog("sf_fatnf_periodo_dt", "40;5;Parametros",{ ;
  {"1;3;CHECKBOX 'Exibe apenas um Periodo ?'", "@zFgPeriodo", @zFgPeriodo, "!", "", ""} ,;
  {"3;2;Data Inicial:","@zDe",@zDe,"99.99.9999","zFgPeriodo",""},;
  {"4;2;Data Final..:","@zAte",@zAte,"99.99.9999","zFgPeriodo",""}} ) 
  RETURN .t.
ENDIF

IF .NOT. zFgPeriodo
  CiBrow("SF_FATNF",,"SF_FATNF_LOCACAO")
  zFgPeriodo:=.t.
  RETURN .t.
ENDIF

   DBCLOSEALL()
   mensagem("Selecionando lancamentos entre "+Dtoc(zDe)+" e "+Dtoc(zAte))
   Abra ('0NOIDX', r_siga, sf_fat, "Sf_FatNF",  sf_fat_d, 'fdataemi')
   xDbCopyTo(zFileFat, "_fatnf", {||fDataEmi>=zDe.and.fDataEmi<=zAte}, ,{||fDataEmi<=zAte}, .t., , {||DbSeek(zDe,.t.)} )
   mensagem("")
   DbCloseAll()
   USE (zFileFat) new exclusive ALIAS Sf_FatNf
   
   IF RECCOUNT()>0 
      zwSomaFat:=0
      zwfValES:=0
      zwfValCV:=0
      zwfValCA:=0
      zwfValCT:=0
      zwQtdPedidos:=0
      zwSomaCanc:=0
      zwQtdCanc:=0       
       DBEVAL({|| IF(fg_fat="C".OR."Cancela"$nfe_xmotiv.or.VAL(cod_sit)=2.or.val(cod_sit)=5, (zwSomacanc+=fval,++zwQtdCanc), (zwSomaFat+=fVal, zwfValES+=fValES, ++zwQtdPedidos,zwfValCA+=fValCA,zwfValCV+=fValCV,zwfValCT+=fValCT) )}, {|| (LEFT(fCodop,1)$"567 ".AND.SUBSTR(fCodop,3,1)<>'9').OR.fValLoca>0 } ) 
       DBGOTOP() 
       Brow_Db("SF_FATNF_PERIODO")
   ELSE
       ALERT("Nao Foram Selecionadas Emissoes entre "+DTOC(zDe)+" e "+Dtoc(zAte) )      
   ENDIF
  
   DbCloseAll()
   DbDrop(zFileFat)
]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{5,196,154,38}</property>
        <property name="Name">[oButtonex8]</property>
        <property name="Caption">[Vendas por Periodo]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura Light" width="0" height="-13" weight="300"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[VB_UT1()
]]>
      </method>
    </part>
  </part>
  <part class="container">
    <style>
      <property name="Geometry">{5,513,527,172}</property>
      <property name="Name">[oContainer1]</property>
      <property name="TabIndex">0</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{10,520,110,38}</property>
        <property name="Name">[oButtonex11]</property>
        <property name="Caption">[&amp;A - Abre Caixa]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura Light" width="0" height="-13" weight="300"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[vb_caixa("Open")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{10,560,110,38}</property>
        <property name="Name">[oBtnMenuCaixa]</property>
        <property name="Caption">[&amp;X-Menu Caixa]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="700"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[ExecutaXML("dlgcaixa")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{10,600,110,38}</property>
        <property name="Name">[oButtonex12]</property>
        <property name="Caption">[&amp;Sangria - Pagto]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[sccpped(,1,"SCCPPEDG")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{10,640,110,38}</property>
        <property name="Name">[oBtnGaveta]</property>
        <property name="Caption">[&amp;G-Abre Gaveta]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[IF s_df_abreg<>"S"
   ALERT("Seu sistema nao esta configurado para uso de gaveta!;Para usar gaveta, defina o parametro DF_GAVETA=S")
ELSE
   Abre_Gav()
ENDIF

]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{123,520,138,38}</property>
        <property name="Name">[oBtnQuitacao]</property>
        <property name="Caption">[&amp;R-Receber Conta]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="700"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[QuitaCupons()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{123,560,138,38}</property>
        <property name="Name">[oButtonex1]</property>
        <property name="Caption">[&amp;Q-Quitar com Leitor]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[QuitaCupons(,"QC_OPTICA")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{123,600,138,38}</property>
        <property name="Name">[oButtonex3]</property>
        <property name="Caption">[&amp;K-Quitar por Carnê]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[QuitaCupons(,"QC_SELECAO")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{123,640,138,38}</property>
        <property name="Name">[oButtonex2]</property>
        <property name="Caption">[&amp;W-Quitar por Parcela]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[SCCRDUP(,2,'SCCRDUPA','CAIXA')]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{265,640,144,38}</property>
        <property name="Name">[oButtonex13]</property>
        <property name="Caption">[&amp;Etiquetas de Precos]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[relat("se_r13(,,,.t.)")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{265,600,144,38}</property>
        <property name="Name">[oButtonex10]</property>
        <property name="Caption">[&amp;Produtos]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow("SE_PROD")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{265,560,144,38}</property>
        <property name="Name">[oBtnReImprimirCupom]</property>
        <property name="Caption">[Re&amp;Imprimir Pedido]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[relat("vb_r4()","NB",,"X")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{265,520,144,38}</property>
        <property name="Name">[oBtnReimprimeCarne]</property>
        <property name="Caption">[&amp;Reimprimir Carne]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura-Medium" width="0" height="-16" weight="500"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[ImprimeCarne(,,.t.)]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{412,520,110,38}</property>
        <property name="Name">[oBtnAlteraPrecoComEtq]</property>
        <property name="Caption">[&amp;A-Atualiza Precos]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[se (UserIsAdmin().OR. IsAcessoGerencial()) entao relat("se_r13(,,,.t.,,'PRECOS')")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{412,560,110,38}</property>
        <property name="Name">[oBtnCancelaVenda]</property>
        <property name="Caption">[&amp;C-CancVenda]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[se (UserIsAdmin() .OR. IsAcessoGerencial()) entao vb_ut2("CANCELA")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{412,600,110,38}</property>
        <property name="Name">[oButtonex9]</property>
        <property name="Caption">[&amp;T-Troca]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[wFgVaiGerarNFC:=.f.
vb_venda("D")
]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{412,640,110,38}</property>
        <property name="Name">[oBtnTransf]</property>
        <property name="Caption">[&amp;N-Transferencia]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="400"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">[Gera Nota de Transferencia entre filiais]</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[vb_venda("ST",,.t.)]]>
      </method>
    </part>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{146,104,464,357}</property>
      <property name="Name">[oLabel2]</property>
      <property name="Caption">[CAIXA LIVRE]</property>
      <property name="Justify">[Center]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Segoe UI" width="0" height="-133" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">1</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{843,71,161,23}</property>
      <property name="Name">[oLabel1]</property>
      <property name="Caption">[(sys_segmento)]</property>
      <property name="Justify">[Right]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Calibri" width="0" height="-19" weight="700" italic="255"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">1</property>
    </style>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{1072,239,124,46}</property>
      <property name="Name">[oBtnRelGrades]</property>
      <property name="Caption">[Lista Estoque por Grades]</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="ToolTip">
[Imprime Resumo de Fechamento de Caixa em Formato A4 PDF]      </property>
      <property name="TabIndex">3</property>
    </style>
    <method name="onClick">
      <![CDATA[Relat('Lst_Exec("rel_grade_prod_fr3")',"nb",,"X")]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{1072,180,144,38}</property>
      <property name="Name">[oButtonex7]</property>
      <property name="Caption">[Comprovante Quitacao]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Futura Light" width="0" height="-13" weight="300"/>
      </property>
      <property name="WordWrap">.T.</property>
      <property name="TabIndex">3</property>
    </style>
    <method name="onClick">
      <![CDATA[Relat('Lst_Exec("cxacomprovante_fr3")',"nb",,"X")]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{1029,32,98,38}</property>
      <property name="Name">[oBtnMenuFiscal]</property>
      <property name="Caption">[&amp;M-Menu Fiscal]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-11" weight="700"/>
      </property>
      <property name="PicturePosition">[2-Right]</property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">9</property>
    </style>
    <method name="onClick">
      <![CDATA[ExecutaXML("dlg_fiscal")]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{1130,31,98,38}</property>
      <property name="Name">[oBtnReducaoZ]</property>
      <property name="Caption">[&amp;F-Reducao Z]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-11" weight="700"/>
      </property>
      <property name="PicturePosition">[2-Right]</property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">9</property>
    </style>
    <method name="onClick">
      <![CDATA[MsgINFO("ATENCAO! Esta Funcao Fechara' a impressora Fiscal por Hoje!")
fecha_ecf()]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{605,429,120,30}</property>
      <property name="Name">[oBtnAtacado]</property>
      <property name="Caption">[VENDA &amp;ATACADO]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Futura-Medium" width="0" height="-13" weight="500"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">9</property>
    </style>
    <method name="onClick">
      <![CDATA[  IF sFgNFC
      wFgVaiGerarNFC:=.t.
      vb_venda("V",,,,,"/PN/",,,,,,,,, .t.)
      wFgVaiGerarNFC:=.f.
   ELSE
      vb_venda("V",,,,,"/PN/",,,,,,,,, .t.)
   ENDIF]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{885,429,120,30}</property>
      <property name="Name">[oBtnInternet]</property>
      <property name="Caption">[PRECO INTERNE&amp;T]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Futura-Medium" width="0" height="-13" weight="500"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">9</property>
    </style>
    <method name="onClick">
      <![CDATA[  IF sFgNFC
      wFgVaiGerarNFC:=.t.
      vb_venda("V",,,,,"/PN/",,,,,,,,, .t., , , , .t.)
      wFgVaiGerarNFC:=.f.
   ELSE
      vb_venda("V",,,,,"/PN/",,,,,,,,, .t., , , , .t.)
   ENDIF]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{956,20,60,29}</property>
      <property name="Name">[oButtonex5]</property>
      <property name="Id">[IDCANCEL]</property>
      <property name="Caption">[Esc - Sair]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-11" weight="400"/>
      </property>
      <property name="ToolTip">[Fecha Tela]</property>
      <property name="TabIndex">10</property>
    </style>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{0,9,809,66}</property>
      <property name="Name">[oGroupPbm]</property>
      <property name="Caption">[PBMs]</property>
      <property name="TextColor">4194304</property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Arial Narrow" width="0" height="-13" weight="400"/>
      </property>
      <property name="TabIndex">13</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{101,29,90,38}</property>
        <property name="Name">[oBtnEpharma]</property>
        <property name="Caption">[ePharma]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="700"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">[Efetua Venda do PBM EPHARMA]</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[IF s_sys_paf
   vb_venda("V","N",.F.,,,"/VENDA/","EPHARMA")
ELSE
   IF sFgNFC
      wFgVaiGerarNFC:=.t.
      vb_venda("V","N",.F.,,,"/PN/","EPHARMA")
      wFgVaiGerarNFC:=.f.
   else
      vb_venda("V",,,,,"/PREVENDA/","EPHARMA")
   ENDIF
ENDIF]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{514,29,90,38}</property>
        <property name="Name">[oBtnValeMais]</property>
        <property name="Caption">[TRNCENTER Prevenda]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">[Efetua Prevenda do PBM ValeMais Saude]</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[vb_venda("V","N",.F.,,,"/PREVENDA/","NOVARTIS")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{610,29,90,38}</property>
        <property name="Name">[oBtnVidalink]</property>
        <property name="Caption">[VidaLink PreVenda]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">[Efetua Prevenda do PBM VidaLink]</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[vb_venda("V","N",.F.,,,"/PREVENDA/","VIDALINK")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{703,29,90,38}</property>
        <property name="Name">[oBtnFechaVidalink]</property>
        <property name="Caption">[VidaLink Fechamento]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">[Faz o Fechamento de Prevenda VidaLink]</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[vb_venda("V","N",.F.,,,"/FECHAMENTO/","VIDALINK")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{286,29,82,38}</property>
        <property name="Name">[oBtnVidalinkDireta]</property>
        <property name="Caption">[VidaLink Direta]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">[Efetua Prevenda do PBM VidaLink]</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[   IF sFgNFC
      wFgVaiGerarNFC:=.t.
      // vb_clitv()
      vb_venda("MV",,,,,"/PN/","VIDALINK")
      wFgVaiGerarNFC:=.f.
   ELSE
      vb_venda("V",,,,,,"VIDALINK")
   ENDIF]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{375,29,90,38}</property>
        <property name="Name">[oBtnFuncional]</property>
        <property name="Caption">[FuncionalCard]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="700"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">[Efetua Venda Direta pelo PBM Funcional Card]</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[  IF sFgNFC
      wFgVaiGerarNFC:=.t.
      vb_venda("V",,,,,"/PN/","FUNCIONAL")
      wFgVaiGerarNFC:=.f.
   ELSE
      vb_venda("V",,,,,"/VENDA/","FUNCIONAL")
   ENDIF]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{197,30,86,38}</property>
        <property name="Name">[oBtnTrnCenter]</property>
        <property name="Caption">[PORTAL DA DROGARIA]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Efetua Venda PBM do Portal da Drogaria (Ex: ValeMais Saude, etc.) mediante PRE-AUTORIZACAO digitada no Portal]        </property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[   IF sFgNFC
      wFgVaiGerarNFC:=.t.
      // vb_clitv()
      vb_venda("V",,,,,"/PN/","NOVARTIS")
      wFgVaiGerarNFC:=.f.
   ELSE
      vb_venda("V","N",.F.,,,"/VENDA/","NOVARTIS")
   ENDIF
]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{7,30,90,38}</property>
        <property name="Name">[oBtnFpopular]</property>
        <property name="Caption">[F. Popular]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-11" weight="700"/>
        </property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Efetua Prevenda pelo programa Farmacia Popular]        </property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[//vb_venda("V",,,,,"/PREVENDA/","FPOPULAR")
ExecutaXml("DLGFPOP")
]]>
      </method>
    </part>
  </part>
  <part class="checkbox">
    <style>
      <property name="Geometry">{681,400,248,22}</property>
      <property name="Name">[oFgNFCoffline]</property>
      <property name="varName">[wFgNFCoffline]</property>
      <property name="Caption">[Ativar/Desativar Modo Offline]</property>
      <property name="font">
        <font name="" width="0" height="-16" weight="700"/>
      </property>
      <property name="TabIndex">14</property>
    </style>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{594,490,422,197}</property>
      <property name="Name">[oGroup2]</property>
      <property name="TabIndex">15</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{605,585,400,46}</property>
        <property name="Name">[oBtnTelevendas]</property>
        <property name="Caption">[&amp;V - TeleVendas  e/ou  Carnês]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura Futuris C" width="0" height="-21" weight="400" italic="255"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="PicturePosition">[2-Right]</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[vb_clitv()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{605,636,127,44}</property>
        <property name="Name">[oBtnEncomendaServico]</property>
        <property name="Caption">[Criar &amp;Orcamento]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura Light" width="0" height="-15" weight="300"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[vb_venda("S",,,,,"/PN/")
]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{735,636,131,44}</property>
        <property name="Name">[oBtnExibirEncomendaServico]</property>
        <property name="Caption">[&amp;Listar Orcamentos]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura Light" width="0" height="-15" weight="300"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[BrowNfePn("SF_PN")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{869,636,136,44}</property>
        <property name="Name">[oBtnFecharEncomendaServico]</property>
        <property name="Caption">[&amp;Fechar Orcamentos]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura Light" width="0" height="-15" weight="300"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[vb_venda("S",,,,,"/FECHAPN/")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{605,503,400,79}</property>
        <property name="Name">[oBtnPedido]</property>
        <property name="Id">[IDOK]</property>
        <property name="Caption">[&amp;0.Pedido]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Futura Futuris C" width="0" height="-32" weight="700"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[se xGetEnv("ESTACAO_SISTEMA_GERENCIAL")="S" ENTAO vb_venda("S",,,,,"/PN/") SENAO vb_venda("S")
]]>
      </method>
    </part>
  </part>
</part>
