function Header() { $this->Print_Logo(); $this->SetDrawColor(0); $this->SetLineWidth(0); $this->SetXY(5, 10); $this->SetFont('Arial', 'B', 16); $this->Cell(0, 0, 'Listado de Seguimiento de Incapacidades', 0, 0, 'C'); $psiniestro = $_SESSION["ReportesSiniestros"]["ID"]; $porden = $_SESSION["ReportesSiniestros"]["ORDEN"]; $datosEncabezado = Encabezado_SeguimientoIncapacidades($psiniestro, $porden); $this->SetFont('Arial', 'B', 10); $this->SetY(15); $this->Cell(0, 0, 'Siniestro: ' . $datosEncabezado['SINIESTRO'], 0, 0, 'C'); $this->SetY(20); $this->Cell(0, 0, 'CUIL: ' . ponerGuiones($datosEncabezado['CUIL']) . ' - Apellido y nombre: ' . $datosEncabezado['NOMBRE'], 0, 0, 'C'); $this->SetY(25); $this->Cell(0, 0, 'Empresa: ' . $datosEncabezado['EM_NOMBRE'], 0, 0, 'C'); $this->SetFont('Arial', "I", 6); //$ahora = $rowEstableci["FECHASERVER"]; date_default_timezone_set('UTC'); $ahora = date("d/m/Y"); $this->SetXY(5, 5); $this->Cell(0, 0, $ahora . " ", 0, 0, 'L'); $this->EncabezadoReporte(); $this->Ln(6); }
$pdf->useTemplate($tplIdx); $pdf->SetFont("Arial", "", 10); $pdf->Ln(15); $pdf->Cell(196, 0, setNumeroSolicitud($row2["CUITSUSCRIPCION"], $row2["FO_FORMULARIO"]), 0, 0, "C"); $pdf->SetFont("Arial", "B", 8); $pdf->Ln(240.4); $pdf->Cell(144); $pdf->Cell(0, 0, ponerGuiones($row2["SC_CUIT"])); //Página 3.. $pdf->AddPage(); $tplIdx = $pdf->importPage(3); $pdf->useTemplate($tplIdx); $pdf->SetFont("Arial", "", 10); $pdf->Ln(15); $pdf->Cell(196, 0, setNumeroSolicitud($row2["CUITSUSCRIPCION"], $row2["FO_FORMULARIO"]), 0, 0, "C"); $pdf->SetFont("Arial", "B", 8); $pdf->Ln(177.6); $pdf->Cell(148); $pdf->Cell(0, 0, ponerGuiones($row2["SC_CUIT"])); if ($autoPrint) $pdf->AutoPrint(false); $pdf->Output(); ?>
function dibujarCabecera($tipoCabecera, $dibujarTitulo) { global $pdf; global $row; setNumeroSolicitud($row["CUIT"], $row["FO_FORMULARIO"]); $pdf->SetFont("Arial", "B", 8); $pdf->Ln(-7.2); $pdf->Cell(4); $pdf->Cell(0, 0, $row["FECHAALTA"]); $pdf->SetFont("Arial", "B", 9); $pdf->Ln(3); $pdf->Cell(192, 0, $row["TITULO"], 0, 0, "C"); $pdf->SetFont("Arial", "B", 8); $pdf->Ln(8); $pdf->Cell(-6); $pdf->Cell(48, 0, "C.U.I.T./C.U.I.P. Nº ".ponerGuiones($row["CUIT"])); $pdf->Cell(0, 0, "Nº Establecimiento ".$row["NROESTABLECIMIENTO"]); $pdf->Ln(12); $pdf->SetFillColor(255, 255, 255); $pdf->Rect(2, 22, 210, 80, "F"); $pdf->SetFillColor(0, 0, 0); if ($tipoCabecera == 1) { $pdf->Rect(5, 22, 5.4, 4, "F"); $pdf->Rect(11.0, 22, 116.4, 4, "F"); $pdf->Rect(127.8, 22, 3.2, 4, "F"); $pdf->Rect(131.4, 22, 4, 4, "F"); $pdf->Rect(135.8, 22, 8.8, 4, "F"); $pdf->Rect(145.2, 22, 12.6, 4, "F"); $pdf->Rect(158.4, 22, 52.2, 4, "F"); $pdf->SetTextColor(255, 255, 255); $pdf->Ln(-8.4); $pdf->SetFont("Arial", "B", 6); $pdf->Cell(87); $pdf->Cell(0, 0, "FECHA", 0, 0, "C"); $pdf->Ln(0.4); $pdf->SetFont("Arial", "B", 7); $pdf->Cell(126.2); $pdf->Cell(8, 0, "NO", 0, 0, "C"); $pdf->Ln(0.4); $pdf->Cell(-4.4); $pdf->Cell(6, 0, "Nº"); $pdf->Cell(115.6, 0, "-"); $pdf->Cell(4.8, 0, "SÍ"); $pdf->Cell(-1.4); $pdf->Cell(39, 0, "NO"); $pdf->Cell(53, 0, "NORMATIVAVIGENTE"); $pdf->Ln(1.2); $pdf->SetFont("Arial", "B", 6); $pdf->Cell(125.4); $pdf->Cell(0, 0, "APLICA"); $pdf->Ln(0); $pdf->SetFont("Arial", "B", 4); $pdf->Cell(134.2); $pdf->Cell(0, 0, "REGULARIZACIÓN"); $pdf->Ln(2); $pdf->SetTextColor(0, 0, 0); } if ($tipoCabecera == 2) { // Cancerígenos.. $pdf->Ln(-9.6); $pdf->SetFillColor(0, 0, 0); $pdf->Rect($pdf->GetX() - 5, $pdf->GetY(), 51, 4, "F"); $pdf->Rect($pdf->GetX() + 46.4, $pdf->GetY(), 51, 4, "F"); $pdf->Rect($pdf->GetX() + 98, $pdf->GetY(), 51, 4, "F"); $pdf->Rect($pdf->GetX() + 149.4, $pdf->GetY(), 51, 4, "F"); $pdf->SetTextColor(255, 255, 255); $pdf->Ln(2); $pdf->SetFont("Arial", "B", 6); $pdf->Cell(-5); $pdf->Cell(39, 0, "DESCRIPCIÓN"); $pdf->Cell(6, 0, "SÍ"); $pdf->Cell(7, 0, "NO"); $pdf->Cell(38, 0, "DESCRIPCIÓN"); $pdf->Cell(6, 0, "SÍ"); $pdf->Cell(7.6, 0, "NO"); $pdf->Cell(38, 0, "DESCRIPCIÓN"); $pdf->Cell(6, 0, "SÍ"); $pdf->Cell(7.6, 0, "NO"); $pdf->Cell(38, 0, "DESCRIPCIÓN"); $pdf->Cell(6, 0, "SÍ"); $pdf->Cell(7, 0, "NO"); $pdf->SetTextColor(0, 0, 0); $pdf->Ln(-15); } if ($tipoCabecera == 3) { // Difenilos.. $pdf->Ln(-9.6); $pdf->SetFillColor(0, 0, 0); $pdf->Rect($pdf->GetX() - 5, $pdf->GetY(), 51, 4, "F"); $pdf->Rect($pdf->GetX() + 46.4, $pdf->GetY(), 51, 4, "F"); $pdf->Rect($pdf->GetX() + 98, $pdf->GetY(), 51, 4, "F"); $pdf->Rect($pdf->GetX() + 149.4, $pdf->GetY(), 51, 4, "F"); $pdf->SetTextColor(255, 255, 255); $pdf->Ln(2); $pdf->SetFont("Arial", "B", 6); $pdf->Cell(-5); $pdf->Cell(39, 0, "DESCRIPCIÓN"); $pdf->Cell(6, 0, "SÍ"); $pdf->Cell(7, 0, "NO"); $pdf->Cell(38, 0, "DESCRIPCIÓN"); $pdf->Cell(6, 0, "SÍ"); $pdf->Cell(7.6, 0, "NO"); $pdf->Cell(38, 0, "DESCRIPCIÓN"); $pdf->Cell(6, 0, "SÍ"); $pdf->Cell(7.6, 0, "NO"); $pdf->Cell(38, 0, "DESCRIPCIÓN"); $pdf->Cell(6, 0, "SÍ"); $pdf->Cell(7, 0, "NO"); $pdf->SetTextColor(0, 0, 0); $pdf->Ln(-15); } if ($tipoCabecera == 4) { // Químicas.. $pdf->Ln(-9); if ($dibujarTitulo) { $pdf->Ln(4); $pdf->SetFont("Arial", "B", 8); $pdf->Cell(-4); $pdf->Cell(0, 0, "PLANILLA C | SUSTANCIAS QUÍMICAS A DECLARAR"); $pdf->Ln(4); } $pdf->SetFillColor(0, 0, 0); $pdf->Rect($pdf->GetX() - 5, $pdf->GetY(), 102.4, 4, "F"); $pdf->Rect($pdf->GetX() + 98, $pdf->GetY(), 102.4, 4, "F"); $pdf->SetTextColor(255, 255, 255); $pdf->SetFont("Arial", "B", 6); $pdf->Ln(1.2); $pdf->Cell(79.6, 0, "CANTIDAD", 0, 0, "R"); $pdf->Cell(103, 0, "CANTIDAD", 0, 0, "R"); $pdf->Ln(1.8); $pdf->Cell(-5); $pdf->Cell(70, 0, "DESCRIPCIÓN", 0, 0, "C"); $pdf->Cell(16, 0, "UMBRAL(TN)", 0, 0, "C"); $pdf->Cell(8, 0, "SÍ", 0, 0, "C"); $pdf->Cell(8, 0, "NO", 0, 0, "C"); $pdf->Cell(71, 0, "DESCRIPCIÓN", 0, 0, "C"); $pdf->Cell(16, 0, "UMBRAL(TN)", 0, 0, "C"); $pdf->Cell(8, 0, "SÍ", 0, 0, "C"); $pdf->Cell(8, 0, "NO", 0, 0, "C"); $pdf->SetTextColor(0, 0, 0); } }
$pdf->Cell(0, 0, "X"); } if (($row["EW_LUGAROCURRENCIA"] != 1) and ($row["EW_LUGAROCURRENCIA"] != 2) and ($row["EW_LUGAROCURRENCIA"] != 3)) { $pdf->Cell(41); $pdf->Cell(0, 0, "X"); } // Datos del empleador.. $pdf->Ln(11.4); $pdf->Cell(30); $pdf->Cell(54, 0, $_SESSION["empresa"]); $pdf->Cell(8); $pdf->Cell(24, 0, ponerGuiones($_SESSION["cuit"])); $pdf->Cell(14); $pdf->Cell(14, 0, $_SESSION["contrato"]); $pdf->Cell(10); $pdf->Cell(0, 0, $rowEmpleador["CIIU"]); $pdf->Ln(4); $pdf->Cell(27); $pdf->Cell(84, 0, $rowEmpleador["DOMICILIO"]); $pdf->Cell(4); $pdf->Cell(18, 0, $rowEmpleador["NUMERO"]); $pdf->Cell(7);
<a href="#" onClick="paso = 4; cambiarPaso(4);"><span id="numeroPaso4">4</span></a> | <a href="#" onClick="paso = 5; cambiarPaso(5);"><span id="numeroPaso5">5</span></a> <div align="left" style="margin-bottom:16px; margin-top:12px;"> <table style="border-color:#808080; border-style:double; width:720px;"> <tr> <td colspan="4"><div class="TituloTablaCeleste">EMPRESA</div></td> </tr> <tr> <td style="vertical-align:top; width:112px;"><b>Razón Social</b></td> <td><?php echo $_SESSION["empresa"]; ?> </td> <td style="margin-left:16px; vertical-align:top; width:40px;"><b>C.U.I.T.</b></td> <td style="vertical-align:top;"><?php echo ponerGuiones($_SESSION["cuit"]); ?> </td> </tr> <tr> <td><b>Contrato</b></td> <td><?php echo $_SESSION["contrato"]; ?> </td> <td><b>Tel/Fax</b></td> <td style="width:120px;"><?php echo getTelefono($_SESSION["contrato"]); ?> </td> </tr>
function Header() { $this->Print_Logo(); $this->SetDrawColor(0); $this->SetLineWidth(0); $this->SetXY(10, 10); $this->SetFont('Arial', 'B', 16); $this->Cell(0, 0, 'Contrato de Trabajadores (FICHA)', 0, 0, 'C'); $this->SetFont('Arial', "I", 6); $borde = 0; //$ahora = $rowEstableci["FECHASERVER"]; date_default_timezone_set('UTC'); $ahora = date("d/m/Y"); $this->SetXY(5, 5); $this->Cell(0, 0, $ahora . " ", 0, 0, 'L'); //----------------------------------------------------------- $this->SetFont('Arial', 'B', 9); $x = 15; $y = 15; $lny = 5; $vararray = $this->arrayDatosEncabezado; $vararrayTrabajador = $this->arrayDatosTrabajador; $vararrayEmpresa = $this->arrayDatosEmpresa; //------ Linea 1 ------ $this->SetXY($x, $y); $y += $lny; $tCuil = str_pad(ponerGuiones($vararray["CUIL"]), 20); $tNombre = str_pad($vararray["NOMBRE"], 30); $this->ImprimeLineaTextoMaxW($x, $y, "C.U.I.L.: ", $tCuil, 35, $borde, ''); $this->ImprimeLineaTexto($x + 50, $y, " Nombre: ", $tNombre, $borde, ''); //------ Linea 2 ------ $this->SetXY($x, $y); $y += $lny; $tSexo = trim($vararrayTrabajador["SEXOS_DESCRIPCION"]); $tNacionalidad = trim($vararrayTrabajador["NACIONALIDAD_DESCRIPCION"]); $tNacimiento = trim($vararrayTrabajador["MT_FNACIMIENTO"]); $this->ImprimeLineaTextoMaxW($x, $y, "Sexo: ", $tSexo, 30, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 50, $y, " Nacionalidad: ", $tNacionalidad, 40, $borde, ''); $this->ImprimeLineaTexto($x + 120, $y, " F. Nacimiento: ", $tNacimiento, $borde, ''); //------ Linea 3 ------ $this->SetXY($x, $y); $y += $lny; $tEstadoCivil = trim($vararrayTrabajador["ESTAD_DESCRIPCION"]); $tDominante = trim($vararrayTrabajador["LATDO_DESCRIPCION"]); $this->ImprimeLineaTextoMaxW($x, $y, "Est. Civil: ", $tEstadoCivil, 20, $borde, ''); $this->ImprimeLineaTexto($x + 50, $y, " L. Dominante: ", $tDominante, $borde, ''); //------ Linea 4 ------ $this->SetXY($x, $y); $y += $lny; $tMail = str_pad($vararrayTrabajador["MT_MAIL"], 15); $this->ImprimeLineaTexto($x, $y, "E-Mail: ", $tMail, $borde, ''); //------ Linea 5 ------ $this->SetXY($x, $y); $y += $lny; $tDomicilio = trim($vararrayTrabajador["MT_CALLE"]); $tNro = trim($vararrayTrabajador["MT_NUMERO"]); $tPiso = trim($vararrayTrabajador["MT_PISO"]); $tDto = trim($vararrayTrabajador["MT_DEPARTAMENTO"]); $this->ImprimeLineaTextoMaxW($x, $y, "Domicilio: ", $tDomicilio, 60, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 80, $y, " Nro: ", $tNro, 30, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 120, $y, " Piso: ", $tPiso, 8, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 140, $y, " Dto: ", $tDto, 20, $borde, ''); //------ Linea 6 ------ $this->SetXY($x, $y); $y += $lny; $tCPostal = trim($vararrayTrabajador["MT_CPOSTAL"]); $tCPA = trim($vararrayTrabajador["MT_CPOSTALA"]); $tLocalidad = trim($vararrayTrabajador["MT_LOCALIDAD"]); $tProvincia = trim($vararrayTrabajador["PV_DESCRIPCION"]); $this->ImprimeLineaTextoMaxW($x, $y, "C. Postal: ", $tCPostal, 30, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 30, $y, " CPA: ", $tCPA, 20, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 50, $y, " Localidad: ", $tLocalidad, 50, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 120, $y, " Provincia: ", $tProvincia, 100, $borde, ''); //------ Linea 7 ------ $this->SetXY($x, $y); $y += $lny; $tEdificio = trim($vararrayTrabajador["MT_EDIFICIO"]); $this->ImprimeLineaTextoMaxW($x, $y, "Desc. Edif.: ", $tEdificio, 140, $borde, ''); //------ Linea 8 ------ $this->SetXY($x, $y); $y += $lny; $tTelefono = trim($vararrayTrabajador["TELEFONO_TRABAJADOR"]); $this->ImprimeLineaTextoMaxW($x, $y, "Tel.: ", $tTelefono, 130, $borde, ''); $this->SetXY($x, $y); $y += $lny; //------ Linea 9 ------ $this->SetXY($x, $y); $y += $lny; $tRazonSocial = trim($vararrayEmpresa["NOMBRE"]); if ($tRazonSocial == '') { $tCUIT = ''; } else { $tCUIT = ponerGuiones($vararrayEmpresa["CUIT"]); } $this->ImprimeLineaTextoMaxW($x, $y, "C.U.I.T. Empresa: ", $tCUIT, 50, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 60, $y, "Razón Social: ", $tRazonSocial, 100, $borde, ''); //------ Linea 10 ------ $this->SetXY($x, $y); $y += $lny; $tContrato = trim($vararrayEmpresa["CONTRATO"]); $tTipoContrato = trim($this->tipoContratacion); $this->ImprimeLineaTextoMaxW($x, $y, "Contrato: ", $tContrato, 50, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 60, $y, "Tipo de Contrato: ", $tTipoContrato, 150, $borde, ''); //------ Linea 11 ------ $this->SetXY($x, $y); $y += $lny; $tFechaIngreso = trim($vararrayTrabajador["ML_FECHAINGRESO"]); $tFechaRecepcion = trim($vararrayTrabajador["ML_FECHARECEPCION"]); $this->ImprimeLineaTextoMaxW($x, $y, "Fecha Ingreso: ", $tFechaIngreso, 60, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 60, $y, "Fecha Recepción: ", $tFechaRecepcion, 60, $borde, ''); //------ Linea 13 ------ $this->SetXY($x, $y); $y += $lny; $tTarea = trim($vararrayTrabajador["ML_TAREA"]); $this->ImprimeLineaTextoMaxW($x, $y, "Tarea: ", $tTarea, 160, $borde, ''); //------ Linea 14 ------ $this->SetXY($x, $y); $y += $lny; $tCIUO = trim($this->CIUO); $this->ImprimeLineaTextoMaxW($x, $y, "CIUO: ", $tCIUO, 160, $borde, ''); //------ Linea 15 ------ $this->SetXY($x, $y); $y += $lny; $tSector = trim($vararrayTrabajador["ML_SECTOR"]); $this->ImprimeLineaTextoMaxW($x, $y, "Sector: ", $tSector, 160, $borde, ''); //------ Linea 16 ------ $this->SetXY($x, $y); $y += $lny; $tUltNomina = trim($vararrayTrabajador["ML_ULTIMANOMINA"]); $tSueldo = trim($vararrayTrabajador["ML_SUELDO"]); $tCategorIa = trim($vararrayTrabajador["ML_CATEGORIA"]); $this->ImprimeLineaTextoMaxW($x, $y, "Ult. Nómina: ", $tUltNomina, 40, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 50, $y, "Sueldo: ", $tSueldo, 40, $borde, ''); $this->ImprimeLineaTextoMaxW($x + 100, $y, "Categoría: ", $tCategorIa, 160, $borde, ''); /* */ $this->Ln(5); }
<td align="right">Empleado</td> <td align="left" style="color:#000;"><b><?php echo $row["UI_EMPLEADO"]; ?> </b></td> <td align="right">Fecha Tope del Canje</td> <td align="left" style="color:#000;"><b><?php echo $row["UI_FECHAHASTA"]; ?> </b></td> <td style="width:80px;"></td> </tr> <tr> <td align="right">C.U.I.L.</td> <td align="left" style="color:#000;"><?php echo ponerGuiones($row["UI_CUIL"]); ?> </td> <td align="right">Resultado Obtenido por Empresa</td> <td align="left" style="color:#000;"><?php echo $row["RE_RESULTADO"]; ?> %</td> <td></td> </tr> <tr> <td align="right">Empresa</td> <td align="left" style="color:#000;"><b>Provincia <?php echo $row["EM_DETALLE"]; ?> </b></td>