<XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
</XMI.header>
<XMI.content>
- <docsettings viewid="181" documentation="" uniqueid="219" />
+ <docsettings viewid="181" documentation="" uniqueid="227" />
<umlobjects>
<UML:Class stereotype="" package="" xmi.id="182" abstract="0" documentation="x2c:extern
x2c:include:MECON/Agente.php" name="MECON_Agente" static="0" scope="200" >
<UML:Attribute stereotype="" package="" xmi.id="184" value="" type="int" abstract="0" documentation="Número de documento del agente" name="agente" static="0" scope="200" />
<UML:Attribute stereotype="" package="" xmi.id="185" value="" type="int" abstract="0" documentation="Array que contiene todos los otros datos del agente" name="datos" static="0" scope="201" />
</UML:Class>
- <UML:Class stereotype="" package="" xmi.id="183" abstract="0" documentation="" name="Intranet_Servicios_Bandas_Agente" static="0" scope="200" >
- <UML:Operation stereotype="" package="" xmi.id="213" type="void" abstract="0" documentation="Constructor de la clase" name="Intranet_Servicios_Bandas_Agente" static="0" scope="200" >
+ <UML:Class stereotype="" package="" xmi.id="183" abstract="0" documentation="" name="Servicios_Bandas_Agente" static="0" scope="200" >
+ <UML:Operation stereotype="" package="" xmi.id="213" type="void" abstract="0" documentation="Constructor de la clase" name="Servicios_Bandas_Agente" static="0" scope="200" >
<UML:Parameter stereotype="" package="" xmi.id="1" value="null" type="int" abstract="0" documentation="Número de documento del agente a instanciar" name="agente" static="0" scope="201" />
<UML:Parameter stereotype="" package="" xmi.id="2" value="null" type="date" abstract="0" documentation="Fecha utilizada para determinar el mes a mostrar" name="fecha" static="0" scope="201" />
</UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="194" type="void" abstract="0" documentation="" name="getCredencial" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="2" value="null" type="date" abstract="0" documentation="" name="fecha" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="197" type="void" abstract="0" documentation="" name="getPromedioMensual" static="0" scope="200" />
- <UML:Operation stereotype="" package="" xmi.id="198" type="void" abstract="0" documentation="" name="getHoras" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="1" value="null" type="date" abstract="0" documentation="La fecha que se desea consultar" name="dia" static="0" scope="200" />
- </UML:Operation>
- <UML:Operation stereotype="" package="" xmi.id="205" type="void" abstract="0" documentation="Método que devuelve todos los accesos de una persona en un rango de fechas" name="getAccesos" static="0" scope="200" >
- <UML:Parameter stereotype="" package="" xmi.id="2" value="" type="date" abstract="0" documentation="" name="fecha_desde" static="0" scope="200" />
- <UML:Parameter stereotype="" package="" xmi.id="3" value="" type="date" abstract="0" documentation="" name="fecha_hasta" static="0" scope="200" />
- </UML:Operation>
+ <UML:Operation stereotype="" package="" xmi.id="197" type="void" abstract="0" documentation="Devuelve el promedio de horas del agente en el mes pedido" name="getPromedioMensual" static="0" scope="200" />
+ <UML:Operation stereotype="" package="" xmi.id="198" type="void" abstract="0" documentation="Devuelve un array con las horas de cada día" name="getHoras" static="0" scope="200" />
+ <UML:Operation stereotype="" package="" xmi.id="205" type="void" abstract="0" documentation="Método que devuelve todos los accesos de una persona en un rango de fechas" name="getAccesos" static="0" scope="200" />
<UML:Operation stereotype="" package="" xmi.id="207" type="void" abstract="0" documentation="Devuelve la cantidad de días laborales trabajados por el agente en el mes considerado" name="getDiasLaborablesTrabajados" static="0" scope="200" />
<UML:Operation stereotype="" package="" xmi.id="208" type="void" abstract="0" documentation="Devuelve la cantidad de días trabajados por el agente en el mes considerado" name="getDiasTrabajados" static="0" scope="200" />
<UML:Operation stereotype="" package="" xmi.id="212" type="int" abstract="0" documentation="Devuelve la cantidad de ausentes sin aviso del agente en el mes considerado" name="getNASA" static="0" scope="200" />
<UML:Attribute stereotype="" package="" xmi.id="214" value="null" type="int" abstract="0" documentation="Todos los accesos del agente en el mes pedido" name="accesos" static="0" scope="201" />
- <UML:Attribute stereotype="" package="" xmi.id="215" value="" type="int" abstract="0" documentation="" name="credencial" static="0" scope="201" />
+ <UML:Attribute stereotype="" package="" xmi.id="221" value="" type="int" abstract="0" documentation="Número de ausentes sin aviso en el mes pedido" name="NASA" static="0" scope="201" />
+ <UML:Attribute stereotype="" package="" xmi.id="222" value="" type="int" abstract="0" documentation="Promedio horario del agente en el mes pedido" name="promedio" static="0" scope="201" />
+ <UML:Attribute stereotype="" package="" xmi.id="223" value="" type="int" abstract="0" documentation="Array con las horas por día trabajadas por el agente" name="horas" static="0" scope="201" />
+ <UML:Attribute stereotype="" package="" xmi.id="226" value="0" type="int" abstract="0" documentation="Cantidad de días trabajados por el agente en el mes pedido" name="diasTrabajados" static="0" scope="201" />
+ <UML:Attribute stereotype="" package="" xmi.id="227" value="0" type="int" abstract="0" documentation="Cantidad de días laborables trabajados por el agente en el mes pedido" name="diasLaborablesTrabajados" static="0" scope="201" />
</UML:Class>
<UML:Class stereotype="" package="" xmi.id="199" abstract="0" documentation="x2c:extern
x2c:include:MECON/Dependencia.php" name="MECON_Dependencia" static="0" scope="200" >
<UML:Attribute stereotype="" package="" xmi.id="218" value="null" type="int" abstract="0" documentation="El código de la dependencia" name="codep" static="0" scope="201" />
<UML:Attribute stereotype="" package="" xmi.id="219" value="null" type="int" abstract="0" documentation="" name="nombre" static="0" scope="201" />
</UML:Class>
- <UML:Class stereotype="" package="" xmi.id="200" abstract="0" documentation="Clase que representa una dependencia con bandas horarias" name="Intranet_Servicios_Bandas_Dependencia" static="0" scope="200" >
+ <UML:Class stereotype="" package="" xmi.id="200" abstract="0" documentation="Clase que representa una dependencia con bandas horarias" name="Servicios_Bandas_Dependencia" static="0" scope="200" >
<UML:Operation stereotype="" package="" xmi.id="202" type="void" abstract="0" documentation="Devuelve todos los agentes de la dependencia" name="getAgentes" static="0" scope="200" >
<UML:Parameter stereotype="" package="" xmi.id="1" value="" type="int" abstract="0" documentation="" name="codep" static="0" scope="200" />
<UML:Parameter stereotype="" package="" xmi.id="3" value="" type="Tipo_Agente" abstract="0" documentation="" name="Tipo_agente" static="0" scope="200" />
<UML:Operation stereotype="" package="" xmi.id="209" type="void" abstract="0" documentation="Devuelve la cantidad de ausentes sin aviso de la dependencia en un mes." name="getNASA" static="0" scope="200" >
<UML:Parameter stereotype="" package="" xmi.id="1" value="todos" type="Tipo_Agente" abstract="0" documentation="" name="Tipo_agente" static="0" scope="200" />
</UML:Operation>
+ <UML:Operation stereotype="" package="" xmi.id="220" type="void" abstract="0" documentation="" name="Servicios_Bandas_Dependencia" static="0" scope="200" >
+ <UML:Parameter stereotype="" package="" xmi.id="1" value="null" type="date" abstract="0" documentation="La fecha para determinar el mes a mostrar" name="fecha" static="0" scope="201" />
+ </UML:Operation>
</UML:Class>
<UML:Class stereotype="" package="" xmi.id="206" abstract="0" documentation="x2c:extern
x2c:include:MECON/NovedadesDia.php" name="MECON_NovedadesDia" static="0" scope="200" />
<UML:Association nameb="" stereotype="" visibilitya="200" visibilityb="200" assoctype="500" rolea="183" roleb="182" multia="" doca="" multib="" docb="" package="" xmi.id="-1" abstract="0" documentation="" name="" static="0" scope="200" changeabilitya="900" changeabilityb="900" namea="" />
</umlobjects>
<diagrams>
+<<<<<<< .mine
+ <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" zoom="100" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" canvaswidth="504" snapy="10" showatts="1" xmi.id="181" documentation="" type="402" showops="1" showpackage="0" name="class diagram" localid="30000" showstereotype="0" showscope="1" snapcsgrid="0" font="helvetica,-1,12,0,50,0,0,0,0,0" linecolor="#ff0000" canvasheight="453" >
+=======
<diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" zoom="100" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" canvaswidth="812" snapy="10" showatts="1" xmi.id="181" documentation="" type="402" showops="1" showpackage="0" name="class diagram" localid="30000" showstereotype="0" showscope="1" snapcsgrid="0" font="helvetica,-1,12,0,50,0,0,0,0,0" linecolor="#ff0000" canvasheight="626" >
+>>>>>>> .r63
<widgets>
+<<<<<<< .mine
+ <UML:ClassWidget usesdiagramfillcolour="0" width="141" showattsigs="601" usesdiagramusefillcolour="0" x="52" linecolour="#ff0000" y="34" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="126" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="182" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
+ <UML:ClassWidget usesdiagramfillcolour="0" width="205" showattsigs="601" usesdiagramusefillcolour="0" x="295" linecolour="#ff0000" y="18" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="70" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="199" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
+ <UML:ClassWidget usesdiagramfillcolour="0" width="287" showattsigs="601" usesdiagramusefillcolour="0" x="209" linecolour="#ff0000" y="122" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="77" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="200" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
+ <UML:ClassWidget usesdiagramfillcolour="0" width="341" showattsigs="601" usesdiagramusefillcolour="0" x="12" linecolour="#ff0000" y="211" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="196" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="183" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
+ <UML:ClassWidget usesdiagramfillcolour="1" width="82" showattsigs="601" usesdiagramusefillcolour="1" x="203" linecolour="none" y="52" showopsigs="601" instancename="" usesdiagramlinecolour="1" fillcolour="none" height="28" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="206" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
+=======
<UML:ClassWidget usesdiagramfillcolour="0" width="187" showattsigs="601" usesdiagramusefillcolour="0" x="44" linecolour="#ff0000" y="64" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="126" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="182" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
<UML:ClassWidget usesdiagramfillcolour="0" width="205" showattsigs="601" usesdiagramusefillcolour="0" x="400" linecolour="#ff0000" y="34" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="70" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="199" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
<UML:ClassWidget usesdiagramfillcolour="0" width="287" showattsigs="601" usesdiagramusefillcolour="0" x="359" linecolour="#ff0000" y="174" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="63" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="200" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
<UML:ClassWidget usesdiagramfillcolour="0" width="384" showattsigs="601" usesdiagramusefillcolour="0" x="60" linecolour="#ff0000" y="274" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="154" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="183" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
<UML:ClassWidget usesdiagramfillcolour="1" width="128" showattsigs="601" usesdiagramusefillcolour="1" x="231" linecolour="none" y="19" showopsigs="601" instancename="" usesdiagramlinecolour="1" fillcolour="none" height="28" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="206" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
+>>>>>>> .r63
</widgets>
<messages/>
<associations>
<UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="2" indexb="1" widgetbid="199" roleBdoc="" widgetaid="200" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
+<<<<<<< .mine
+ <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="2" linecolour="none" y="12" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+ <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="-32" linecolour="none" y="2" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+ <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="4" linecolour="none" y="25" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+=======
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="55" linecolour="none" y="20" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="106" linecolour="none" y="54" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="109" linecolour="none" y="41" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+>>>>>>> .r63
<linepath>
+<<<<<<< .mine
+ <startpoint startx="352" starty="122" />
+ <endpoint endx="397" endy="88" />
+=======
<startpoint startx="502" starty="174" />
<endpoint endx="502" endy="104" />
+>>>>>>> .r63
</linepath>
</UML:AssocWidget>
<UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="2" indexb="1" widgetbid="182" roleBdoc="" widgetaid="183" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
+<<<<<<< .mine
+ <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="-15" linecolour="none" y="11" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+ <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="35" linecolour="none" y="5" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+ <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="40" linecolour="none" y="86" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+=======
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="-8" linecolour="none" y="26" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="105" linecolour="none" y="68" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="55" linecolour="none" y="116" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+>>>>>>> .r63
<linepath>
+<<<<<<< .mine
+ <startpoint startx="182" starty="211" />
+ <endpoint endx="122" endy="160" />
+=======
<startpoint startx="252" starty="274" />
<endpoint endx="137" endy="190" />
+>>>>>>> .r63
</linepath>
</UML:AssocWidget>
</associations>
<listitem open="1" type="800" id="-1" label="Views" >
<listitem open="1" type="801" id="-1" label="Logical View" >
<listitem open="0" type="807" id="181" label="class diagram" />
+<<<<<<< .mine
+ <listitem open="1" type="813" id="182" label="Agente" >
+ <listitem open="0" type="814" id="184" label="agente" />
+ <listitem open="0" type="814" id="185" label="datos" />
+ <listitem open="0" type="815" id="189" label="Agente" />
+ <listitem open="0" type="815" id="186" label="getDependencia" />
+ <listitem open="0" type="815" id="192" label="getHoraDesde" />
+ <listitem open="0" type="815" id="193" label="getHoraHasta" />
+ <listitem open="0" type="815" id="190" label="getNombre" />
+ <listitem open="0" type="815" id="188" label="getTipo" />
+ </listitem>
+ <listitem open="1" type="813" id="199" label="Dependencia" >
+ <listitem open="0" type="814" id="218" label="codep" />
+ <listitem open="0" type="814" id="219" label="nombre" />
+ <listitem open="0" type="815" id="216" label="Dependencia" />
+ <listitem open="0" type="815" id="217" label="getNombre" />
+ </listitem>
+ <listitem open="1" type="813" id="206" label="NovedadesDia" />
+ <listitem open="1" type="813" id="183" label="Servicios_Bandas_Agente" >
+ <listitem open="0" type="814" id="221" label="NASA" />
+=======
<listitem open="0" type="813" id="183" label="Intranet_Servicios_Bandas_Agente" >
+>>>>>>> .r63
<listitem open="0" type="814" id="214" label="accesos" />
- <listitem open="0" type="814" id="215" label="credencial" />
- <listitem open="0" type="815" id="213" label="Intranet_Servicios_Bandas_Agente" />
+ <listitem open="0" type="814" id="227" label="diasLaborablesTrabajados" />
+ <listitem open="0" type="814" id="226" label="diasTrabajados" />
+ <listitem open="0" type="814" id="223" label="horas" />
+ <listitem open="0" type="814" id="222" label="promedio" />
+ <listitem open="0" type="815" id="213" label="Servicios_Bandas_Agente" />
<listitem open="0" type="815" id="205" label="getAccesos" />
- <listitem open="0" type="815" id="194" label="getCredencial" />
<listitem open="0" type="815" id="207" label="getDiasLaborablesTrabajados" />
<listitem open="0" type="815" id="208" label="getDiasTrabajados" />
<listitem open="0" type="815" id="198" label="getHoras" />
<listitem open="0" type="815" id="212" label="getNASA" />
<listitem open="0" type="815" id="197" label="getPromedioMensual" />
</listitem>
+<<<<<<< .mine
+ <listitem open="1" type="813" id="200" label="Servicios_Bandas_Dependencia" >
+ <listitem open="0" type="815" id="220" label="Servicios_Bandas_Dependencia" />
+=======
<listitem open="0" type="813" id="200" label="Intranet_Servicios_Bandas_Dependencia" >
+>>>>>>> .r63
<listitem open="0" type="815" id="202" label="getAgentes" />
<listitem open="0" type="815" id="209" label="getNASA" />
<listitem open="0" type="815" id="203" label="getPromedio" />
</listitem>
+<<<<<<< .mine
+=======
<listitem open="0" type="813" id="182" label="MECON_Agente" >
<listitem open="0" type="814" id="184" label="agente" />
<listitem open="0" type="814" id="185" label="datos" />
<listitem open="0" type="815" id="217" label="getNombre" />
</listitem>
<listitem open="1" type="813" id="206" label="MECON_NovedadesDia" />
+>>>>>>> .r63
</listitem>
<listitem open="1" type="802" id="-1" label="Use Case View" />
<listitem open="1" type="821" id="-1" label="Component View" />
<XMI.exporterVersion>1.1.5</XMI.exporterVersion>
<XMI.exporterEncoding>UnicodeUTF8</XMI.exporterEncoding>
</XMI.documentation>
- <XMI.model xmi.name="legajos" href="/home/martin/public_html/intranet/doc/servicios/legajos/legajos.xmi" />
+ <XMI.model xmi.name="legajos" href="/home/matias/sistemas/php/intranet/doc/servicios/legajos/legajos.xmi" />
<XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
</XMI.header>
<XMI.content>
<UML:Class stereotype="" package="" xmi.id="153" abstract="0" documentation="x2c:extern
x2c:include:/home/matias/sistemas/meconlib/tronco/lib/MECON" name="MECON_Agente" static="0" scope="200" />
<UML:Class stereotype="" package="" xmi.id="154" abstract="0" documentation="" name="Servicios_Legajos_Familiares" static="0" scope="200" >
- <UML:Operation stereotype="" package="" xmi.id="169" type="void" abstract="0" documentation="" name="Intranet_Legajos_Familiares" static="0" scope="200" >
+ <UML:Operation stereotype="" package="" xmi.id="169" type="void" abstract="0" documentation="" name="Servicios_Legajos_Familiares" static="0" scope="200" >
<UML:Parameter stereotype="" package="" xmi.id="1" value="" type="int" abstract="0" documentation="" name="agente" static="0" scope="200" />
</UML:Operation>
<UML:Operation stereotype="" package="" xmi.id="170" type="void" abstract="0" documentation="" name="getHijos" static="0" scope="200" />
<UML:Attribute stereotype="" package="" xmi.id="168" value="" type="int" abstract="0" documentation="" name="datos" static="0" scope="200" />
</UML:Class>
<UML:Class stereotype="" package="" xmi.id="155" abstract="0" documentation="Antigüedad laboral del agente" name="Servicios_Legajos_ExperienciaLaboral" static="0" scope="200" >
- <UML:Operation stereotype="" package="" xmi.id="159" type="void" abstract="0" documentation="" name="Intranet_Legajos_ExperienciaLaboral" static="0" scope="200" >
+ <UML:Operation stereotype="" package="" xmi.id="159" type="void" abstract="0" documentation="" name="Servicios_Legajos_ExperienciaLaboral" static="0" scope="200" >
<UML:Parameter stereotype="" package="" xmi.id="1" value="" type="int" abstract="0" documentation="" name="agente" static="0" scope="200" />
</UML:Operation>
<UML:Operation stereotype="" package="" xmi.id="160" type="void" abstract="0" documentation="" name="getAntiguedad" static="0" scope="200" />
</UML:Class>
<UML:Class stereotype="" package="" xmi.id="156" abstract="0" documentation="x2c:extern" name="DB" static="0" scope="200" />
<UML:Class stereotype="" package="" xmi.id="163" abstract="0" documentation="Estudios del agente" name="Servicios_Legajos_Estudios" static="0" scope="200" >
- <UML:Operation stereotype="" package="" xmi.id="166" type="void" abstract="0" documentation="" name="Intranet_Legajos_Estudios" static="0" scope="200" >
+ <UML:Operation stereotype="" package="" xmi.id="166" type="void" abstract="0" documentation="" name="Servicios_Legajos_Estudios" static="0" scope="200" >
<UML:Parameter stereotype="" package="" xmi.id="1" value="" type="int" abstract="0" documentation="" name="agente" static="0" scope="200" />
</UML:Operation>
<UML:Operation stereotype="" package="" xmi.id="172" type="void" abstract="0" documentation="" name="getEstudios" static="0" scope="200" />
<UML:Association nameb="" stereotype="" visibilitya="200" visibilityb="200" assoctype="500" rolea="163" roleb="156" multia="" doca="" multib="" docb="" package="" xmi.id="-1" abstract="0" documentation="" name="" static="0" scope="200" changeabilitya="900" changeabilityb="900" namea="" />
</umlobjects>
<diagrams>
- <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" zoom="100" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" canvaswidth="812" snapy="10" showatts="1" xmi.id="152" documentation="" type="402" showops="1" showpackage="0" name="class diagram" localid="30000" showstereotype="0" showscope="1" snapcsgrid="0" font="helvetica,-1,12,0,50,0,0,0,0,0" linecolor="#ff0000" canvasheight="626" >
+ <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" zoom="100" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" canvaswidth="613" snapy="10" showatts="1" xmi.id="152" documentation="" type="402" showops="1" showpackage="0" name="class diagram" localid="30000" showstereotype="0" showscope="1" snapcsgrid="0" font="helvetica,-1,12,0,50,0,0,0,0,0" linecolor="#ff0000" canvasheight="469" >
<widgets>
<UML:ClassWidget usesdiagramfillcolour="1" width="91" showattsigs="601" usesdiagramusefillcolour="1" x="445" linecolour="none" y="89" showopsigs="601" instancename="" usesdiagramlinecolour="1" fillcolour="none" height="28" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="153" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
- <UML:ClassWidget usesdiagramfillcolour="0" width="236" showattsigs="601" usesdiagramusefillcolour="0" x="373" linecolour="#ff0000" y="196" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="84" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="154" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
- <UML:ClassWidget usesdiagramfillcolour="0" width="279" showattsigs="601" usesdiagramusefillcolour="0" x="115" linecolour="#ff0000" y="328" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="98" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="155" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
+ <UML:ClassWidget usesdiagramfillcolour="0" width="241" showattsigs="601" usesdiagramusefillcolour="0" x="373" linecolour="#ff0000" y="196" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="84" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="154" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
+ <UML:ClassWidget usesdiagramfillcolour="0" width="284" showattsigs="601" usesdiagramusefillcolour="0" x="115" linecolour="#ff0000" y="328" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="98" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="155" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
<UML:ClassWidget usesdiagramfillcolour="1" width="35" showattsigs="601" usesdiagramusefillcolour="1" x="279" linecolour="none" y="15" showopsigs="601" instancename="" usesdiagramlinecolour="1" fillcolour="none" height="28" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="156" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
- <UML:ClassWidget usesdiagramfillcolour="0" width="232" showattsigs="601" usesdiagramusefillcolour="0" x="39" linecolour="#ff0000" y="115" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="70" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="163" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
+ <UML:ClassWidget usesdiagramfillcolour="0" width="237" showattsigs="601" usesdiagramusefillcolour="0" x="39" linecolour="#ff0000" y="115" showopsigs="601" instancename="" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="70" usefillcolor="1" showattributes="1" isinstance="0" xmi.id="163" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="helvetica,8,-1,0,50,0,0,0,0,0" />
</widgets>
<messages/>
<associations>
<UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="3" indexb="1" widgetbid="156" roleBdoc="" widgetaid="155" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
- <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
- <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="34" linecolour="none" y="59" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+ <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="1" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+ <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="37" linecolour="none" y="59" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
<linepath>
- <startpoint startx="254" starty="328" />
+ <startpoint startx="257" starty="328" />
<endpoint endx="290" endy="43" />
</linepath>
</UML:AssocWidget>
<UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="3" indexb="2" widgetbid="156" roleBdoc="" widgetaid="154" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
- <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="107" linecolour="none" y="24" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+ <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="109" linecolour="none" y="24" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
<linepath>
- <startpoint startx="491" starty="196" />
+ <startpoint startx="493" starty="196" />
<endpoint endx="302" endy="43" />
</linepath>
</UML:AssocWidget>
<UML:AssocWidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="2" indexb="1" widgetbid="156" roleBdoc="" widgetaid="163" roleAdoc="" documentation="" type="500" changeabilityA="900" changeabilityB="900" visibilityA="200" >
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="703" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
- <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="39" linecolour="none" y="11" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
+ <UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="41" linecolour="none" y="11" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="711" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
<UML:FloatingTextWidget usesdiagramfillcolour="1" width="0" usesdiagramusefillcolour="1" x="0" linecolour="none" y="0" operation="" instancename="" posttext="" usesdiagramlinecolour="1" role="712" fillcolour="none" height="0" usefillcolor="1" seqnum="" pretext="" isinstance="0" xmi.id="-1" text="" font="helvetica,12,-1,0,50,0,0,0,0,0" />
<linepath>
- <startpoint startx="155" starty="115" />
+ <startpoint startx="157" starty="115" />
<endpoint endx="279" endy="29" />
</linepath>
</UML:AssocWidget>
var $_accesos = null;
/**
- * @var int $credencial
+ * Número de ausentes sin aviso en el mes pedido
+ *
+ * @var int $NASA
* @access private
*/
- var $_credencial;
+ var $_NASA;
- // ~X2C
+ /**
+ * Promedio horario del agente en el mes pedido
+ *
+ * @var int $promedio
+ * @access private
+ */
+ var $_promedio;
- // +X2C Operation 194
/**
- * @param date $fecha
+ * Array con las horas por día trabajadas por el agente
*
- * @return void
- * @access public
+ * @var int $horas
+ * @access private
*/
- function getCredencial($fecha = null) // ~X2C
- {
- trigger_error('Not implemented!', E_USER_WARNING);
- }
- // -X2C
+ var $_horas;
+
+ /**
+ * Cantidad de días trabajados por el agente en el mes pedido
+ *
+ * @var int $diasTrabajados
+ * @access private
+ */
+ var $_diasTrabajados = 0;
+
+ /**
+ * Cantidad de días laborables trabajados por el agente en el mes pedido
+ *
+ * @var int $diasLaborablesTrabajados
+ * @access private
+ */
+ var $_diasLaborablesTrabajados = 0;
+
+ // ~X2C
+
// +X2C Operation 197
/**
+ * Devuelve el promedio de horas del agente en el mes pedido
+ *
* @return void
* @access public
*/
function getPromedioMensual() // ~X2C
{
- trigger_error('Not implemented!', E_USER_WARNING);
+ return $this->_promedioMensual;
}
// -X2C
// +X2C Operation 198
/**
- * @param date $dia La fecha que se desea consultar
+ * Devuelve un array con las horas de cada día
*
* @return void
* @access public
*/
- function getHoras($dia = null) // ~X2C
+ function getHoras() // ~X2C
{
- trigger_error('Not implemented!', E_USER_WARNING);
+ return $this->_horas;
}
// -X2C
/**
* Método que devuelve todos los accesos de una persona en un rango de fechas
*
- * @param date $fecha_desde
- * @param date $fecha_hasta
- *
* @return void
* @access public
*/
- function getAccesos($fecha_desde, $fecha_hasta) // ~X2C
+ function getAccesos() // ~X2C
{
- trigger_error('Not implemented!', E_USER_WARNING);
+ return $this->_accesos;
}
// -X2C
*/
function getDiasLaborablesTrabajados() // ~X2C
{
- trigger_error('Not implemented!', E_USER_WARNING);
+ return $this->_diasLaborablesTrabajados;
}
// -X2C
*/
function getDiasTrabajados() // ~X2C
{
- trigger_error('Not implemented!', E_USER_WARNING);
+ return $this->_diasTrabajados;
}
// -X2C
*/
function getNASA() // ~X2C
{
- trigger_error('Not implemented!', E_USER_WARNING);
+ return $this->_NASA;
}
// -X2C
*/
function Servicios_Bandas_Agente($agente = null, $fecha = null) // ~X2C
{
- trigger_error('Not implemented!', E_USER_WARNING);
+ Parent::MECON_Agente($agente);
+ $dsn = 'mysql://intranet:intranet@bal747f/bandas';
+ $db = DB::connect($dsn);
+ if (DB::isError($db))
+ die ($db->getMessage("No pudo conectarse a la base"));
+ if(is_null($fecha)) $fecha = new Date();
+ $mes = $fecha->format('%m');
+ $anio = $fecha->format('%Y');
+ $sql = "SELECT AC.credencial, TA.tipo_acceso, A.fecha, A.hora
+ FROM Acceso A, Agente_Credencial AC, Tipo_Acceso TA
+ WHERE AC.credencial = A.credencial AND
+ AC.agente = $agente AND
+ MONTH(A.fecha) = $mes AND YEAR(A.fecha) = $anio AND
+ TA.puerta = A.puerta AND
+ AC.desde <= A.fecha AND
+ ( AC.hasta >= A.fecha OR AC.hasta IS NULL)
+ ORDER BY A.fecha, A.hora";
+ $result = $db->query($sql);
+ if (DB::isError($result))
+ die ($result->getMessage("Query mal hecho"));
+ for ($fila = 0; $fila < $result->numRows(); $fila++) {
+ $this->_accesos[$fila] = $result->fetchRow(DB_FETCHMODE_ASSOC);
+ }
+
+ $sql = "SELECT diasLaborablesTrabajados, diasTrabajados, promedio, NASN
+ FROM PrecalculoMensual
+ WHERE agente = $agente AND anio = $anio and mes = $mes";
+ $result = $db->query($sql);
+ if (DB::isError($result))
+ die ($result->getMessage("Query mal hecho"));
+ if ( $result->numRows() > 0) {
+ $aux = $result->fetchRow(DB_FETCHMODE_ASSOC);
+ $this->_diasTrabajados = $aux['diasTrabajados'];
+ $this->_diasLaborablesTrabajados = $aux['diasLaborablesTrabajados'];
+ $this->_promedio = $aux['promedio'];
+ $this->_NASA = $aux['NASN'];
+ }
+ $sql = "SELECT fecha, tiempo, ASN, inconsistencia
+ FROM PrecalculoDiario
+ WHERE agente = $agente AND
+ MONTH(fecha) = $mes AND
+ YEAR(fecha) = $anio
+ ORDER BY fecha";
+ $result = $db->query($sql);
+ if (DB::isError($result))
+ die ($result->getMessage("Query mal hecho"));
+ for ($fila = 1; $fila < ($result->numRows() + 1); $fila++) {
+ $this->_horas[$fila] = $result->fetchRow(DB_FETCHMODE_ASSOC);
+ }
+
}
// -X2C
} // -X2C Class :Servicios_Bandas_Agente
-?>
\ No newline at end of file
+?>
require_once 'DB.php';
// ~X2C
-// +X2C Class 163 :Intranet_Legajos_Estudios
+// +X2C Class 163 :Servicios_Legajos_Estudios
/**
* Estudios del agente
*
* @return void
* @access public
*/
- function Intranet_Legajos_Estudios($agente) // ~X2C
+ function Servicios_Legajos_Estudios($agente) // ~X2C
{
$this->agente = $agente;
$dsn = 'mysql://intranet:intranet@intranet-db/novedades';
}
// -X2C
-} // -X2C Class :Intranet_Legajos_Estudios
-?>
+} // -X2C Class :Servicios_Legajos_Estudios
+?>
\ No newline at end of file
require_once 'DB.php';
// ~X2C
-// +X2C Class 155 :Intranet_Legajos_ExperienciaLaboral
+// +X2C Class 155 :Servicios_Legajos_ExperienciaLaboral
/**
- * Antigedad laboral del agente
+ * Antigüedad laboral del agente
*
* @access public
*/
* @return void
* @access public
*/
- function Intranet_Legajos_ExperienciaLaboral($agente) // ~X2C
+ function Servicios_Legajos_ExperienciaLaboral($agente) // ~X2C
{
$this->agente = $agente;
$dsn = 'mysql://intranet:intranet@intranet-db/novedades';
}
// -X2C
-} // -X2C Class :Intranet_Legajos_ExperienciaLaboral
-?>
+} // -X2C Class :Servicios_Legajos_ExperienciaLaboral
+?>
\ No newline at end of file
require_once 'DB.php';
// ~X2C
-// +X2C Class 154 :Intranet_Legajos_Familiares
+// +X2C Class 154 :Servicios_Legajos_Familiares
/**
* @access public
*/
* @return void
* @access public
*/
- function Intranet_Legajos_Familiares($agente) // ~X2C
+ function Servicios_Legajos_Familiares($agente) // ~X2C
{
$this->agente = $agente;
$dsn = 'mysql://intranet:intranet@intranet-db/novedades';
}
// -X2C
-} // -X2C Class :Intranet_Legajos_Familiares
-?>
+} // -X2C Class :Servicios_Legajos_Familiares
+?>
\ No newline at end of file
require_once 'MECON/HTML/Arbol.php';
require_once '../../../local_lib/HTML_DietMarco.php';
-
+if(!isset($_SESSION['documento']))
+{
+ header('Location: ../../servicios.php');
+}
$nrodoc = $_SESSION['documento'];
$m = new HTML_DietMarco('servicios');
$m->addTitle('Legajo de Personal');
+$m->addStyleSheet('../../css/servicios_agenda.css');
-
-$arbol_valores = array();
-foreach (array('Personales','Domicilio','Cobertura','Estudios','Antiguedad','Laboral','Cónyuge','Hijos','Familiares') as $a)
-{
- $aa = array(
- 'titulo'=>$a,
- 'link'=>'./legajo.php?mostrar='.strtolower($a)
- );
- array_push($arbol_valores,$aa);
-}
-
-$arbol = new MECON_HTML_Arbol($arbol_valores,'Datos');
-$m->addStyleSheet($arbol->getCSS());
-$m->addStyleSheet('/MECON/css/general_estilos.css');
+$row_T = array();
$T = new HTML_Table(array ( 'width'=>'750',
'border' => '0',
'cellspacing' => '0',
'cellpadding' => '0',
'bgcolor' => '#FFFFFF'));
-$row_T = array();
-
$agente = new MECON_Agente(NULL);
-if(!($agente->buscarAgente($nrodoc)))
+if(!($agente->buscarAgente($nrodoc)) or ($agente->buscarAgente($nrodoc) and preg_match('/^CON/',$agente->getTipo())))
{
- $t = new HTML_Table(array('width'=>'600'));
- $t->addRow('');
-
- $row_T = array($arbol,$t);
+ $t = new HTML_Table(array('width'=>'600','height'=>'200'));
+ $t->addRow( array('Información no disponible'),
+ array('valign'=>'center', 'align'=>'center', 'class'=>'txt_naranja'));
+ $row_T = array($t);
$T->addRow($row_T,array('valign'=>'top','align'=>'left'));
$m->addBodyContent($T);
$dep = new MECON_Dependencia($agente->getDependencia());
}
+$arbol_valores = array();
+foreach (array('Personales','Domicilio','Cobertura','Estudios','Antiguedad','Laboral','Cónyuge','Hijos','Familiares') as $a)
+{
+ $aa = array(
+ 'titulo'=>$a,
+ 'link'=>'./legajo.php?mostrar='.strtolower($a)
+ );
+ if (in_array(strtolower($a),$_GET))
+ {
+ $aa['activo']=1;
+ }
+ if (!(
+ ($a=='Domicilio' and $agente->datos['domicilio']=='') or
+ ($a=='Cobertura' and $agente->datos['obra_social']=='') or
+ ($a=='Estudios' and count($datos_estudios)==0) or
+ ($a=='Antiguedad' and count($datos_antiguedad)==0) or
+ ($a=='Laboral' and $agente->getDependencia()=='') or
+ ($a=='Cónyuge' and $datos['conyuge']=='') or
+ ($a=='Hijos' and count($datos_hijos)==0) or
+ ($a=='Familiares' and count($datos_familiares)==0)
+ ))
+ {
+ array_push($arbol_valores,$aa);
+ }
+}
+$arbol = new MECON_HTML_Arbol($arbol_valores,'Datos');
+
+$m->addStyleSheet($arbol->getCSS());
+
+
if(in_array('mostrar',array_keys($_GET)) and !(preg_match('/^CON/',$agente->getTipo()))) {
if($_GET['mostrar'] == 'personales') {
);
$t->addRow($row,array('align'=>"left"));
- }elseif($_GET['mostrar'] == 'conyuge') {
+ }elseif($_GET['mostrar'] == 'cónyuge') {
/* Datos del Conyuge */
$t = new MECON_HTML_Tabla (array('width'=>'600'),'servicio');