<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{228,65,982,598}</property>
    <property name="Name">[tabpreco.scr]</property>
    <property name="Caption">[Tabela de Produtos]</property>
    <property name="AlwaysOnTop">.F.</property>
    <property name="AutoCenter">.T.</property>
    <property name="Font">
      <font name="Verdana" width="0" height="-13" weight="400"/>
    </property>
    <property name="FormType">[dlgModal]</property>
    <property name="Modal">.F.</property>
    <property name="ScopeVarObj">[Private]</property>
    <property name="lClipper">.T.</property>
    <property name="lExitOnEnter">.F.</property>
    <property name="lExitOnESC">.T.</property>
    <property name="FromStyle">[Center]</property>
    <property name="Clipsiblings">.F.</property>
    <property name="Clipchildren">.F.</property>
    <property name="TitleBar">.T.</property>
    <property name="StyleBorder">[0 - No Border]</property>
    <property name="nBackColor">14215660</property>
    <property name="Icon">[]</property>
    <property name="Bitmap">[icon\fundo.scr.jpg]</property>
    <property name="NoIcon">.F.</property>
    <property name="SystemMenu">.T.</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[parameters oDlg
oContextMenu:=Hwg_ContextMenu()
hwg_Btn(oToolbar,210,55,54,54)
d_ob:lEditable = .t.
hwg_TbMt(oToolbar,' 13;se_doget(D_ob);Enter-Edita ;Enter - Edita;;')
hwg_TbMt(oToolbar,' 80;tb_pesq(D_OB);P-Pesquisa Chave;P-Pesquisa;;')
d_ob:lEditable = .t.
hwg_TbMt(oToolbar,' 61;doget(D_ob,,.t.);=-Repete_Edicao ;= - Repete_Edicao;;')
hwg_TbMt(oToolbar,' 67;tb_locate(D_oB);C-Repete_Busca ;C-Acha Trecho;;')
hwg_TbMt(oToolbar,' 84;tb_locate(D_oB);T-Busca_Trecho ;T-Acha Trecho;;')
hwg_TbMt(oToolbar,' 76;tb_locate(D_oB);L-Busca_Iniciais ;L-Acha Trecho;;')
hwg_TbMt(oToolbar,' 79;tb_index(D_OB);O-Ordena ;O-Ordena;;')
hwg_TbMt(oToolbar,' 73;lst_alias(D_OB);I-Imprime ;I-Imprime;;')
hwg_TbMt(oToolbar,' 70;tb_filter(d_ob);F-Filtra ;F-Filtra Cursor;;')
SetDlgKey(oDlg,8,26,{|| (aBrowses[nBrwAtivo,2])->(moveRec(aBrowses[nBrwAtivo,1],"UP"))})
SetDlgKey(oDlg,8,28,{|| (aBrowses[nBrwAtivo,2])->(moveRec(aBrowses[nBrwAtivo,1],"DOWN"))})
Hwg_EndMenu() 
]]>
  </method>
  <method name="onPaint">
    <![CDATA[Parameters oCtrl,hDC
oCtrl:bpaint:=NIL
D_oB:setFocus()]]>
  </method>
  <part class="status">
    <style>
      <property name="Geometry">{0,568,982,30}</property>
      <property name="Name">[oDlgStatusBar]</property>
      <property name="aParts">{608,152,0}</property>
    </style>
  </part>
  <part class="browse">
    <style>
      <property name="Geometry">{14,119,953,392}</property>
      <property name="Name">[D_oB]</property>
      <property name="Anchor">15</property>
      <property name="GridLinesSepColor">0</property>
      <property name="TabIndex">4</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[nBrwAtivo:=1]]>
    </method>
    <method name="onInit">
      <![CDATA[hwg_TbFi(D_oB, 'GTIN            ;if(pdic6=0,pcod,PDIC6);N;99999999999999;14;N;')
hwg_TbFi(D_oB, 'Descricao;PDESC;C;@s40;40;N;')
hwg_TbFi(D_oB, 'Preco Venda;PVLUVENDA;N;99999.99;  8;N;')
hwg_TbFi(D_oB, 'Unid  ;PUNIDADE;C;xxx;4;N;')
hwg_TbFi(D_oB, 'Estoque;PEATUAL;N;99999;5;S;')
hwg_TbFi(D_oB, 'IAT;PIAT;C;xx;4;S;')
hwg_TbFi(D_oB, 'IPPT;PIPPT;C;xx;4;S;')
hwg_TbFi(D_oB, 'Categ.Fiscal;PCATEGORIA;C;xx;4;N;')
hwg_TbFi(D_oB, 'Aliquota;PTXICMVDA;N;9999.99;5;N;')
D_oB:bColorSel:= RGB(3,23,133)
D_oB:tColorSel:= RGB(255,255,255)
D_oB:Alias := alias()
D_oB:lDisableVScrollPos := .t.
D_oB:bKeyDown := {|self, wParam| (aBrowses[nBrwAtivo,2])->(hwg_oDlgKey(self, wparam,1)) , .T. }
D_oB:bOther:={|o,m,wp,lp| MessagesBrowse(o,m,wp,lp)}
D_oB:cargo:={.T.,.T.,"SE_PROD",.F.,.T.,{||.T.} }
d_ob:bEdit := {|D_oB| nKey:=13,se_doget(D_ob)}
sHwgKeyEdit:= 61
AADD(aBrowses,{D_oB,D_oB:Alias,{||.f.},{|| .T.},})
]]>
    </method>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{23,511,142,52}</property>
      <property name="Name">[oDbNavigator]</property>
      <property name="Anchor">240</property>
      <property name="TabIndex">14</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{25,525,32,32}</property>
        <property name="Name">[oDbNavBtn1]</property>
        <property name="Caption">[]</property>
        <property name="Anchor">240</property>
        <property name="Bitmap">[icon\smfirst.bmp]</property>
        <property name="TabIndex">25</property>
      </style>
      <method name="onClick">
        <![CDATA[aBrowses[nBrwAtivo,1]:top()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{59,525,32,32}</property>
        <property name="Name">[oDbNavBtn3]</property>
        <property name="Caption">[]</property>
        <property name="Anchor">240</property>
        <property name="Bitmap">[smPrev.bmp]</property>
        <property name="TabIndex">26</property>
      </style>
      <method name="onClick">
        <![CDATA[aBrowses[nBrwAtivo,1]:pageUp()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{93,525,32,32}</property>
        <property name="Name">[oDbNavBtn4]</property>
        <property name="Caption">[]</property>
        <property name="Anchor">240</property>
        <property name="Bitmap">[smNext.bmp]</property>
        <property name="TabIndex">27</property>
      </style>
      <method name="onClick">
        <![CDATA[aBrowses[nBrwAtivo,1]:pageDown()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{127,525,32,32}</property>
        <property name="Name">[oDbNavBtn4]</property>
        <property name="Caption">[]</property>
        <property name="Anchor">240</property>
        <property name="Bitmap">[smLast.bmp]</property>
        <property name="TabIndex">28</property>
      </style>
      <method name="onClick">
        <![CDATA[aBrowses[nBrwAtivo,1]:bottom()]]>
      </method>
    </part>
  </part>
  <part class="button">
    <style>
      <property name="Geometry">{871,528,90,30}</property>
      <property name="Name">[oButton1]</property>
      <property name="Id">[IDCANCEL]</property>
      <property name="Caption">[Esc - Sair]</property>
      <property name="TabIndex">29</property>
    </style>
  </part>
</part>
