<?xml version="1.0" encoding="UTF-8"?>
<part class="form">
  <style>
    <property name="Geometry">{132,78,1020,551}</property>
    <property name="Name">[se_kits_additem.tel]</property>
    <property name="Caption">[Adicionando Insumo a ADIPAN KG]</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}</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 ),)
//skel variavel zFgProdClosed = (select("se_prod")=0)
//skel variavel znil = if(zFgProdClosed, (Abra_arq(Se_Prod,,"0",r_siga,"SE_PROD"), OrdSetFocus(1)) , "")
//skel variavel znil = if(zFgProdClosed, DbSelectArea("se_kits"), "")
//skel variavel m_pcod = _kits->pcod
//skel variavel m_pdesc = _kits->pdesc
//skel variavel m_PcLoteProd = _kits->PcLoteProd

//skel comando saida znil = if(zFgProdClosed, se_prod->(DbCloseArea()) , "")
SET(5,1960) ]]>
  </method>
  <part class="line">
    <style>
      <property name="Geometry">{6,475,1011,2}</property>
      <property name="Name">[oLine1]</property>
    </style>
  </part>
  <part class="group">
    <style>
      <property name="Geometry">{7,91,1009,375}</property>
      <property name="Name">[oGroup1]</property>
      <property name="TabIndex">1</property>
    </style>
    <part class="editbox">
      <style>
        <property name="Geometry">{16,168,128,45}</property>
        <property name="Name">[oPCOD]</property>
        <property name="varName">[m_PCOD]</property>
        <property name="font">
          <font name="Arial" width="0" height="-35" weight="700"/>
        </property>
        <property name="Justify">[Right]</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="label">
      <style>
        <property name="Geometry">{16,140,90,27}</property>
        <property name="Name">[oSayPCOD]</property>
        <property name="Caption">[Codigo:]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-21" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">2</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{152,168,854,45}</property>
        <property name="Name">[oPDESC]</property>
        <property name="varName">[m_PDESC]</property>
        <property name="font">
          <font name="Arial" width="0" height="-35" weight="700"/>
        </property>
        <property name="Justify">[Center]</property>
        <property name="nMaxLength">30</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">2</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[.f.]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{152,140,341,27}</property>
        <property name="Name">[oSayPDESC]</property>
        <property name="Caption">[Descricao do Kit/Composicao:]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-21" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">3</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{282,248,128,45}</property>
        <property name="Name">[oPCODINSUMO]</property>
        <property name="varName">[m_PCODINSUMO]</property>
        <property name="font">
          <font name="Arial" width="0" height="-35" weight="700"/>
        </property>
        <property name="Justify">[Right]</property>
        <property name="nMaxLength">6</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">3</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[PSQ_BROW('SE_PROD','PSEPROD_GERAL','M_PCODINSUMO','N','S',8,6,'','','',,oPCODINSUMO,).AND.(M_PDESCINSUM:=SE_PROD->PDESC,REFRESHGETLIST())]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{65,270,216,23}</property>
        <property name="Name">[oSayPCODINSUMO]</property>
        <property name="Caption">[Codigo do Insumo:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-21" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">4</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{282,302,723,45}</property>
        <property name="Name">[oPDESCINSUM]</property>
        <property name="varName">[m_PDESCINSUM]</property>
        <property name="font">
          <font name="Arial" width="0" height="-35" weight="700"/>
        </property>
        <property name="nMaxLength">30</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">4</property>
      </style>
      <method name="onGetFocus">
        <![CDATA[.f.]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{40,324,239,23}</property>
        <property name="Name">[oSayPDESCINSUM]</property>
        <property name="Caption">[Descricao do Insumo:]</property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-21" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">5</property>
      </style>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{282,388,213,45}</property>
        <property name="Name">[oPcLoteProd]</property>
        <property name="varName">[m_PcLoteProd]</property>
        <property name="font">
          <font name="Arial" width="0" height="-35" weight="700"/>
        </property>
        <property name="cPicture">[@e 99,999.999]</property>
        <property name="nMaxLength">10</property>
        <property name="ToolTip">
[Informe lote minimo de producao, isto e, a quantidade minima de unidades da Composicao/Kit que pode ser feito com uso desse insumo que permita a maxima reducao do desperdicio]        </property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">5</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[m_PcLoteProd>0.OR.(ALERT("O Lote minimo de producao deve ser informado!"),.f.)]]>
      </method>
      <method name="onGetFocus">
        <![CDATA[.f.]]>
      </method>
    </part>
    <part class="editbox">
      <style>
        <property name="Geometry">{792,388,213,45}</property>
        <property name="Name">[oMQUANT]</property>
        <property name="varName">[m_MQUANT]</property>
        <property name="font">
          <font name="Arial" width="0" height="-35" weight="700"/>
        </property>
        <property name="cPicture">[@e 99,999.999]</property>
        <property name="nMaxLength">10</property>
        <property name="3DLook">.T.</property>
        <property name="TabIndex">6</property>
      </style>
      <method name="onLostFocus">
        <![CDATA[m_MQUANT>0.or.(Alert("A Quantidade do Insumo deve ser informada!"),.f.)]]>
      </method>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{15,380,265,53}</property>
        <property name="Name">[oSayMQUANT]</property>
        <property name="Caption">
[Lote Minimo a ser produzido usando esse insumo]        </property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-21" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">6</property>
      </style>
    </part>
    <part class="label">
      <style>
        <property name="Geometry">{539,380,251,53}</property>
        <property name="Name">[oLabel2]</property>
        <property name="Caption">
[Quantidade Consumida no Lote Minimo de Producao]        </property>
        <property name="Justify">[Right]</property>
        <property name="BackColor">16777215</property>
        <property name="font">
          <font name="Arial" width="0" height="-21" weight="400"/>
        </property>
        <property name="Transparent">.T.</property>
        <property name="TabIndex">6</property>
      </style>
    </part>
    <part class="ownerbutton">
      <style>
        <property name="Geometry">{414,275,16,16}</property>
        <property name="Name">[oboPCODINSUMO]</property>
        <property name="BtnBitmap">[smPreview]</property>
        <property name="lResource">.T.</property>
        <property name="TabIndex">7</property>
      </style>
      <method name="onClick">
        <![CDATA[PSQ_BROW('SE_PROD','PSEPROD_GERAL','M_PCODINSUMO','N','S',8,6,'','','','EXIBA',oPCODINSUMO,)]]>
      </method>
    </part>
  </part>
  <part class="label">
    <style>
      <property name="Geometry">{39,24,771,47}</property>
      <property name="Name">[oLabel1]</property>
      <property name="Caption">[(&quot;Composicao de &quot;+lTrim(_kits-&gt;pDesc))]</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 class="button">
    <style>
      <property name="Geometry">{831,500,89,28}</property>
      <property name="Name">[oOwnerbutton1]</property>
      <property name="Id">[IDOK]</property>
      <property name="Caption">[&amp;OK]</property>
      <property name="font">
        <font name="Arial" width="0" height="-13" weight="700"/>
      </property>
      <property name="TabIndex">1000</property>
    </style>
  </part>
  <part class="button">
    <style>
      <property name="Geometry">{925,500,89,28}</property>
      <property name="Name">[oOwnerbutton2]</property>
      <property name="Id">[IDCANCEL]</property>
      <property name="Caption">[&amp;Cancela]</property>
      <property name="font">
        <font name="Arial" width="0" height="-13" weight="400"/>
      </property>
      <property name="TabIndex">1001</property>
    </style>
  </part>
</part>
