<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{308,132,1022,598}</property>
    <property name="Name">[sf_barcz.scr]</property>
    <property name="Caption">[Pedidos na Cozinha]</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 zbSit={||sf_barcz->(if(fg_sit=' ','Aguardando Cozinha',IF(fg_sit='A','Prato Pronto:Servir', IF(fg_sit='E','Prato Pronto e Entregue','Venda Concluida'))))}

oContextMenu:=Hwg_ContextMenu()
hwg_Btn(oToolbar,5,5,54,54)
hwg_Btn(oToolbar,10,544,120,24)
hwg_TbMt(oToolbar,' 13;StartMesa("prato_concluido");Enter-Marca Prato Concluido;Enter - Marca Conclusao do Prato;sembitmap;;;Lucida Bright;-11;Marca &Conclusao;;6;')
hwg_TbMt(oToolbar,' 32;StartMesa("prato_entregue");Barra-Marca Entrega do Prato ;Barra - Marca Entrega do Prato;sembitmap;;;Lucida Bright;-11;Marca &Entrega;;6;')
hwg_TbMt(oToolbar,' 47;(DbClearFilter(),DbGoTop(),d_ob:Refresh());Todos-Exibe Ultimos Pedidos;Todos-Exibe Ultimos Pedidos;sembitmap;;;Lucida Bright;-11;/-&Ultimos;;6;')
hwg_TbMt(oToolbar,' 80;(DBSETFILTER({||FG_SIT=" "},"FG_SIT=fg_sit"),DbGoTop(),d_ob:Refresh());Pendencias da Cozinha;Exibe Pendencias da Cozinha;sembitmap;;;Lucida Bright;-11;&Pendencias;;6;')
hwg_TbMt(oToolbar,' 69;(DBSETFILTER({||FG_SIT="A"},"FG_SIT=fg_sit"),DbGoTop(),d_ob:Refresh());Pendencias de Entrega;Exibe Pendencias de Entrega;sembitmap;;;Lucida Bright;-11;&Entregas;;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()
DBSETFILTER({||FG_SIT=' '},"FG_SIT=' '")
DBGOTOP()
StartMesa("starttimer","cozinha")]]>
  </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,69,1000,458}</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, 'Mesa;Mesa;N;999;3;;')
hwg_TbFi(D_oB, 'Garcom;fVendedor;N;999;3;;')
hwg_TbFi(D_oB, 'Ocup;fOcupantes;N;999;3;;')
hwg_TbFi(D_oB, 'Tempo;tString((Hb_DateTime()-DtHr_Pedid)*86400);P;@S10;10;;wbCorAtraso;;')
hwg_TbFi(D_oB, 'Produto;pDesc;C;@S30;30;;wbCorAtraso;;')
hwg_TbFi(D_oB, 'Quant;mQuant;N;@e 9,999.999;9;;')
hwg_TbFi(D_oB, 'Sit;eVal(zbSit);P;@S23;23;;')
hwg_TbFi(D_oB, 'DtHr_Pedid;hb_TtoC(DtHr_Pedid);P;@S23;23;;')
hwg_TbFi(D_oB, 'Cod;pCod;N;999999;6;;')
hwg_TbFi(D_oB, 'Pedido;fNumPed;N;999999999;9;;')
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.,"SF_BARCZ",.F.,.T.,{||.T.} }
d_ob:bEdit := {|D_oB| .t.}
AADD(aBrowses,{D_oB,D_oB:Alias,{||.f.},{|| .T.},})
]]>
    </method>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{410,0,483,47}</property>
      <property name="Name">[oLabel1]</property>
      <property name="Caption">[Pedidos na Cozinha]</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>
