<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{385,55,984,403}</property>
    <property name="Name">[se_pnfe]</property>
    <property name="Caption">[Situacao Tributaria do Servico]</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,aCbm_Var04,aCbm_Var08,aCbm_Var10,aCbm_Var12}    </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="common">
    <![CDATA[Function RefreshTudo
SetDlgItemText( getmodalhandle(), ovar08:id, Efd_CstPis(m_Nf_CstPIS) )
SetDlgItemText( getmodalhandle(), ovar09:id, Efd_CstPis(m_Nf_CstCOF) )
SetDlgItemText( getmodalhandle(), ovar10:id, Efd_CstPis(m_Nf_CstEPIS) )
SetDlgItemText( getmodalhandle(), ovar11:id, Efd_CstPis(m_Nf_CstECof) )
ENDFUNC]]>
  </method>
  <method name="onFormInit">
    <![CDATA[parameters o, p1
modus:=p1]]>
  </method>
  <method name="onDlgInit">
    <![CDATA[if(modus<>NIL,SetWindowText( oDlg:handle, modus ),)
SET(5,1960) 

CiSetKey( "K_F2","(ExecutaXML('se_prod_pteq.tel'),RefreshGetlist())",,,"F2:Composicao de Preco do Produto")
CiSetKey( "K_F3","ExecutaXML('se_prod_descontos.tel')",,,"F3:Define Descontos e Promocoes do Produto")
CiSetKey( "K_F4","DbSeek_Add_Se_Pnfe( m_pCod, .f., .t.)",,,"F4:Cadastra CSTs do Produto")
CiSetKey( "K_F5","(BrwComposicoes(, Pcod),RefreshGetlist())",,,"F5:Cadastra Composicao do Produto")

owTipoItem:SetText( Efd_TipoItem(m_pTipoItem, .f.) )

aCbm_var08 := Efd_CstPis(,'S')
ovar08:aitems := aCbm_var08
ovar08:Requery()
ovar09:aitems := aCbm_var08
ovar09:Requery()

aCbm_var10 := Efd_CstPis(,'E')
ovar10:aitems := aCbm_var10
ovar10:Requery()
ovar11:aitems := aCbm_var10
ovar11:Requery()

RefreshTudo()]]>
  </method>
  <part class="editbox">
    <style>
      <property name="Geometry">{15,10,87,27}</property>
      <property name="Name">[opcod]</property>
      <property name="varName">[m_pcod]</property>
      <property name="font">
        <font name="Arial" width="0" height="-19" weight="700"/>
      </property>
      <property name="nMaxLength">6</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">1</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{111,10,473,30}</property>
      <property name="Name">[oPdesc]</property>
      <property name="varName">[m_pDesc]</property>
      <property name="font">
        <font name="Arial" width="0" height="-24" weight="700"/>
      </property>
      <property name="cPicture">[@s50]</property>
      <property name="nMaxLength">50</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">1</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{111,43,473,24}</property>
      <property name="Name">[owTipoItem]</property>
      <property name="varName">[wTipoItem]</property>
      <property name="font">
        <font name="Arial" width="0" height="-21" weight="700"/>
      </property>
      <property name="cPicture">[@s50]</property>
      <property name="nMaxLength">50</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">1</property>
    </style>
    <method name="onGetFocus">
      <![CDATA[.f.]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{14,103,112,30}</property>
      <property name="Name">[opListaServ]</property>
      <property name="varName">[m_pListaServ]</property>
      <property name="font">
        <font name="Arial" width="0" height="-19" weight="700"/>
      </property>
      <property name="Justify">[Right]</property>
      <property name="cPicture">[99.99]</property>
      <property name="nMaxLength">5</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">5</property>
    </style>
    <method name="onLostFocus">
      <![CDATA[CHK_LASTKEY(5).OR.PSQ_BROW('CI_SERV','PCISERV','M_PLISTASERV','N','S',3,0,'DESCSERV','',,,opLISTASERV,osoSayPLISTASERV)]]>
    </method>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{864,76,87,27}</property>
      <property name="Name">[oNf_txpis]</property>
      <property name="varName">[m_Nf_txpis]</property>
      <property name="font">
        <font name="Arial" width="0" height="-19" weight="700"/>
      </property>
      <property name="cPicture">[999.99]</property>
      <property name="nMaxLength">6</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">12</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{38,80,73,23}</property>
      <property name="Name">[oL10]</property>
      <property name="Caption">[Servico:]</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">13</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{864,105,87,27}</property>
      <property name="Name">[onf_txcof]</property>
      <property name="varName">[m_nf_txcof]</property>
      <property name="font">
        <font name="Arial" width="0" height="-19" weight="700"/>
      </property>
      <property name="cPicture">[999.99]</property>
      <property name="nMaxLength">6</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">13</property>
    </style>
  </part>
  <part class="editbox">
    <style>
      <property name="Geometry">{867,134,87,27}</property>
      <property name="Name">[opISS]</property>
      <property name="varName">[m_pISS]</property>
      <property name="font">
        <font name="Arial" width="0" height="-19" weight="700"/>
      </property>
      <property name="cPicture">[999.99]</property>
      <property name="nMaxLength">6</property>
      <property name="3DLook">.T.</property>
      <property name="TabIndex">14</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{749,76,105,23}</property>
      <property name="Name">[oSayNf_txpis]</property>
      <property name="Caption">[Taxa PIS:]</property>
      <property name="Justify">[Right]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">18</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{782,134,72,23}</property>
      <property name="Name">[oLabel2]</property>
      <property name="Caption">[Taxa ISS:]</property>
      <property name="Justify">[Right]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">18</property>
    </style>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{738,105,116,23}</property>
      <property name="Name">[oSaynf_txcof]</property>
      <property name="Caption">[Taxa COFINS:]</property>
      <property name="Justify">[Right]</property>
      <property name="BackColor">16777215</property>
      <property name="font">
        <font name="Arial" width="0" height="-16" weight="400"/>
      </property>
      <property name="Transparent">.T.</property>
      <property name="TabIndex">21</property>
    </style>
  </part>
  <part class="ownerbutton">
    <style>
      <property name="Geometry">{60,134,16,16}</property>
      <property name="Name">[oboPlistaServ]</property>
      <property name="Caption">[oBoCb]</property>
      <property name="BtnBitmap">[smPreview]</property>
      <property name="lResource">.T.</property>
      <property name="TabIndex">25</property>
    </style>
    <method name="onClick">
      <![CDATA[PSQ_BROW('CI_SERV','PCISERV','M_Plistaserv','N','S',3,0,'DESCSERV','',,'EXIBA',oPLISTASERV,osoSayPLISTASERV)]]>
    </method>
  </part>
  <part class="button">
    <style>
      <property name="Geometry">{807,358,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">{895,359,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 class="group">
    <style>
      <property name="Geometry">{18,165,948,179}</property>
      <property name="Name">[oGroup2]</property>
      <property name="Caption">[CST ICMS / PIS / COFINS / IPI]</property>
      <property name="TextColor">16711680</property>
      <property name="font">
        <font name="Lucida Bright" width="0" height="-16" weight="600"/>
      </property>
      <property name="TabIndex">1008</property>
    </style>
    <part class="combobox">
      <style>
        <property name="Geometry">{262,204,684,18}</property>
        <property name="Name">[oVar08]</property>
        <property name="varName">[vCombo2]</property>
        <property name="ColumnWidth">161</property>
        <property name="Items">{}</property>
        <property name="DisplayCount">4</property>
        <property name="TextColor">16711680</property>
        <property name="lEdit">.T.</property>
        <property name="FormatText">[UPPERCASE]</property>
        <property name="TabIndex">11</property>
      </style>
      <method name="onInteractiveChange">
        <![CDATA[Parameters value,ovar08
XmlChecaComboBox(value,ovar08,aCbm_var08)]]>
      </method>
    </part>
    <part class="combobox">
      <style>
        <property name="Geometry">{262,232,684,18}</property>
        <property name="Name">[oVar09]</property>
        <property name="varName">[vCombo3]</property>
        <property name="ColumnWidth">161</property>
        <property name="Items">{}</property>
        <property name="DisplayCount">4</property>
        <property name="TextColor">16711680</property>
        <property name="lEdit">.T.</property>
        <property name="FormatText">[UPPERCASE]</property>
        <property name="TabIndex">11</property>
      </style>
      <method name="onInteractiveChange">
        <![CDATA[Parameters value,ovar09
XmlChecaComboBox(value,ovar09,aCbm_var08) ]]>
      </method>
    </part>
    <part class="combobox">
      <style>
        <property name="Geometry">{262,277,684,18}</property>
        <property name="Name">[oVar10]</property>
        <property name="varName">[vCombo4]</property>
        <property name="ColumnWidth">161</property>
        <property name="Items">{}</property>
        <property name="DisplayCount">4</property>
        <property name="TextColor">16711680</property>
        <property name="lEdit">.T.</property>
        <property name="FormatText">[UPPERCASE]</property>
        <property name="TabIndex">11</property>
      </style>
      <method name="onInteractiveChange">
        <![CDATA[Parameters value,ovar10
XmlChecaComboBox(value,ovar10,aCbm_var08) ]]>
      </method>
    </part>
    <part class="combobox">
      <style>
        <property name="Geometry">{262,305,684,18}</property>
        <property name="Name">[oVar11]</property>
        <property name="varName">[vCombo5]</property>
        <property name="ColumnWidth">161</property>
        <property name="Items">
{modus,aCbm_var04,aCbm_var08,aCbm_var16,aCbm_var17}        </property>
        <property name="DisplayCount">4</property>
        <property name="TextColor">16711680</property>
        <property name="lEdit">.T.</property>
        <property name="FormatText">[UPPERCASE]</property>
        <property name="TabIndex">11</property>
      </style>
      <method name="onInteractiveChange">
        <![CDATA[Parameters value,ovar11
XmlChecaComboBox(value,ovar11,aCbm_var08) ]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{60,272,137,23}</property>
        <property name="Name">[oSayNf_CstEPIS]</property>
        <property name="Caption">[CST PIS Entradas:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-16" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">16</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{44,199,139,23}</property>
        <property name="Name">[oSayNf_CstPIS]</property>
        <property name="Caption">[CST PIS na Venda:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-16" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">17</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{28,300,169,23}</property>
        <property name="Name">[oSayNf_CstECOF]</property>
        <property name="Caption">[CST COFINS Entradas:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-16" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">19</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{25,227,158,23}</property>
        <property name="Name">[oSayNf_CstCOF]</property>
        <property name="Caption">[CST COFINS Venda:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-16" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">20</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{188,195,39,27}</property>
        <property name="Name">[oNf_CstPIS]</property>
        <property name="varName">[m_Nf_CstPIS]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">2</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">21</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{188,223,39,27}</property>
        <property name="Name">[oNf_CstCOF]</property>
        <property name="varName">[m_Nf_CstCOF]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">2</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">22</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{207,268,34,27}</property>
        <property name="Name">[oNf_CstEPIS]</property>
        <property name="varName">[m_Nf_CstEPIS]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">2</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">24</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{207,296,34,27}</property>
        <property name="Name">[oNf_CstECOF]</property>
        <property name="varName">[m_Nf_CstECOF]</property>
        <property name="font">
          <font name="Arial" width="0" height="-19" weight="700"/>
        </property>
        <property name="nMaxLength">2</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">25</property>
      </style>
    </part>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{132,78,540,69}</property>
      <property name="Name">[osoSAYpListaServ]</property>
      <property name="Caption">[...]</property>
      <property name="TabIndex">1009</property>
    </style>
  </part>
</part>
