<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{112,87,674,637}</property>
    <property name="Name">[vda2nferef]</property>
    <property name="Caption">[Criterios para Agrupamento de Cupons]</property>
    <property name="AlwaysOnTop">.F.</property>
    <property name="AutoCenter">.T.</property>
    <property name="Font">
      <font name="Courier New" width="0" height="-12" weight="400"/>
    </property>
    <property name="FormType">[dlgModal]</property>
    <property name="Modal">.F.</property>
    <property name="ScopeVarObj">[Local]</property>
    <property name="lClipper">.T.</property>
    <property name="lExitOnEnter">.T.</property>
    <property name="lExitOnESC">.T.</property>
    <property name="Variables">{modus,osoSaypcod}</property>
    <property name="FromStyle">[Popup]</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">16777215</property>
    <property name="Icon">[]</property>
    <property name="Bitmap">[icon\tela.jpg]</property>
    <property name="NoIcon">.F.</property>
    <property name="SystemMenu">.F.</property>
    <property name="Minimizebox">.F.</property>
    <property name="Maximizebox">.F.</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="onFormInit">
    <![CDATA[parameters o, p1
modus:=p1]]>
  </method>
  <method name="onDlgInit">
    <![CDATA[if(modus<>NIL,SetWindowText( oDlg:handle, modus ),)
SET(5,1960) 

oContainerProd:Hide()
oContainerPlaca:Hide()
// writelog('-> vai MoveoContainerPlaca')
MoveWindow(oContainerPlaca:Handle, oContainerProd:nLeft,oContainerProd:nTop,oContainerProd:nWidth,oContainerProd:nHeight)

// writelog('-> vai MoveWindow')
MoveWindow(oDlg:Handle, 0,0,680,550)
oDlg:CENTER()

od_De:SETFOCUS()]]>
  </method>
  <part class="line">
    <style>
      <property name="Geometry">{5,474,660,2}</property>
      <property name="Name">[oLine1]</property>
    </style>
  </part>
  <part class="container">
    <style>
      <property name="Geometry">{42,512,378,100}</property>
      <property name="Name">[oContainerPlaca]</property>
      <property name="TabIndex">0</property>
    </style>
    <part class="label">
      <style>
        <property name="Geometry">{54,549,133,27}</property>
        <property name="Name">[oSaym_fplaca]</property>
        <property name="Caption">[Placa Veiculo:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">5</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{196,544,139,32}</property>
        <property name="Name">[om_fplaca]</property>
        <property name="varName">[m_fplaca]</property>
        <property name="font">
          <font name="Arial" width="0" height="-24" weight="700"/>
        </property>
        <property name="cPicture">[XXX-9999]</property>
        <property name="nMaxLength">8</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">8</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[wOpcao=4]]>
      </method>
    </part>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{5,0,662,465}</property>
      <property name="Name">[oGroup1]</property>
      <property name="TabIndex">1</property>
    </style>
    <part class="container">
      <style>
        <property name="Geometry">{42,333,579,100}</property>
        <property name="Name">[oContainerProd]</property>
        <property name="TabIndex">0</property>
      </style>
      <part class="label">
        <style>
          <property name="Geometry">{64,346,133,27}</property>
          <property name="Name">[oSaypcod]</property>
          <property name="Caption">[Cod. Produto :]</property>
          <property name="Justify">[Right]</property>
          <property name="BackColor">16777215</property>
          <property name="font">
            <font name="Arial" width="0" height="-19" weight="400"/>
          </property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">4</property>
        </style>
      </part>
      <part class="label">
        <style>
          <property name="Geometry">{73,383,512,29}</property>
          <property name="Name">[osoSaypcod]</property>
          <property name="Caption">[...]</property>
          <property name="font">
            <font name="Arial" width="0" height="-19" weight="400"/>
          </property>
          <property name="Border">.T.</property>
          <property name="TabIndex">6</property>
        </style>
      </part>
      <part class="editbox">
        <style>
          <property name="Geometry">{206,341,97,32}</property>
          <property name="Name">[opcod]</property>
          <property name="varName">[m_pcod]</property>
          <property name="font">
            <font name="Arial" width="0" height="-24" weight="700"/>
          </property>
          <property name="nMaxLength">6</property>
          <property name="3DLook">.T.</property>
          <property name="TabIndex">7</property>
        </style>
        <method name="onLostFocus">
          <![CDATA[PSQ_BROW('SE_PROD','PSEPROD','M_PCOD','N','S',15,51,'PDESC','@S35','',,opcod,osoSaypcod)]]>
        </method>
        <method name="onGetFocus">
          <![CDATA[wOpcao=3]]>
        </method>
      </part>
      <part class="ownerbutton">
        <style>
          <property name="Geometry">{312,342,16,16}</property>
          <property name="Name">[obopcod]</property>
          <property name="BtnBitmap">[smPreview]</property>
          <property name="lResource">.T.</property>
          <property name="TabIndex">1011</property>
        </style>
        <method name="onClick">
          <![CDATA[PSQ_BROW('SE_PROD','PSEPROD','M_PCOD','N','S',15,51,'PDESC','@S27','','EXIBA',opcod,osoSaypcod)]]>
        </method>
      </part>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{154,64,140,32}</property>
        <property name="Name">[od_de]</property>
        <property name="varName">[d_de]</property>
        <property name="font">
          <font name="Arial" width="0" height="-24" weight="700"/>
        </property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">1</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{40,64,108,27}</property>
        <property name="Name">[oSayd_de]</property>
        <property name="Caption">[Data Inicial :]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">2</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{482,64,137,32}</property>
        <property name="Name">[od_ate]</property>
        <property name="varName">[d_ate]</property>
        <property name="font">
          <font name="Arial" width="0" height="-24" weight="700"/>
        </property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">2</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[d_ate<=date().and.eVal(wbAaMm)]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{363,64,114,27}</property>
        <property name="Name">[oSayd_ate]</property>
        <property name="Caption">[Data Final:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">3</property>
      </style>
    </part>
    <part class="radiogroup">
      <style>
        <property name="Geometry">{42,104,579,208}</property>
        <property name="Name">[owOpcao]</property>
        <property name="varName">[wOpcao]</property>
        <property name="Caption">[]</property>
        <property name="TextColor">4194304</property>
        <property name="font">
          <font name="Arial" width="0" height="-16" weight="700"/>
        </property>
        <property name="TabIndex">1002</property>
      </style>
      <part class="radiobutton">
        <style>
          <property name="Geometry">{77,127,494,38}</property>
          <property name="Name">[owOpcao1]</property>
          <property name="Caption">[&amp;1. Seleciona todas as compras do cliente ]</property>
          <property name="font">
            <font name="Arial" width="0" height="-24" weight="700"/>
          </property>
          <property name="TextColor">4194304</property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">3</property>
        </style>
        <method name="onClick">
          <![CDATA[owOpcao1:oGroup:nValue := 1
wOpcao:=1 

oContainerProd:Hide()
oContainerPlaca:Hide()]]>
        </method>
      </part>
      <part class="radiobutton">
        <style>
          <property name="Geometry">{77,170,494,38}</property>
          <property name="Name">[owOpcao2]</property>
          <property name="Caption">[&amp;2. Seleciona alguns cupons do cliente    ]</property>
          <property name="font">
            <font name="Arial" width="0" height="-24" weight="700"/>
          </property>
          <property name="TextColor">4194304</property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">4</property>
        </style>
        <method name="onClick">
          <![CDATA[owOpcao1:oGroup:nValue := 2
wOpcao:=2 
oContainerProd:Hide()
oContainerPlaca:Hide()]]>
        </method>
      </part>
      <part class="radiobutton">
        <style>
          <property name="Geometry">{77,212,494,38}</property>
          <property name="Name">[owOpcao3]</property>
          <property name="Caption">[&amp;3. Seleciona compras de um produto       ]</property>
          <property name="font">
            <font name="Arial" width="0" height="-24" weight="700"/>
          </property>
          <property name="TextColor">4194304</property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">5</property>
        </style>
        <method name="onClick">
          <![CDATA[owOpcao1:oGroup:nValue := 3
wOpcao:=3 

oContainerProd:Show()
oContainerPlaca:Hide()
]]>
        </method>
      </part>
      <part class="radiobutton">
        <style>
          <property name="Geometry">{77,255,494,38}</property>
          <property name="Name">[owOpcao4]</property>
          <property name="Caption">[&amp;4. Seleciona compras por veiculo         ]</property>
          <property name="font">
            <font name="Arial" width="0" height="-24" weight="700"/>
          </property>
          <property name="TextColor">4194304</property>
          <property name="Transparent">.T.</property>
          <property name="TabIndex">6</property>
        </style>
        <method name="onClick">
          <![CDATA[owOpcao1:oGroup:nValue := 4
wOpcao:=4 

oContainerProd:Hide()
oContainerPlaca:Show()]]>
        </method>
      </part>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{40,19,577,30}</property>
        <property name="Name">[oLabel1]</property>
        <property name="Caption">[Emissao de NFE referente a cupons Emitidos]</property>
        <property name="font">
          <font name="Arial" width="0" height="-24" weight="400"/>
        </property>
        <property name="TabIndex">1012</property>
      </style>
    </part>
  </part>
  <part class="checkbox">
    <style>
      <property name="Geometry">{43,482,308,28}</property>
      <property name="Name">[olFgSelecionaNFCsIndependenteDoCliente]</property>
      <property name="varName">[lFgSelecionaNFCsIndependenteDoCliente]</property>
      <property name="Caption">[Seleciona Cupons sem Dados do Consumidor]</property>
      <property name="TabIndex">3</property>
    </style>
  </part>
  <part class="button">
    <style>
      <property name="Geometry">{511,485,70,28}</property>
      <property name="Name">[oOwnerbutton1]</property>
      <property name="Id">[IDOK]</property>
      <property name="Caption">[&amp;OK]</property>
      <property name="TabIndex">1000</property>
    </style>
  </part>
  <part class="button">
    <style>
      <property name="Geometry">{590,485,70,28}</property>
      <property name="Name">[oOwnerbutton2]</property>
      <property name="Id">[IDCANCEL]</property>
      <property name="Caption">[&amp;Cancela]</property>
      <property name="TabIndex">1001</property>
    </style>
  </part>
</part>
