]> git.llucax.com Git - mecon/meconlib.git/commitdiff
Subi Agente.php con la modificacion para que se puedan obtener todos los datos person...
authorMatías Sklar <msklar@mecon.gov.ar>
Tue, 8 Jul 2003 14:56:29 +0000 (14:56 +0000)
committerMatías Sklar <msklar@mecon.gov.ar>
Tue, 8 Jul 2003 14:56:29 +0000 (14:56 +0000)
doc/meconlib.xmi
lib/MECON/Agente.php
test/prueba_agente.php

index 0d7b080a1dc4783070ce4f1e1f296e6edb2b8bfa..feb61f2ddaf8b1bd2ee5d8b8af31f4188bea7bc8 100644 (file)
@@ -10,7 +10,7 @@
  </XMI.header>
  <XMI.content>
   <docsettings viewid="1" documentation="x2e:extern
  </XMI.header>
  <XMI.content>
   <docsettings viewid="1" documentation="x2e:extern
-" uniqueid="150" />
+" uniqueid="151" />
   <umlobjects>
    <UML:Actor stereotype="" package="" xmi.id="3" abstract="0" documentation="Beatriz o alguien tan poderoso" name="Beti" static="0" scope="200" />
    <UML:UseCase stereotype="" package="" xmi.id="4" abstract="0" documentation="" name="Cambiar Credencial" static="0" scope="200" />
   <umlobjects>
    <UML:Actor stereotype="" package="" xmi.id="3" abstract="0" documentation="Beatriz o alguien tan poderoso" name="Beti" static="0" scope="200" />
    <UML:UseCase stereotype="" package="" xmi.id="4" abstract="0" documentation="" name="Cambiar Credencial" static="0" scope="200" />
@@ -36,6 +36,7 @@
     <UML:Operation stereotype="" package="" xmi.id="140" type="void" abstract="0" documentation="" name="getHoraHasta" static="0" scope="200" />
     <UML:Operation stereotype="" package="" xmi.id="138" type="void" abstract="0" documentation="" name="getNombre" static="0" scope="200" />
     <UML:Operation stereotype="" package="" xmi.id="149" type="void" abstract="0" documentation="" name="getCuil" static="0" scope="200" />
     <UML:Operation stereotype="" package="" xmi.id="140" type="void" abstract="0" documentation="" name="getHoraHasta" static="0" scope="200" />
     <UML:Operation stereotype="" package="" xmi.id="138" type="void" abstract="0" documentation="" name="getNombre" static="0" scope="200" />
     <UML:Operation stereotype="" package="" xmi.id="149" type="void" abstract="0" documentation="" name="getCuil" static="0" scope="200" />
+    <UML:Operation stereotype="" package="" xmi.id="151" type="void" abstract="0" documentation="" name="getOtrosDatos" static="0" scope="200" />
     <UML:Attribute stereotype="" package="" xmi.id="132" value="" type="int" abstract="0" documentation="" name="agente" static="0" scope="200" />
     <UML:Attribute stereotype="" package="" xmi.id="137" value="" type="int" abstract="0" documentation="" name="datos" static="0" scope="200" />
    </UML:Class>
     <UML:Attribute stereotype="" package="" xmi.id="132" value="" type="int" abstract="0" documentation="" name="agente" static="0" scope="200" />
     <UML:Attribute stereotype="" package="" xmi.id="137" value="" type="int" abstract="0" documentation="" name="datos" static="0" scope="200" />
    </UML:Class>
@@ -52,7 +53,7 @@
   <diagrams>
    <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" snapy="10" showatts="1" xmi.id="1" documentation="" type="402" showops="1" showpackage="0" name="class diagram" localid="30000" showstereotype="0" showscope="1" font="Helvetica,8,-1,5,50,0,0,0,0,0" linecolor="#ff0000" >
     <widgets>
   <diagrams>
    <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" snapy="10" showatts="1" xmi.id="1" documentation="" type="402" showops="1" showpackage="0" name="class diagram" localid="30000" showstereotype="0" showscope="1" font="Helvetica,8,-1,5,50,0,0,0,0,0" linecolor="#ff0000" >
     <widgets>
-     <UML:ConceptWidget usesdiagramfillcolour="0" width="155" showattsigs="601" usesdiagramusefillcolour="0" x="279" linecolour="#ff0000" y="137" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="140" usefillcolor="1" showattributes="1" xmi.id="131" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+     <UML:ConceptWidget usesdiagramfillcolour="0" width="155" showattsigs="601" usesdiagramusefillcolour="0" x="279" linecolour="#ff0000" y="137" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="154" usefillcolor="1" showattributes="1" xmi.id="131" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
      <UML:ConceptWidget usesdiagramfillcolour="0" width="190" showattsigs="601" usesdiagramusefillcolour="0" x="27" linecolour="#ff0000" y="137" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="70" usefillcolor="1" showattributes="1" xmi.id="145" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
      <UML:ConceptWidget usesdiagramfillcolour="1" width="46" showattsigs="601" usesdiagramusefillcolour="1" x="284" linecolour="none" y="40" showopsigs="601" usesdiagramlinecolour="1" fillcolour="none" height="28" usefillcolor="1" showattributes="1" xmi.id="125" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
      <UML:ConceptWidget usesdiagramfillcolour="1" width="46" showattsigs="601" usesdiagramusefillcolour="1" x="149" linecolour="none" y="45" showopsigs="601" usesdiagramlinecolour="1" fillcolour="none" height="28" usefillcolor="1" showattributes="1" xmi.id="39" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
      <UML:ConceptWidget usesdiagramfillcolour="0" width="190" showattsigs="601" usesdiagramusefillcolour="0" x="27" linecolour="#ff0000" y="137" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="70" usefillcolor="1" showattributes="1" xmi.id="145" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
      <UML:ConceptWidget usesdiagramfillcolour="1" width="46" showattsigs="601" usesdiagramusefillcolour="1" x="284" linecolour="none" y="40" showopsigs="601" usesdiagramlinecolour="1" fillcolour="none" height="28" usefillcolor="1" showattributes="1" xmi.id="125" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
      <UML:ConceptWidget usesdiagramfillcolour="1" width="46" showattsigs="601" usesdiagramusefillcolour="1" x="149" linecolour="none" y="45" showopsigs="601" usesdiagramlinecolour="1" fillcolour="none" height="28" usefillcolor="1" showattributes="1" xmi.id="39" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
@@ -200,31 +201,32 @@ El proceso puede ser muy largo." font="Helvetica,11,-1,5,50,0,0,0,0,0" />
       <listitem open="0" type="815" id="139" label="getHoraDesde" />
       <listitem open="0" type="815" id="140" label="getHoraHasta" />
       <listitem open="0" type="815" id="138" label="getNombre" />
       <listitem open="0" type="815" id="139" label="getHoraDesde" />
       <listitem open="0" type="815" id="140" label="getHoraHasta" />
       <listitem open="0" type="815" id="138" label="getNombre" />
+      <listitem open="0" type="815" id="151" label="getOtrosDatos" />
       <listitem open="0" type="815" id="134" label="getTipo" />
      </listitem>
      <listitem open="1" type="813" id="125" label="DB" />
       <listitem open="0" type="815" id="134" label="getTipo" />
      </listitem>
      <listitem open="1" type="813" id="125" label="DB" />
-     <listitem open="1" type="813" id="39" label="Hora" />
-     <listitem open="0" type="807" id="1" label="class diagram" />
      <listitem open="0" type="813" id="145" label="Dependencia" >
       <listitem open="0" type="814" id="146" label="codep" />
       <listitem open="0" type="815" id="147" label="dependencia" />
       <listitem open="0" type="815" id="148" label="getAgentes" />
       <listitem open="0" type="815" id="150" label="getDependencias" />
      </listitem>
      <listitem open="0" type="813" id="145" label="Dependencia" >
       <listitem open="0" type="814" id="146" label="codep" />
       <listitem open="0" type="815" id="147" label="dependencia" />
       <listitem open="0" type="815" id="148" label="getAgentes" />
       <listitem open="0" type="815" id="150" label="getDependencias" />
      </listitem>
+     <listitem open="1" type="813" id="39" label="Hora" />
+     <listitem open="0" type="807" id="1" label="class diagram" />
     </listitem>
     <listitem open="1" type="802" id="-1" label="Use Case View" >
      <listitem open="1" type="811" id="76" label="Agente" />
      <listitem open="1" type="805" id="2" label="Bandas2" />
      <listitem open="1" type="811" id="3" label="Beti" />
     </listitem>
     <listitem open="1" type="802" id="-1" label="Use Case View" >
      <listitem open="1" type="811" id="76" label="Agente" />
      <listitem open="1" type="805" id="2" label="Bandas2" />
      <listitem open="1" type="811" id="3" label="Beti" />
-     <listitem open="1" type="812" id="4" label="Cambiar Credencial" />
      <listitem open="1" type="805" id="115" label="Cambiar Credencial" />
      <listitem open="1" type="805" id="115" label="Cambiar Credencial" />
+     <listitem open="1" type="812" id="4" label="Cambiar Credencial" />
      <listitem open="1" type="811" id="74" label="Control de Accesos" />
      <listitem open="1" type="812" id="77" label="Imprimir Banda" />
      <listitem open="1" type="805" id="119" label="Mostrar Banda" />
      <listitem open="1" type="812" id="75" label="Mostrar Banda" />
      <listitem open="1" type="812" id="79" label="Mostrar Semaforo" />
      <listitem open="1" type="811" id="74" label="Control de Accesos" />
      <listitem open="1" type="812" id="77" label="Imprimir Banda" />
      <listitem open="1" type="805" id="119" label="Mostrar Banda" />
      <listitem open="1" type="812" id="75" label="Mostrar Banda" />
      <listitem open="1" type="812" id="79" label="Mostrar Semaforo" />
-     <listitem open="1" type="805" id="117" label="Procesar Periodo" />
      <listitem open="1" type="812" id="6" label="Procesar Periodo" />
      <listitem open="1" type="812" id="6" label="Procesar Periodo" />
+     <listitem open="1" type="805" id="117" label="Procesar Periodo" />
      <listitem open="1" type="811" id="78" label="RRHH" />
     </listitem>
    </listitem>
      <listitem open="1" type="811" id="78" label="RRHH" />
     </listitem>
    </listitem>
index 7c2a2452959d6d6f4e46f31e8937d7ae0a328b9a..f28bc703b32f969099c5d9ff283f1907fe2b7d5b 100644 (file)
@@ -164,11 +164,46 @@ class Agente {
      * @return void
      * @access public
      */
      * @return void
      * @access public
      */
-    function getCuil() // ~X2C
+    function getCuil()// ~X2C
     {
         trigger_error('Not implemented!', E_USER_WARNING);
     }
     // -X2C
 
     {
         trigger_error('Not implemented!', E_USER_WARNING);
     }
     // -X2C
 
+    // +X2C Operation 151
+    /**
+     * @return void
+     * @access public
+     */
+    function getOtrosDatos()// ~X2C
+    {
+        if(!is_null($this->datos['tipo_agente'])) {
+            $aux['fecha_nac'] = $this->datos['fecha_nac']; 
+            $aux['edad'] = $this->datos['edad']; 
+            $aux['estado_civil'] = $this->datos['estado_civil']; 
+            $aux['domicilio'] = $this->datos['domicilio']; 
+            $aux['puerta'] = $this->datos['puerta']; 
+            $aux['piso'] = $this->datos['piso']; 
+            $aux['depto'] = $this->datos['depto']; 
+            $aux['localidad'] = $this->datos['localidad']; 
+            $aux['provincia'] = $this->datos['provincia']; 
+            $aux['calle1'] = $this->datos['calle1']; 
+            $aux['calle2'] = $this->datos['calle2']; 
+            $aux['cp'] = $this->datos['cp']; 
+            $aux['telefono'] = $this->datos['telefono']; 
+            $aux['cargo'] = $this->datos['cargo']; 
+            $aux['nivel'] = $this->datos['nivel']; 
+            $aux['grado'] = $this->datos['grado']; 
+            $aux['func_ejec'] = $this->datos['func_ejec']; 
+            $aux['obra_social'] = $this->datos['obra_social']; 
+            $aux['afiliado'] = $this->datos['afiliado']; 
+            $aux['conyuge'] = $this->datos['conyuge']; 
+            $aux['fecha_nac_conyuge'] = $this->datos['fecha_nac_cony']; 
+            $aux['tipo_doc_conyuge'] = $this->datos['tipodoc_cony']; 
+            $aux['nro_doc_cony'] = $this->datos['nrodoc_cony']; 
+        }
+        return $aux;
+    }
+
 } // -X2C Class :Agente
 } // -X2C Class :Agente
-?>
\ No newline at end of file
+?>
index 8b50aed3a49c3cbdbf2c244f97c399f4ebfb535d..5a2a00406ce5262beeab2056e560295d1c195722 100755 (executable)
@@ -4,11 +4,13 @@ require_once 'MECON/Agente.php';
 
 #$agente = new Agente('28168081');
 $agente = new Agente('23878952');
 
 #$agente = new Agente('28168081');
 $agente = new Agente('23878952');
+#$agente = new Agente('25669308');
 var_dump($agente->getNombre());
 var_dump($agente->getDependencia());
 var_dump($agente->getTipo());
 var_dump($agente->getHoraDesde());
 var_dump($agente->getHoraHasta());
 var_dump($agente->getNombre());
 var_dump($agente->getDependencia());
 var_dump($agente->getTipo());
 var_dump($agente->getHoraDesde());
 var_dump($agente->getHoraHasta());
+var_dump($agente->getOtrosDatos());
 
 ?>
 
 
 ?>