<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{309,17,1019,650}</property>
    <property name="Name">[psfcodop.scr]</property>
    <property name="Caption">[Codigos de Operacoes Fiscais]</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 Z_XTELA = SAVESCREEN(3,0,10,79)
//skel VARIAVEL z_xblk =            "Z_COR := SetColor('R/W'),"
//skel VARIAVEL z_xblk = z_xblk + "Scroll(3,0,9,79,0),DispBox(3,0,10,79),"
//skel VARIAVEL z_xblk = z_xblk + 'DevPos(4,2), DevOut(codop+" "+descop),'
//skel VARIAVEL z_xblk = z_xblk + 'DevPos(5,2), DevOut("Detalhamento: "+desc1),'
//skel VARIAVEL z_xblk = z_xblk + 'DevPos(6,2), DevOut("              "+desc2),'
//skel VARIAVEL z_xblk = z_xblk + 'DevPos(7,2), DevOut("              "+desc3),'
//skel VARIAVEL z_xblk = z_xblk + 'DevPos(8,2), DevOut("              "+desc4),'
//skel VARIAVEL z_xblk = z_xblk + "SetColor(Z_COR),descop"
//skel VARIAVEL z_blkPpo = _CreateBlock( z_xblk )
//skel VARIAVEL z_xblk = ""
//skel COMANDO DEPOIS Z_NIL = RESTSCREEN(3,0,10,79,Z_XTELA)
oContextMenu:=Hwg_ContextMenu()
hwg_Btn(oToolbar,5,5,54,54)
hwg_TbMt(oToolbar,' 22;tb_insert(D_OB);Ins-Inclui ;Ins-Inclui;;')
hwg_TbMt(oToolbar,' 80;tb_pesq(d_ob);P-Pesquisa ;P-Pesquisa;;')
hwg_TbMt(oToolbar,' 13;psq_enter();Enter-Confirma ;Enter-Pesquisa;;')
hwg_TbMt(oToolbar,' 84;tb_locate(D_oB);T-Trecho ;T-Acha Trecho;;')
hwg_TbMt(oToolbar,' 76;tb_locate(D_oB);L-Iniciais ;L-Acha Trecho;;')
hwg_TbMt(oToolbar,' 67;tb_locate(D_oB);C-Repete_Busca ;C-Acha Trecho;;')
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,620,1019,30}</property>
      <property name="Name">[oDlgStatusBar]</property>
      <property name="aParts">{608,152,0}</property>
    </style>
  </part>
  <part class="browse">
    <style>
      <property name="Geometry">{10,80,1000,488}</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[hwg_TbFi(D_oB, 'Cfop;codop;C;9.999;5;S;')
hwg_TbFi(D_oB, 'Descricao;Descop;C;@s50;50;S;')
hwg_TbFi(D_oB, 'G.Dup;CRED_CONT;C;!;5;S;')
hwg_TbFi(D_oB, 'Icms;CRED_ICMS;C;!;4;S;')
hwg_TbFi(D_oB, 'C.Ent;CFOP_ENTR;C;9999;7;S;')
hwg_TbFi(D_oB, 'CstIcm;CST_ICMS;C;XXXXXX;6;S;')
hwg_TbFi(D_oB, 'CstPis;CST_PIS;C;999;6;S;')
hwg_TbFi(D_oB, 'PIS;CRED_PIS;C;!;3;S;')
hwg_TbFi(D_oB, 'IPI;CRED_IPI;C;!;3;S;')
hwg_TbFi(D_oB, 'Descricao Anterior;descop0;C;@s28;28;S;')
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_CODOP",.F.,.T.,{||.T.} }
d_ob:bEdit := {|D_oB| .t.}
AADD(aBrowses,{D_oB,D_oB:Alias,{||.f.},{|| .T.},})
]]>
    </method>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{6,565,142,52}</property>
      <property name="Name">[oDbNavigator]</property>
      <property name="Anchor">240</property>
      <property name="TabIndex">14</property>
    </style>
    <part class="buttonex">
      <style>
        <property name="Geometry">{8,579,32,32}</property>
        <property name="Name">[oDbNavBtn1]</property>
        <property name="Caption">[]</property>
        <property name="Anchor">240</property>
        <property name="Bitmap">[icon\smfirst.bmp]</property>
        <property name="TabIndex">25</property>
      </style>
      <method name="onClick">
        <![CDATA[aBrowses[nBrwAtivo,1]:top()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{42,579,32,32}</property>
        <property name="Name">[oDbNavBtn3]</property>
        <property name="Caption">[]</property>
        <property name="Anchor">240</property>
        <property name="Bitmap">[smPrev.bmp]</property>
        <property name="TabIndex">26</property>
      </style>
      <method name="onClick">
        <![CDATA[aBrowses[nBrwAtivo,1]:pageUp()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{76,579,32,32}</property>
        <property name="Name">[oDbNavBtn4]</property>
        <property name="Caption">[]</property>
        <property name="Anchor">240</property>
        <property name="Bitmap">[smNext.bmp]</property>
        <property name="TabIndex">27</property>
      </style>
      <method name="onClick">
        <![CDATA[aBrowses[nBrwAtivo,1]:pageDown()]]>
      </method>
    </part>
    <part class="buttonex">
      <style>
        <property name="Geometry">{110,579,32,32}</property>
        <property name="Name">[oDbNavBtn4]</property>
        <property name="Caption">[]</property>
        <property name="Anchor">240</property>
        <property name="Bitmap">[smLast.bmp]</property>
        <property name="TabIndex">28</property>
      </style>
      <method name="onClick">
        <![CDATA[aBrowses[nBrwAtivo,1]:bottom()]]>
      </method>
    </part>
  </part>
</part>
