<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{353,154,790,582}</property>
    <property name="Name">[SEPRODFP.scr]</property>
    <property name="Caption">[Produtos Subsidiados]</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">[3 - Sizable (Default)]</property>
    <property name="nBackColor">14215660</property>
    <property name="Icon">[]</property>
    <property name="Bitmap">[icon\sccrcli.scr.jpg]</property>
    <property name="NoIcon">.F.</property>
    <property name="SystemMenu">.T.</property>
    <property name="Minimizebox">.T.</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
//skel VARIAVEL w_colsep = chr(179)
//skel VARIAVEL w_headsep = chr(196)
oContextMenu:=Hwg_ContextMenu()
hwg_Btn(oToolbar,25,27,54,54)
hwg_TbMt(oToolbar,'80;tb_pesq(D_OB);P-Pesquisa ;Pesquisa;xml\icon\PESQUISA.jpg;28;28;;;')
hwg_TbMt(oToolbar,'13;se_doget(D_ob);Enter-Edita ;Enter - Edita;xml\icon\ENTER.jpg;28;28;;;')
hwg_TbMt(oToolbar,'0;;;espaco;espaco;')
hwg_TbMt(oToolbar,'0;aBrowses[nBrwAtivo,1]:top();Primeira;Primeira;xml\icon\primeiro.jpg;28;28;;;')
hwg_TbMt(oToolbar,'0;aBrowses[nBrwAtivo,1]:pageUp();Volta_Pag;Volta_Pag;xml\icon\anterior.jpg;28;28;;;')
hwg_TbMt(oToolbar,'0;aBrowses[nBrwAtivo,1]:pageDown();Avanca_Pag;Avanca_Pag;xml\icon\proximo.jpg;28;28;;;')
hwg_TbMt(oToolbar,'0;aBrowses[nBrwAtivo,1]:bottom();Ultima;Ultima;xml\icon\ultimo.jpg;28;28;;;')
hwg_TbMt(oToolbar,'0;;;espaco;espaco;')

hwg_TbMt(oToolbar,'73;lst_alias(D_OB);I-Imprime ;Imprime;xml\icon\I.jpg;28;28;;;')
hwg_TbMt(oToolbar,'79;tb_index(D_OB);O-Ordena ;Ordena;xml\icon\O.jpg;28;28;;;')
d_ob:lEditable = .t.
hwg_TbMt(oToolbar,'0;;;espaco;espaco;')
hwg_TbMt(oToolbar,'27;hwg_oDlgKey(oDlg, 27, nBrwAtivo);Saida;Saida;xml\icon\saida.ico;28;28;;;')
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,552,790,30}</property>
      <property name="Name">[oDlgStatusBar]</property>
      <property name="aParts">{640,160,0}</property>
    </style>
  </part>
  <part class="browse">
    <style>
      <property name="Geometry">{24,112,742,325}</property>
      <property name="Name">[D_oB]</property>
      <property name="TabIndex">4</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[nBrwAtivo:=1]]>
    </method>
    <method name="onInit">
      <![CDATA[D_oB:bColorSel:= RGB(3,23,133)
D_oB:tColorSel:= RGB(255,255,255)
D_oB:bKeyDown := {|self, wParam| (aBrowses[nBrwAtivo,2])->(hwg_oDlgKey(self, wparam,1)) , .T. }
hwg_TbFi(D_oB, 'Cod;PCOD;N;99999;5;N;')
hwg_TbFi(D_oB, 'Cod_Barras;Pdic6;N;9999999999999;13;N;')
hwg_TbFi(D_oB, 'Descricao;PDESC;C;@S25;25;N;')
hwg_TbFi(D_oB, 'Fabr;PPRINCFORN;N;9999;  4;N;')
hwg_TbFi(D_oB, 'PrVenda;pvluvenda;N;9999.99;7;N;')
hwg_TbFi(D_oB, 'Subsidio;psubsidio;N;99999.99;8;S;')
hwg_TbFi(D_oB, 'Dif_Cli;pvluvenda-psubsidio;N;99999.99;8;N;')
hwg_TbFi(D_oB, 'PedeReceita;Preceita;C;x;11;S;')
hwg_TbFi(D_oB, 'Aplicacoes;PqtdAplic;N;9999;10;S;')
hwg_TbFi(D_oB, 'Gp;pgpreco;C;!!;2;S;')
hwg_TbFi(D_oB, 'Margem;(pvluvenda-pvluven3)/pvluvenda*100;C;999.99%;7;N;')
hwg_TbFi(D_oB, 'Markup;(MarkupPrd(PgPreco)-1)*100;N;999.99%;7;N;')
hwg_TbFi(D_oB, '%DMax;pdesconto;N;99.99%;6;S;')
hwg_TbFi(D_oB, '%DVis;pdescbon;N;99.99%;6;S;')
hwg_TbFi(D_oB, 'DescBloqueado;pbloqvenda;C;!;12;S;')
hwg_TbFi(D_oB, 'PrPromo;Pvluven2;N;9999.99;7;S;')
hwg_TbFi(D_oB, 'DtPromo;Pdataprog;D;;8;S;')
hwg_TbFi(D_oB, 'Prc Fab;PVLUVEN3;N;9999.99;7;N;')
hwg_TbFi(D_oB, 'Lista;PnegPos;C;!;5;S;')
hwg_TbFi(D_oB, 'PrecoLb;pPrecoLib;C;!;7;S;')
hwg_TbFi(D_oB, '%ComVis;pcomisvis;N;99.99%;6;S;')
D_oB:Alias := alias()
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)}')
AADD(aBrowses,{D_oB,D_oB:Alias,{||.f.},{|| .T.},})]]>
    </method>
  </part>
</part>
