<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{240,104,1098,474}</property>
    <property name="Name">[dlgcaixa]</property>
    <property name="Caption">[Compras / Pedidos]</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="FromStyle">[Popup]</property>
    <property name="Clipsiblings">.F.</property>
    <property name="Clipchildren">.F.</property>
    <property name="TitleBar">.F.</property>
    <property name="StyleBorder">[0 - No Border]</property>
    <property name="nBackColor">14870505</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="onDlgInit">
    <![CDATA[CiSetKey( "VK_F1","BrwXmls()",,,"F1:Entrada por XMLs")
CiSetKey( "VK_F2","Ci_MDe()",,,"F2:O Que faturaram para mim")
CiSetKey( "VK_F3","Novo_NfPed()",,,"F3:Entrada sem XMLs")

CiSetKey( "VK_F3",'ped_forn("ARR_NOT")',,,"F3:Entradas em digitacao")
CiSetKey( "VK_F4",'Novo_Ped()',,,"F4:Criar Pedido a Fornecedor")
CiSetKey( "VK_F5",'ped_forn("ARR_PED")',,,"F5:Pedidos em digitacao")

IF sFgIlhasEstoque .AND. sNumeroDaIlha=0
   oDlg:Move(,,,572)
ENDIF]]>
  </method>
  <part class="buttonex">
    <style>
      <property name="Geometry">{72,594,259,71}</property>
      <property name="Name">[oButtonex18]</property>
      <property name="Caption">[F6 - A Quem Comprar ?]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Calibri" width="0" height="-24" weight="700"/>
      </property>
      <property name="WordWrap">.T.</property>
      <property name="Transparent">.T.</property>
      <property name="ToolTip">
[Gera relatorios estatisticos monstrando os descontos efetivos obtidos junto a cada Distribuidor ou Fornecedor]      </property>
      <property name="TabIndex">1</property>
    </style>
    <method name="onClick">
      <![CDATA[x()]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{34,492,189,71}</property>
      <property name="Name">[oButtonex11]</property>
      <property name="Caption">
[&amp;A - Digitar Abastecimentos ou Recolhimentos para Ilhas de Estoque]      </property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Calibri" width="0" height="-16" weight="400"/>
      </property>
      <property name="WordWrap">.T.</property>
      <property name="Transparent">.T.</property>
      <property name="ToolTip">
[Gera ABASTECIMENTOS ou RECOLHIMENTOS de produtos para Ilhas de Estoque]      </property>
      <property name="TabIndex">2</property>
    </style>
    <method name="onClick">
      <![CDATA[ped_forn("ARR_PED_I","I","SP_MOVF_I")]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{236,494,189,71}</property>
      <property name="Name">[oButtonex17]</property>
      <property name="Caption">
[&amp;B - Historico de Abastecimentos ou Recolhimentos nas Ilhas]      </property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Calibri" width="0" height="-16" weight="400"/>
      </property>
      <property name="WordWrap">.T.</property>
      <property name="Transparent">.T.</property>
      <property name="ToolTip">
[Gera ABASTECIMENTOS ou RECOLHIMENTOS de produtos para Ilhas de Estoque]      </property>
      <property name="TabIndex">2</property>
    </style>
    <method name="onClick">
      <![CDATA[CiBrow("SP_PEDF","","SP_PEDF_I")                                                ]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{440,494,189,71}</property>
      <property name="Name">[oButtonex16]</property>
      <property name="Caption">[&amp;C - Balancete de Saldos por Ilhas de Estoque]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Calibri" width="0" height="-16" weight="400"/>
      </property>
      <property name="WordWrap">.T.</property>
      <property name="Transparent">.T.</property>
      <property name="ToolTip">
[Gera ABASTECIMENTOS ou RECOLHIMENTOS de produtos para Ilhas de Estoque]      </property>
      <property name="TabIndex">2</property>
    </style>
    <method name="onClick">
      <![CDATA[CiBrow("SE_ILHAP")]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{983,30,99,41}</property>
      <property name="Name">[oButtonex5]</property>
      <property name="Caption">[ESC - Sair]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-15" weight="400"/>
      </property>
      <property name="ToolTip">[Fecha Tela]</property>
      <property name="TabIndex">10</property>
    </style>
    <method name="onClick">
      <![CDATA[keyb_event( 27 )]]>
    </method>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{792,252,292,212}</property>
      <property name="Name">[oGroup3]</property>
      <property name="Caption">[Tabelas Auxiliares]</property>
      <property name="TextColor">4194304</property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="700"/>
      </property>
      <property name="TabIndex">13</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{803,334,127,52}</property>
        <property name="Name">[oButtonex3]</property>
        <property name="Caption">[&amp;3. Grupos de Preco]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="" width="0" height="-15" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="TabIndex">3</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow("SE_GPRE")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{941,274,124,52}</property>
        <property name="Name">[oButtonex9]</property>
        <property name="Caption">[&amp;2. Dicionario de Codigos]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="" width="0" height="-15" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="ToolTip">
[Associacoes entre seus produtos e os codigos desses produtos nos fornecedores, alem da definicao dos fatores de conversao de unidades]        </property>
        <property name="TabIndex">3</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow("DIC_FORN")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{803,274,127,52}</property>
        <property name="Name">[oButtonex8]</property>
        <property name="Caption">[&amp;1. Fornecedores]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="" width="0" height="-15" weight="700"/>
        </property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow("SCCPFOR")                                                   ]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{943,334,122,52}</property>
        <property name="Name">[oButtonex10]</property>
        <property name="Caption">[&amp;4. Padroes por Finalidades]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="" width="0" height="-15" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow("NFTIPOIT")                                                   ]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{803,399,260,52}</property>
        <property name="Name">[oButtonex6]</property>
        <property name="Caption">[&amp;6 - CTE - Conhec. Transporte Elet.]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="" width="0" height="-15" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="ToolTip">
[Cadastro de Conhecimentos de Transporte Eletronicos]        </property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow('sf_cte')]]>
      </method>
    </part>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{13,77,456,388}</property>
      <property name="Name">[oGroup4]</property>
      <property name="Caption">[Efetuar entradas no Estoque]</property>
      <property name="TextColor">16711680</property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Arial" width="0" height="-21" weight="700"/>
      </property>
      <property name="TabIndex">14</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{34,197,410,71}</property>
        <property name="Name">[oButtonex1]</property>
        <property name="Caption">[F2 - O que Faturaram para mim ?]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-24" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Consulta site da NFe para listar NFEs faturadas para o CNPJ da Instalacao, e permite efetuar Manifestacao do Destinatario e Baixar os XMLs da notas de entrada]        </property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[Ci_MDe()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{34,106,410,71}</property>
        <property name="Name">[oButtonex14]</property>
        <property name="Caption">[F1 - Entrada por XMLs NFe]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-24" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Efetua entrada de mercadorias a partir de Arquivo XML]        </property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[BrwXmls()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{34,288,295,71}</property>
        <property name="Name">[oButtonex2]</property>
        <property name="Caption">[F3 - Criar Entrada sem XML]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-24" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Cria pedido para entrada de mercadorias sem uso de XML]        </property>
        <property name="TabIndex">2</property>
      </style>
      <method name="onClick">
        <![CDATA[Novo_NfPed()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{345,288,94,71}</property>
        <property name="Name">[oButtonex13]</property>
        <property name="Caption">[Entradas em Digitacao]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-16" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">2</property>
      </style>
      <method name="onClick">
        <![CDATA[ped_forn("ARR_NOT")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{34,377,411,71}</property>
        <property name="Name">[oButtonex7]</property>
        <property name="Caption">
[&amp;H - Notas de Entrada - Impressao, Estornos, etc.]        </property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="" width="0" height="-16" weight="700"/>
        </property>
        <property name="TabIndex">9</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow('SF_FATF',,"SF_FATNE")                                                   ]]>
      </method>
    </part>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{16,2,764,76}</property>
      <property name="Name">[oLabel1]</property>
      <property name="Caption">[Entradas / Compras]</property>
      <property name="Justify">[Center]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Calibri" width="0" height="-48" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">15</property>
    </style>
    <method name="onClick">
      <![CDATA[IF sys_segmento='farma'
   Relat('lst_exec("SELOTESVMESES")','NB',,"X")
ELSE
   ALERT('Para usar esta opcao, você precisaria;cadastrar para cada entrada de produto,;o lote e o vencimento do mesmo;tal como ocorre com os lotes de medicamentos!')
EndIf]]>
    </method>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{481,77,292,217}</property>
      <property name="Name">[oGroup1]</property>
      <property name="Caption">[Sugestao de Compras]</property>
      <property name="TextColor">16711680</property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Arial" width="0" height="-21" weight="700"/>
      </property>
      <property name="TabIndex">16</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{497,106,259,52}</property>
        <property name="Name">[oButtonex20]</property>
        <property name="Caption">[F4 - O Que Comprar ?]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-24" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Pede que o sistema gere Sugestao de Compras baseado na Rotatividade ou Lucratividade de Produtos, considerando a situacao do Estoque]        </property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[Novo_Ped(,,"S", .t. )]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{497,167,259,52}</property>
        <property name="Name">[oButtonex19]</property>
        <property name="Caption">[F5 - Quanto Comprar ?]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-24" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Define os Dias de Estoque a ser mantidos por grupos de giro de produtos]        </property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow("SE_GABCG")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{497,229,119,52}</property>
        <property name="Name">[oButtonex12]</property>
        <property name="Caption">[Sugestoes em Digitacao]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-16" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">[Exibe sugestoes de compras em digitacao]</property>
        <property name="TabIndex">2</property>
      </style>
      <method name="onClick">
        <![CDATA[ped_forn("ARR_PED","S")]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{637,229,119,52}</property>
        <property name="Name">[oButtonex23]</property>
        <property name="Caption">[Configuracoes e Analises]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-16" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">[Exibe sugestoes de compras em digitacao]</property>
        <property name="TabIndex">2</property>
      </style>
      <method name="onClick">
        <![CDATA[DbMenuDlg("MENUCOM3")]]>
      </method>
    </part>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{481,302,292,163}</property>
      <property name="Name">[oGroup2]</property>
      <property name="Caption">[O Que nao Comprar]</property>
      <property name="TextColor">16711680</property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Arial" width="0" height="-21" weight="700"/>
      </property>
      <property name="TabIndex">16</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{498,336,259,52}</property>
        <property name="Name">[oButtonex21]</property>
        <property name="Caption">[Produtos sem Vendas ha X dias]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-19" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Lista produtos sem vendas em um periodo informado]        </property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[Relat('lst_exec("BAL04")','nb',,'X')]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{498,399,259,52}</property>
        <property name="Name">[oButtonex22]</property>
        <property name="Caption">[Produtos Vencendo em X Meses]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-19" weight="400"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">[Lista produtos com vencimento em X meses]</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[IF sys_segmento='farma'
   Relat('lst_exec("SELOTESVMESES")','NB',,"X")
ELSE
   ALERT('Para usar esta opcao, você precisaria;cadastrar para cada entrada de produto,;o lote e o vencimento do mesmo;tal como ocorre com os lotes de medicamentos!')
EndIf]]>
      </method>
    </part>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{790,77,292,163}</property>
      <property name="Name">[oGroup5]</property>
      <property name="Caption">[Cotacoes / Leiloes]</property>
      <property name="TextColor">16711680</property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Arial" width="0" height="-21" weight="700"/>
      </property>
      <property name="TabIndex">16</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{806,102,259,52}</property>
        <property name="Name">[oButtonex15]</property>
        <property name="Caption">[F6 - Cotacao / Leilao]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-24" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="ToolTip">
[Gera Cotacao de Compras referentes aos insumos ou produtos de um Pedido/Orcamento junto aos fornecedores da empresa]        </property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[CiBrow("SX_ORC_D")                                                              ]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{806,163,259,52}</property>
        <property name="Name">[oButtonex24]</property>
        <property name="Caption">[F7 - O que Promover ?]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Calibri" width="0" height="-24" weight="700"/>
        </property>
        <property name="WordWrap">.T.</property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">1</property>
      </style>
      <method name="onClick">
        <![CDATA[Relat('lst_exec("BAL04excessos")','nb',,'X')]]>
      </method>
    </part>
  </part>
</part>
