<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{308,132,1022,598}</property>
    <property name="Name">[semovext.scr]</property>
    <property name="Caption">[Movimentos do Produto]</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\tela.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

//skel VARIAVEL w_colsep = chr(179)
//skel VARIAVEL w_headsep = chr(196)
//skel variavel #TEXTO_FONTE
//skel #FIM_TEXTO_FONTE
oContextMenu:=Hwg_ContextMenu()
hwg_Btn(oToolbar,5,5,64,64)
d_ob:lEditable = .t.
d_ob:lEditable = .t.
hwg_TbMt(oToolbar,' 79;tb_index(D_ob);O-Ordena ;O-Ordena a coluna do cursor;ordenar.ico;;;;;&O-Ordena;;;')
hwg_Btn(oToolbar,10,544,70,24)
hwg_TbMt(oToolbar,' 13;doget(D_ob);Enter-Edita ;Enter - Edita;sembitmap;;;Lucida Bright;-11;Edita;;6;')
hwg_TbMt(oToolbar,' 61;doget(D_ob,,.t.);=-Repete_Edicao ;= - Repete_Edicao;sembitmap;;;Lucida Bright;-11;&=-Repete_Edicao;;6;')
hwg_TbMt(oToolbar,' 70;tb_filter(d_ob);F-Filtra ;F-Filtra Cursor;sembitmap;;;Lucida Bright;-11;&F-Filtra;;6;')
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()
if type("oDlgStatusBar")="B"
   oDlgStatusBar:Anchor:=14
endif

]]>
  </method>
  <method name="onPaint">
    <![CDATA[Parameters oCtrl,hDC
oCtrl:bpaint:=NIL
D_oB:setFocus()]]>
  </method>
  <part class="status">
    <style>
      <property name="Geometry">{0,568,1022,30}</property>
      <property name="Name">[oDlgStatusBar]</property>
      <property name="aParts">{608,152,0}</property>
    </style>
  </part>
  <part class="browse">
    <style>
      <property name="Geometry">{10,77,1000,429}</property>
      <property name="Name">[D_oB]</property>
      <property name="Anchor">15</property>
      <property name="font">
        <font name="Lucida Sans Unicode" width="0" height="-16" weight="400"/>
      </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,'Data;MDATA;D;;10;S;')
   hwg_TbFi(@D_oB,'L;MFGES;C;!;1;S;')
   hwg_TbFi(@D_oB,'Quant;mQuant;N;999999.999;10;N;')
   se sFgContaPecas entao hwg_TbFi(@D_oB,'Pecas;if(pPecas>0,pPecas,"");N;999999;6;N;')
   hwg_TbFi(@D_oB,'Valor;mValor;N;999999.99;9;N;')
   hwg_TbFi(@D_oB,'Desc;mdesc;C;@S30;26;N;')
   se sys_segmento='farma' entao hwg_TbFi(@D_oB,'Lote;pLote;C;@S10;10;N;')
   hwg_TbFi(@D_oB,'Doc;TipoDoc;C;@S10;10;N;')
   hwg_TbFi(@D_oB,'C_F;mcodforc;N;999999;6;N;')
   hwg_TbFi(@D_oB,'%;mdesconto;N;9999.99;7;N;')
   hwg_TbFi(@D_oB,'T;mtipoven;C;!;1;N;')
   hwg_TbFi(@D_oB,'NF;MFNUM;N;9999999999;10;S;')
   hwg_TbFi(@D_oB,'Prod;PCOD;N;999999;6;N;')
   hwg_TbFi(@D_oB,'Ped;fNumPed;N;999999999;9;S;')
   hwg_TbFi(@D_oB,'PrUnit;mValor/if(mQuant>0,mQuant,1);N;999999.999;10;N;')
   hwg_TbFi(@D_oB,'Cd;mcd;N;99;2;N;')
D_oB:bColorSel:= RGB(3,23,233)
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_MOV",.F.,.T.,{||.T.} }
sHwgKeyEdit:= 61
AADD(aBrowses,{D_oB,D_oB:Alias,{||.f.},{|| .T.},})
]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{457,0,436,47}</property>
      <property name="Name">[oLabel1]</property>
      <property name="Caption">[Movimentos do Produto]</property>
      <property name="Justify">[Right]</property>
      <property name="font">
        <font name="Arial" width="0" height="-37" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">5</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{610,516,124,34}</property>
      <property name="Name">[opVluVen3]</property>
      <property name="varName">[m_pVluVen3]</property>
      <property name="Anchor">12</property>
      <property name="font">
        <font name="" width="0" height="-19" weight="700"/>
      </property>
      <property name="cPicture">[@E 999,999.99]</property>
      <property name="TabIndex">6</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{885,516,124,34}</property>
      <property name="Name">[opVluVenda]</property>
      <property name="varName">[m_pVluVenda]</property>
      <property name="Anchor">12</property>
      <property name="font">
        <font name="" width="0" height="-19" weight="700"/>
      </property>
      <property name="cPicture">[@E 999,999.99]</property>
      <property name="TabIndex">6</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{519,516,87,33}</property>
      <property name="Name">[oLabel2]</property>
      <property name="Caption">[Ultimo Preco Aquisicao]</property>
      <property name="Justify">[Right]</property>
      <property name="Anchor">12</property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">7</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{796,516,87,33}</property>
      <property name="Name">[oLabel3]</property>
      <property name="Caption">[Preco de Venda Atual]</property>
      <property name="Justify">[Right]</property>
      <property name="Anchor">12</property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">7</property>
    </style>
  </part>
</part>
