<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{92,175,1022,598}</property>
    <property name="Name">[vb_fpop0.scr]</property>
    <property name="Caption">[Autorizacoes F.Popular]</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 COMANDO ANTES ZNIL = (OrdSetFocus(0), DbGoBottom(), DbSkip(-8))
oContextMenu:=Hwg_ContextMenu()
hwg_Btn(oToolbar,5,5,64,64)
hwg_TbMt(oToolbar,'79;tb_index(D_OB);O-Ordena ;O-Ordena a coluna do cursor;ordenar.ico;;;;;&O-Ordena;;;')
hwg_TbMt(oToolbar,'80;tb_pesq(D_OB);P-Pesquisa ;P-Pesquisa na coluna do cursor;pesquisa.ico;;;;;&P-Pesquisa;;;')
//skel VARIAVEL zbPrtRel1 := {||Relat('lst_exec("VENDAFPO")','nb','NaoFecheTabelasNaSaida')}
hwg_TbMt(oToolbar,'73;eVal(zbPrtRel1);I-Imprime ;I-Imprime;impressora.ico;;;;;&I-Listagem;;;')
hwg_Btn(oToolbar,,,84,64)
hwg_TbMt(oToolbar,'73;fPopular("REIMPRIME_VINCULADO_FPOP",D_ob);I-Vinculado ;I-ReImprime Cupom Vinculado fPopular;impressora.ico;;;;;&I-Vinculado;;;')
hwg_TbMt(oToolbar,'7;fPopular("ESTORNA",D_ob);DEL-Estorna_Item ;DEL-Estorna Item Selecionado;deletar.ico;;;;;DelItem;;;')
hwg_TbMt(oToolbar,'32;fPopular("VENDA_ESTORNA",D_ob);Barra-Estorna_Venda ;Barra-Estorna venda com a autorizacao selecionada;deletar.ico;;;;;DelVenda;;;')

d_ob:lEditable := .t.
hwg_Btn(oToolbar,10,544,70,24)
// hwg_TbMt(oToolbar,' 22;tb_insert(D_OB);Ins-Inclui ;Ins-Inclui;cadastrar.ico;;;;;Inclui;;;')
// hwg_TbMt(oToolbar,' 65;tb_update(D_OB);A-Altera ;A-Altera;alterar.ico;;;;;&A-Altera;;;')
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,'84;tb_locate(D_oB);T-Busca_Trecho ;T-Pesquisa Trecho na coluna do cursor;sembitmap;;;Lucida Bright;-11;&T-Trecho;;6;')
hwg_TbMt(oToolbar,'67;tb_locate(D_oB);C-Repete_Busca ;C-Repete Busca na coluna do cursor;sembitmap;;;Lucida Bright;-11;&C-Continua;;6;')
hwg_TbMt(oToolbar,'76;tb_locate(D_oB);L-Busca_Iniciais ;L-Busca pelas Iniciais na coluna do cursor;sembitmap;;;Lucida Bright;-11;&L-Iniciais;;6;')
hwg_TbMt(oToolbar,'70;tb_filter(d_ob);F-Filtra ;F-Filtra Cursor;sembitmap;;;Lucida Bright;-11;&F-Filtra;;6;')
hwg_Btn(oToolbar,,,100,24)
hwg_TbMt(oToolbar,'7;if(FCONFIRMAD="S",Alert("Essa autorizacao foi confirmada."+chr(59)+"A simples exclusao nao eh permitida nesse caso!"+chr(59)+"Voce pode usar o Estorno da mesma!"),tb_del(d_ob));Del-Exclui pedido de Autorizacao;Del-Exclui pedido de Autorizacao;sembitmap;;;Lucida Bright;-11;&Del-Exclui;;6;')
// hwg_TbMt(oToolbar,'7;(FCONFIRMAD<>"S".and.tb_del(d_ob));Del-Exclui pedido de Autorizacao;Del-Exclui pedido de Autorizacao;sembitmap;;;Lucida Bright;-11;&Del-Exclui;;6;')
hwg_TbMt(oToolbar,'82;fPopular("RETIFICA_DESCRICOES",D_ob);R-Descricoes ;R - Descricoes;sembitmap;;;Lucida Bright;-11;&R-Descricoes;;6;')
hwg_TbMt(oToolbar,'82;fPopular("EXIBE_RETORNOS",D_ob);R-Retornos ;R - Exibe Retornos das Autorizacoes;sembitmap;;;Lucida Bright;-11;&R-Retornos;;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,458}</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, 'DtEmiss;FDATAEMI;D;;  8;;')
hwg_TbFi(D_oB, 'Paciente;PACIENTE;C;@S40; 20;;')
hwg_TbFi(D_oB, 'Medicamento;PDESC;C;@S40; 20;;')
hwg_TbFi(D_oB, 'DtReceita;MDATARECEI;D;;8;;')
hwg_TbFi(D_oB, 'Pedida;MQUANT;N;99999;  5;;')
hwg_TbFi(D_oB, 'Atendida;MQATEND;N;99999;  5;;')
hwg_TbFi(D_oB, 's;FCONFIRMAD;C;x;  1;;')
hwg_TbFi(D_oB, 'Estorno;MQestorno;N;99999;  5;;')
hwg_TbFi(D_oB, 'Subsidio;PSUBSIDIO;N;99999.99; 10;;')
hwg_TbFi(D_oB, 'Pr.Venda;PVLUVENDA;N;99999.99; 10;;')
hwg_TbFi(D_oB, 'Autorizacao;AUTORIZA;C;@S19; 19;;')
hwg_TbFi(D_oB, 'CPF;CPF;C;@S11; 11;;')
hwg_TbFi(D_oB, 'DifPaciente;PDIFPACIEN;N;99999999.99;11;;')
hwg_TbFi(D_oB, 'Cod.Barras;PDIC6;N;99999999999999; 14;;')
hwg_TbFi(D_oB, 'Posologia;POSOLOGIA;N;9999;9;;')
hwg_TbFi(D_oB, 'Aplicacoes;APLICACOES;N;9999;10;;')
hwg_TbFi(D_oB, 'CRM;CRM;C;@S10; 10;;')
hwg_TbFi(D_oB, 'CRM_CRO;CRM_CRO;C;@S5;7;;')
hwg_TbFi(D_oB, 'UFCRM;UFCRM;C;xx;5;;')
hwg_TbFi(D_oB, 'UnidApresentacao;DSUNIDAPRE;C;@S20; 20;;')
hwg_TbFi(D_oB, 'nSolic;fNumPBM;N;9999999;7;;')
hwg_TbFi(D_oB, 'cSol;INAUTSOLIC;C;xxxx;  4;;')
hwg_TbFi(D_oB, 'cAut;INAUTMEDIC;C;xxxx;  4;;')
hwg_TbFi(D_oB, 'NF;FNUM;N;9999999999; 10;;')
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.,"VB_FPOP0",.F.,.T.,{||.T.} }
sHwgKeyEdit:= 61
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">[Autorizacoes F.Popular]</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>
