<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{315,17,1024,650}</property>
    <property name="Name">[xmlasspr.scr]</property>
    <property name="Caption">
[Selecao ou Cadastro de Produto a ser associado a Item de XML]    </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,180,150,70)
hwg_TbMt(oToolbar,'999;XmlMov_VinculaPrd();Enter;Enter-Associa Produto;sembitmap;;;Lucida Sans Unicode;-12;<Enter> Associa Item do XML a produto já Cadastrado;')
hwg_Btn(oToolbar,5,260,150,70)
hwg_TbMt(oToolbar,'22;InsertProdByXml("EDIT");Insert;Insert-Adiciona Produto;sembitmap;;;Lucida San Unicode;-12;<Ins> Adiciona Produto Sem Cadastro pelo Item do XML;')
hwg_Btn(oToolbar,360,545,54,54)
hwg_TbMt(oToolbar,' 65;tb_update(D_OB);A-Altera ;A-Altera;alterar.ico;;;;;Altera;;;')
hwg_TbMt(oToolbar,' 32;tb_cons();Barra-Exibe ;Barra-Exibe;barra.ico;;;;;Exite;;;')
hwg_TbMt(oToolbar,' 80;tb_pesq(D_OB);P-Pesquisa ;P-Pesquisa;pesquisa.ico;;;;;Pesquisa;;;')
hwg_TbMt(oToolbar,' 79;tb_index(D_OB);O-Ordena ;O-Ordena;Ordenar.ico;;;;;Ordena;;;')
hwg_TbMt(oToolbar,' 73;lst_alias(D_OB);I-Imprime ;I-Imprime;impressora.ico;;;;;Imprime;;;')
hwg_TbMt(oToolbar,'0;;;espaco;espaco;')
hwg_TbMt(oToolbar,'0;;;espaco;espaco;')
// hwg_TbMt(oToolbar,' 13;XmlMov_VinculaPrd();Enter-Associa ;Enter - Associa;;')
hwg_TbMt(oToolbar,'27;hwg_oDlgKey(oDlg, 27, nBrwAtivo);Saida;Saida;xml\icon\saida.ico;;;;;')
SetDlgKey(oDlg,8,26,{|| (aBrowses[nBrwAtivo,2])->(moveRec(aBrowses[nBrwAtivo,1],"UP"))})
SetDlgKey(oDlg,8,28,{|| (aBrowses[nBrwAtivo,2])->(moveRec(aBrowses[nBrwAtivo,1],"DOWN"))})
d_ob:bEdit := {|D_oB| nKey:=13,XmlMov_VinculaPrd()}
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,1024,30}</property>
      <property name="Name">[oDlgStatusBar]</property>
      <property name="aParts">{608,152,0}</property>
    </style>
  </part>
  <part class="browse">
    <style>
      <property name="Geometry">{157.00,179.00,857,386}</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, 'Descricao;PDESC;C;@s50; 50;;')
hwg_TbFi(D_oB, 'Cod;PCOD;N;999999;6;;')
hwg_TbFi(D_oB, 'Cf;pCategoria;C;XXX; 3;;')
hwg_TbFi(D_oB, 'NCM;pCODCLAFIS;N;99999999; 8;;')
hwg_TbFi(D_oB, 'UN;pUNIDADE;C;XXX; 3;;')
hwg_TbFi(D_oB, 'Saldo;pEatual;N;999999.99;9;;')
hwg_TbFi(D_oB, 'Ref.Fab;pRefFab;C;@S14;14;;')
hwg_TbFi(D_oB, 'Cor;pCor;C;@S10;10;;')
hwg_TbFi(D_oB, 'Marca;pRef;C;@S10;10;;')
hwg_TbFi(D_oB, 'Modelo;pMarcaMode;C;@S10;10;;')
hwg_TbFi(D_oB, 'CodBarras;PDIC6;N;9999999999999; 13;;')
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.,"prod_t1",.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">{5,5,873.00,19}</property>
      <property name="Name">[oLabel1]</property>
      <property name="Caption">
[(&quot;Escolha produto a ser associado com o item do XML com Cod.Barras &quot;+alltrim(xml_mov-&gt;cEan)+&quot; e Cod.NCM &quot;+xml_mov-&gt;NCM+&quot;:&quot;)]      </property>
      <property name="Justify">[Center]</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">5</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{5,31,877.00,43}</property>
      <property name="Name">[oLabel2]</property>
      <property name="Caption">
[(alltrim(xml_mov-&gt;xProd)+&quot;  Unid:&quot;+xml_mov-&gt;uCom)]      </property>
      <property name="Justify">[Center]</property>
      <property name="font">
        <font name="Arial" width="0" height="-27" weight="700"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">6</property>
    </style>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{5.00,74.00,1010.00,102}</property>
      <property name="Name">[oGroup1]</property>
      <property name="Caption">
[Faturamento do Item sob o Ponto de Vista do Emitente:]      </property>
      <property name="Transparent">.T.</property>
      <property name="font">
        <font name="Arial" width="0" height="-15" weight="400"/>
      </property>
      <property name="TabIndex">10</property>
    </style>
    <part class="label">
      <style>
        <property name="Geometry">{12.00,92.00,994,78}</property>
        <property name="Name">[oLabel3]</property>
        <property name="Caption">[(Efd_DescOper())]</property>
        <property name="font">
          <font name="Arial" width="0" height="-13" weight="700"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">8</property>
      </style>
    </part>
  </part>
</part>
