<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{298,24,1024,678}</property>
    <property name="Name">[]</property>
    <property name="Caption">[Selecao de Produtos]</property>
    <property name="AlwaysOnTop">.F.</property>
    <property name="AutoCenter">.T.</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="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="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[//odlg:anchor=15
//w1JpgIndiqueProduto:=r_siga+"xml\vdaprd_informeproduto.jpg"

bDadosProd := {|| m_dadosprod:=se_prod->('CodReduzido:'+STR(pcod,6)+' / CodBarra:'+Str(pdic6,14)+' / Referencia:'+preffab+' / Estoque:'+Str(peatual,6)  )}
]]>
  </method>
  <part class="status">
    <style>
      <property name="Geometry">{0,656,1024,22}</property>
      <property name="Name">[ODLGSTATUSBAR]</property>
      <property name="font">
        <font name="Arial" width="0" height="-13" weight="700"/>
      </property>
    </style>
    <part class="label">
      <style>
        <property name="Geometry">{990,670,14,15}</property>
        <property name="Name">[oLabel22]</property>
        <property name="Caption">[__]</property>
        <property name="Anchor">240</property>
        <property name="TextColor">16777215</property>
        <property name="font">
          <font name="Arial Narrow" width="0" height="-9" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">39</property>
      </style>
    </part>
  </part>
  <part class="bitmap">
    <style>
      <property name="Geometry">{134,518,211,137}</property>
      <property name="Name">[oBitmap2]</property>
      <property name="Bitmap">[icon\logo_empresa.jpg]</property>
      <property name="Stretch">[1 - Isometric]</property>
      <property name="Transparent">.T.</property>
    </style>
  </part>
  <part class="bitmap">
    <style>
      <property name="Geometry">{4,274,128,99.00}</property>
      <property name="Name">[oJpgProd]</property>
      <property name="Stretch">[1 - Isometric]</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{4,121,1012,132}</property>
      <property name="Name">[oPdesc]</property>
      <property name="varName">[m_pdesc]</property>
      <property name="Anchor">240</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">4194304</property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Arial" width="0" height="-53" weight="700"/>
      </property>
      <property name="Multiline">.T.</property>
      <property name="FormatText">[UPPERCASE]</property>
      <property name="cPicture">[@s50]</property>
      <property name="Border">.F.</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">7</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{349.00,516,670.00,121}</property>
      <property name="Name">[ofval]</property>
      <property name="varName">[m_fval]</property>
      <property name="Anchor">240</property>
      <property name="TextColor">16777215</property>
      <property name="BackColor">4194304</property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Arial" width="0" height="-96" weight="700"/>
      </property>
      <property name="Justify">[Right]</property>
      <property name="cPicture">[@E 99,999.99]</property>
      <property name="nMaxLength">10</property>
      <property name="Border">.F.</property>
      <property name="TabIndex">9</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{4,63,308,45}</property>
      <property name="Name">[oPcod]</property>
      <property name="varName">[m_pcodc]</property>
      <property name="Anchor">240</property>
      <property name="font">
        <font name="Arial" width="0" height="-35" weight="700"/>
      </property>
      <property name="cPicture">[]</property>
      <property name="Border">.F.</property>
      <property name="ToolTip">[Informe Cod. do Produto ou Pistole Cod Barras]</property>
      <property name="TabIndex">10</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{314,63,173,45}</property>
      <property name="Name">[oMquant]</property>
      <property name="varName">[m_mquant]</property>
      <property name="Anchor">240</property>
      <property name="TextColor">123187896</property>
      <property name="font">
        <font name="Arial" width="0" height="-35" weight="700"/>
      </property>
      <property name="cPicture">[@E 9,999.999]</property>
      <property name="nMaxLength">10</property>
      <property name="Border">.F.</property>
      <property name="TabIndex">11</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{5,250,1012,21}</property>
      <property name="Name">[oDadosProd]</property>
      <property name="varName">[m_DadosProd]</property>
      <property name="Anchor">240</property>
      <property name="TextColor">12632256</property>
      <property name="BackColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-15" weight="400"/>
      </property>
      <property name="Justify">[Center]</property>
      <property name="cPicture">[]</property>
      <property name="Border">.F.</property>
      <property name="TabIndex">11</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{5,4,867,27}</property>
      <property name="Name">[oLabel17]</property>
      <property name="Caption">
[(&quot;Operador: &quot; +str(m_fvendedor) + &quot; - &quot;+m_fnome)]      </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="label">
    <style>
      <property name="Geometry">{13,546,108,106}</property>
      <property name="Name">[oLabel25]</property>
      <property name="Caption">[(&quot;&quot; +strzero(s_vb_ncaix,2))]</property>
      <property name="Justify">[Center]</property>
      <property name="TextColor">4194304</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-80" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">11</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{488,63,135,45}</property>
      <property name="Name">[oPdesconto]</property>
      <property name="varName">[m_pdesconto]</property>
      <property name="Anchor">240</property>
      <property name="font">
        <font name="Arial" width="0" height="-35" weight="700"/>
      </property>
      <property name="Justify">[Right]</property>
      <property name="cPicture">[@E 99.99]</property>
      <property name="nMaxLength">5</property>
      <property name="Border">.F.</property>
      <property name="TabIndex">12</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{625,63,173,45}</property>
      <property name="Name">[oPrUnit]</property>
      <property name="varName">[m_prunit]</property>
      <property name="Anchor">240</property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Arial" width="0" height="-35" weight="700"/>
      </property>
      <property name="Justify">[Right]</property>
      <property name="cPicture">[@E 99,999.99]</property>
      <property name="nMaxLength">9</property>
      <property name="Border">.F.</property>
      <property name="TabIndex">12</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{800,63,216,45}</property>
      <property name="Name">[oPrtotal]</property>
      <property name="varName">[m_prtotal]</property>
      <property name="Anchor">240</property>
      <property name="font">
        <font name="Arial" width="0" height="-35" weight="700"/>
      </property>
      <property name="Justify">[Right]</property>
      <property name="cPicture">[@E 99,999.99]</property>
      <property name="nMaxLength">8</property>
      <property name="Border">.F.</property>
      <property name="TabIndex">12</property>
    </style>
  </part>
  <part class="browse">
    <style>
      <property name="Geometry">{134.00,271,885,244}</property>
      <property name="Name">[oBrwProds]</property>
      <property name="Anchor">240</property>
      <property name="font">
        <font name="Gill Sans MT" width="0" height="-17" weight="400"/>
      </property>
      <property name="TextColor">4194304</property>
      <property name="BackColor">14286847</property>
      <property name="Border">.F.</property>
      <property name="Enabled">.F.</property>
      <property name="TabIndex">24</property>
      <property name="TabStop">.F.</property>
    </style>
    <method name="onClick">
      <![CDATA[BrwAlterarItensVda()]]>
    </method>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
    <method name="onLostFocus">
      <![CDATA[.f.]]>
    </method>
    <method name="onInit">
      <![CDATA[      oBrwProds:bKeyDown := {|self, wParam| wObjetoQueDeveReceberFoco:SetFocus() , .T. }
	hwg_TbFi(oBrwProds, 'Item;Recno();N;9999;4;N;')
IF sys_segmento='valegas'
      hwg_TbFi(oBrwProds, 'ValeGas;pEdicao;N;99999999999;11;N;')
ELSE
      hwg_TbFi(oBrwProds, 'Obs;if(QtdCanc>0,"*Cancelado*",if(fgprom="S".or.pdescbon>0,"*"," "));C;XXXXXXxxxxx;11;N;')
endif
	hwg_TbFi(oBrwProds, 'Codigo;COD;N;9999999; 6;N;')
	hwg_TbFi(oBrwProds, 'Produto;DESC;C;@S25; 25;N;')
	hwg_TbFi(oBrwProds, 'Qtd;Quant;N;@e 9999.999;8;S;')
	hwg_TbFi(oBrwProds, 'PrcUnit.;PRUNIT;N;@e 99999.99;8;S;')
	hwg_TbFi(oBrwProds, 'PrcTotal;PRTOTAL;N;@e 99999.99;8;S;')
	oBrwProds:bColorSel:= RGB(3,23,133)
	oBrwProds:tColorSel:= RGB(255,255,255)
	// oBrwProds:bOther:={|o,m,wp,lp| messagesBrowse(o,m,wp,lp)}
	oBrwProds:cargo:={.T.,.T.,"TROCA.tel",.F.,.T.,{||.T.} }
	d_SkipBlock:="sys_tbbrow"
	AADD(aBrowses,{oBrwProds,oBrwProds:Alias,{||.f.},{|| .T.},})]]>
    </method>
    <part class="bitmap">
      <style>
        <property name="Geometry">{146,272,0,133}</property>
        <property name="Name">[oBitmap1]</property>
        <property name="Bitmap">[icon\logo_empresa.jpg]</property>
      </style>
    </part>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{3,498,123,17}</property>
      <property name="Name">[oLabel18]</property>
      <property name="Caption">[F11 - Consulta Preco]</property>
      <property name="Anchor">240</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-11" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">39</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{3,458,123,17}</property>
      <property name="Name">[oLabel20]</property>
      <property name="Caption">[F6 - Pede Quantidade]</property>
      <property name="Anchor">240</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-11" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">39</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{3,438,123,17}</property>
      <property name="Name">[oLabel3]</property>
      <property name="Caption">[F4 - Lista Itens]</property>
      <property name="Anchor">240</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-11" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">39</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{3,398,131,17}</property>
      <property name="Name">[oLabel19]</property>
      <property name="Caption">[F2 - Vende Caixa Fechada]</property>
      <property name="Anchor">240</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-11" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">39</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{3,418,123,17}</property>
      <property name="Name">[oLabel4]</property>
      <property name="Caption">[F3 - Cancela Item]</property>
      <property name="Anchor">240</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-11" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">39</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{803,638,217,15}</property>
      <property name="Name">[oLabel10]</property>
      <property name="Caption">[ESC - Escolhe Forma de Pagamento]</property>
      <property name="Anchor">240</property>
      <property name="font">
        <font name="Arial" width="0" height="-12" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">39</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{3,478,123,17}</property>
      <property name="Name">[oLabel21]</property>
      <property name="Caption">[F7 - Receber Conta]</property>
      <property name="Anchor">240</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-11" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">39</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{349,636,104,19}</property>
      <property name="Name">[oLabel5]</property>
      <property name="Caption">[Total a Pagar]</property>
      <property name="font">
        <font name="Arial" width="0" height="-13" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">43</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{4,42,90,21}</property>
      <property name="Name">[oLabel2]</property>
      <property name="Caption">[Código]</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">44</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{314,42,90,21}</property>
      <property name="Name">[oLabel6]</property>
      <property name="Caption">[Quantidade]</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">45</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{488,42,90,18}</property>
      <property name="Name">[oLabel7]</property>
      <property name="Caption">[Desconto]</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">46</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{625,42,105,19}</property>
      <property name="Name">[oLabel9]</property>
      <property name="Caption">[Preço Unitário]</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">47</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{800,42,90,19}</property>
      <property name="Name">[oLabel11]</property>
      <property name="Caption">[Preço Total]</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">48</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{4,106,145,16}</property>
      <property name="Name">[oLabel12]</property>
      <property name="Caption">[Descrição do Produto]</property>
      <property name="font">
        <font name="" width="0" height="-11" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">49</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{13,519,107,25}</property>
      <property name="Name">[oLabel26]</property>
      <property name="Caption">[Terminal]</property>
      <property name="Justify">[Center]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-24" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">49</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{3,378,123,17}</property>
      <property name="Name">[oLabel27]</property>
      <property name="Caption">[F1 - Consulta Produto]</property>
      <property name="TextColor">4194304</property>
      <property name="font">
        <font name="Arial" width="0" height="-11" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">50</property>
    </style>
  </part>
</part>
