<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{301,83,1022,650}</property>
    <property name="Name">[_kits.scr]</property>
    <property name="Caption">[Composicoes Cadastradas]</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
oContextMenu:=Hwg_ContextMenu()
hwg_Btn(oToolbar,5,5,54,54)
//hwg_TbMt(oToolbar,' 73;BrwComposicoes("imprimir_os");I-Imprime ;I-Imprime;impressora.jpg;;;;;&I-Imprime;;')
//hwg_TbMt(oToolbar,' 73;BrwComposicoes("imprimir");I-Imprime ;I-Imprime;impressora.jpg;;;;;&I-Imprime;;')
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()

SET(5,1960)
CiSetKey( "VK_F2",'BrwComposicoes("reservar_estoque_item")',,,"F2:Reservar Estoque")
//CiSetKey( "K_F3","BrwComposicoes('imprimir')",,,"F3:Retirar Item")

]]>
  </method>
  <method name="onPaint">
    <![CDATA[Parameters oCtrl,hDC
oCtrl:bpaint:=NIL
D_oB:setFocus()]]>
  </method>
  <part class="status">
    <style>
      <property name="Geometry">{0,620,1022,30}</property>
      <property name="Name">[oDlgStatusBar]</property>
      <property name="aParts">{608,152,0}</property>
    </style>
  </part>
  <part class="browse">
    <style>
      <property name="Geometry">{15,95,993,446}</property>
      <property name="Name">[D_oB]</property>
      <property name="Anchor">15</property>
      <property name="font">
        <font name="Arial" width="0" height="-19" 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[D_oB:Alias := alias()
debugalert(' alias: '+ALIAS() )
hwg_TbFi(@d_ob, 'Prod;Cod;N;999999;6;;')
hwg_TbFi(@d_ob, 'Descricao;eVal(zBlkPrd,Cod);C;@S15;15;;')
hwg_TbFi(@d_ob, 'Pedida;Quant;N;999999;6;;')

hwg_TbFi(@d_ob, 'Reservar;mqDigit;N;999999.999;10;;')
hwg_TbFi(@d_ob, 'JaReservado;mqReserv;P;999999.99;9;S;')
hwg_TbFi(@d_ob, 'Pendentes;Quant-mqReserv;P;999999.99;9;S;')

//hwg_TbFi(@d_ob, 'Adic+Reserv;mqReserv+mqDigit;P;999999.99;9;S;')
//hwg_TbFi(@d_ob, 'Pend Apos Adic;Quant-(mqReserv+mqDigit);P;999999.99;9;S;')

hwg_TbFi(@d_ob, 'Faturadas;mqAtend;N;999999.99;9;N;')
hwg_TbFi(@d_ob, 'A Faturar;Quant-mqAtend;P;999999.99;9;N;')

hwg_TbFi(@d_ob, 'Glb_Estoq;se_prod->pEatual;P;999999.99;9;;')
hwg_TbFi(@d_ob, 'Glb_Reserv;se_prod->pComprom;P;9999999.99;10;;')
hwg_TbFi(@d_ob, 'Glb_Livres;(se_prod->pEatual-se_prod->pComprom);P;9999999.99;10;;')

D_oB:bColorSel:= RGB(3,23,233)
D_oB:tColorSel:= RGB(255,255,255)
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.,"_PNMV",.F.,.T.,{||.T.} }
AADD(aBrowses,{D_oB,D_oB:Alias,{||.f.},{|| .T.},})

// oBrwItens:Refresh()
// oBtnAtivarDesativar:Caption(ALLTRIM(_Kits->pDesc))]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{0,2,585,47}</property>
      <property name="Name">[vEdit1]</property>
      <property name="Caption">[Reservar Estoque para o Pedido]</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="buttonex">
    <style>
      <property name="Geometry">{249,567,200,47}</property>
      <property name="Name">[oButtonex1]</property>
      <property name="Caption">[F2 - Reservar Estoque]</property>
      <property name="Anchor">6</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="TabIndex">7</property>
    </style>
    <method name="onClick">
      <![CDATA[BrwComposicoes("reservar_estoque_item")]]>
    </method>
  </part>
  <part class="buttonex">
    <style>
      <property name="Geometry">{488,567,194,47}</property>
      <property name="Name">[oButtonex2]</property>
      <property name="Caption">[F3 - Liberar Reserva]</property>
      <property name="Anchor">6</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="TabIndex">7</property>
    </style>
    <method name="onClick">
      <![CDATA[BrwComposicoes("imprimir_item", pcod)]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{603,2,160.00,47}</property>
      <property name="Name">[ofNumPed]</property>
      <property name="varName">[m_fNumPed]</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="-31" weight="700"/>
      </property>
      <property name="Justify">[Right]</property>
      <property name="cPicture">[@E 999,999,999]</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>
