Example #1
0
$seguro = $myrow1['seguro'];
$numeroTransaccion = $myrow1['keyClientesInternos'];
//************devuelve seguro
$sSQL39 = "SELECT *\r\nFROM\r\nclientes\r\nwhere \r\nnumCliente='" . $seguro . "'";
$result39 = mysql_db_query($basedatos, $sSQL39);
$myrow39 = mysql_fetch_array($result39);
$seguro = $myrow39['nomCliente'];
$auxiliar = $myrow39['ID_AUXILIAR'];
$ctaMayor = $myrow39['ID_CTAMAYOR'];
//**********cierra devolver seguro
if ($seguro) {
    $paciente = $seguro;
}
$pdf->SetFont('Arial', '', 8);
//establece el nombre del paciente
$pdf->SetXY(50, 10);
$pdf->Cell(0, 0, $auxiliar, 0, 0, L);
$pdf->SetX(1);
$pdf->SetXY(50, 15);
$pdf->Cell(0, 0, $ctaMayor, 0, 0, L);
$pdf->SetX(1);
$pdf->SetY(5);
$pdf->Cell(0, 0, $numeroTransaccion, 0, 0, R);
//numero de paciente
$pdf->SetXY(50, 5);
$pdf->Cell(0, 0, $paciente, 0, 0, L);
$pdf->SetX(1);
//cambiar fecha
//$myrow1['fecha1']=cambia_a_normal($myrow1['fecha1']);
$fecha1 = date("d/m/Y");
$pdf->SetY(10);
    $cant = $can;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
$sSQL311 = "Select  * From clientesInternos WHERE entidad='" . $_GET['entidad'] . "' and folioVenta='" . $_GET['folioVenta'] . "'";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
//*************************************************************
$pdf->SetFont('Arial', 'B', 13);
//establece el encabezado de la empresa
$pdf->SetXY(75, 9);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA S.C. ', 0, 0, M);
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetXY(65, 13);
$pdf->Cell(0, 0, 'Camino al Vapor #209 Col. Zambrano, Montemorelos N.L.', 0, 0, M);
$pdf->SetXY(84, 17);
$pdf->Cell(0, 0, 'CP 67500, Tel.(826)263.3188', 0, 0, M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(2, 25);
/* $pdf->Cell(0,0,'Paciente: '.$paciente,0,0,L); */
$sSQL317 = "Select nomCliente From clientes WHERE entidad='" . $_GET['entidad'] . "' and numCliente = '" . $myrow311['seguro'] . "'";
$result317 = mysql_db_query($basedatos, $sSQL317);
$myrow317 = mysql_fetch_array($result317);
//Compa�ia
$pdf->SetXY(2, 33);
function cambia_a_normal($fecha){
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha);
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1];
    return $lafecha;
}

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'POLIZA DE DIARIO',0,0,M);

$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,cambia_a_normal($fecha1),0,0,R);
$servidor = 'localhost';
$basedatos = 'sima';
mysql_connect($servidor, $usuario, $passwd);
function cambia_a_normal($fecha)
{
    ereg("([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha);
    $lafecha = $mifecha[3] . "/" . $mifecha[2] . "/" . $mifecha[1];
    return $lafecha;
}
//******************************************************************
if ($seguro) {
    $paciente = $seguro;
}
$pdf->SetFont('Arial', '', 10);
//establece el nombre del paciente
$pdf->SetXY(2, 5);
$pdf->Cell(0, 0, 'REPORTE DETALLE DE CAJA', 0, 0, M);
$pdf->SetX(1);
//******************************
$fecha1 = date("d/m/Y");
$pdf->SetY(10);
$pdf->Cell(0, 0, $fecha1, 0, 0, R);
//*****************************
$sSQL1a = "Select * From statusCaja where keyCatC='" . $_GET['codigoCaja'] . "' and numCorte='" . $_GET['numCorte'] . "' order by keySTC DESC";
$result1a = mysql_db_query($basedatos, $sSQL1a);
$myrow1a = mysql_fetch_array($result1a);
$pdf->SetXY(2, 10);
$pdf->Cell(0, 0, "Diario de Caja", 0, 0, M);
$pdf->SetX(1);
$pdf->SetXY(2, 13);
$pdf->Cell(0, 0, 'Cajero(a): ' . $myrow1a['usuario'], 0, 0, M);
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;

$sSQL2c= "Select * From contadorEntregaGranel WHERE keySol='".$_GET['keySol']."' ";
$result2c=mysql_db_query($basedatos,$sSQL2c);
$myrow2c = mysql_fetch_array($result2c);

$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'HOSPITAL LA CARLOTA',0,0,M);
$pdf->SetX(1);


//*****************ech*************





//$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,'Orden: '.$myrow2c['contador'],0,0,R);

    $cant = $can;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
$sSQL311 = "Select  * From clientesInternos WHERE keyClientesInternos='" . $_GET['keyClientesInternos'] . "'";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$usuario = $myrow311['usuario'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
$pdf->SetFont('Arial', '', 8);
//establece el encabezado de la empresa
$pdf->SetXY(80, 13);
//$pdf->Cell(0,0,$sSQL311,0,0,M);
$pdf->SetFont('Arial', '', 8);
$pdf->SetXY(65, 17);
//$pdf->Cell(0,0,'Camino al Vapor #201 Col. Zambrano, CP 67500, Montemorelos N.L.',0,0,M);
$pdf->SetXY(90, 20);
//$pdf->Cell(0,0,'Tel. (826)263-3188',0,0,M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 8);
$sSQL455 = "Select * from clientes where entidad='" . $_GET['entidad'] . "' and numCliente='" . $_GET['seguro'] . "'";
$result455 = mysql_db_query($basedatos, $sSQL455);
$myrow455 = mysql_fetch_array($result455);
$sSQL455 = "Select * from clientes where entidad='" . $_GET['entidad'] . "' and numCliente='" . $myrow455['clientePrincipal'] . "'";
$result455 = mysql_db_query($basedatos, $sSQL455);
$myrow455 = mysql_fetch_array($result455);
$razonSocial = $myrow455['razonSocial'];
function cambia_a_normal($fecha){ 
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'REPORTE DE VENTAS DIRECTAS',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,'Fecha Inicial: '.cambia_a_normal($_GET['fechaInicial']).' a la fecha: '.cambia_a_normal($_GET['fechaFinal']),0,0,R);

function cambia_a_normal($fecha){
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha);
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1];
    return $lafecha;
}

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'RESUMEN DETALLADO DE FACTURAS',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,cambia_a_normal($fecha1),0,0,R);

Example #9
0
$sSQL311= "Select  * From clientesInternos WHERE keyClientesInternos='".$_GET['keyClientesInternos']."' ";
$result311=mysql_db_query($basedatos,$sSQL311);
$myrow311 = mysql_fetch_array($result311);

$paciente=$myrow311['paciente'];
$numeroE=$myrow311['numeroE'];
$nCuenta=$myrow311['nCuenta'];
$keyClientesInternos=$myrow311['keyClientesInternos'];



$pdf->SetFont('Arial','B',13);
//establece el nombre del paciente
$pdf->SetFont('Arial','',10);
$pdf->SetXY(20,25);
$pdf->Cell(0,0,''.$paciente,0,0,L);
$pdf->SetXY(2,29);
$pdf->Cell(0,0,'Folio Sistema: '.$myrow311['folioVenta'],0,0,L);





$pdf->SetFont('Arial','',10);
$pdf->SetXY(2,33);
if($myrow311['seguro']){
$sSQL1= "Select nomCliente From clientes WHERE entidad='".$myrow311['entidad']."' AND numCliente = '".$myrow311['seguro']."' ";
$result1=mysql_db_query($basedatos,$sSQL1);
$myrow1 = mysql_fetch_array($result1);
$pdf->Cell(0,0,'No. Seguro: '.$myrow1['nomCliente'],0,0,L);
$pdf->AddPage();
//require("/configuracion/funciones.php");
$usuario = "omorales";
$passwd = 'wolf3333';
$servidor = 'localhost';
$basedatos = 'sima';
mysql_connect($servidor, $usuario, $passwd);
//******************************************************************
//clases fuera
if (!$_GET['particular'] and !$_GET['aseguradora']) {
    $_GET['particular'] = 'si';
    $_GET['aseguradora'] = 'si';
}
$pdf->SetFont('Arial', '', 7);
//establece el nombre del paciente
$pdf->SetXY(18, 18);
$pdf->Cell(0, 0, 'C�digo            Descripci�n', 0, 0, L);
$pdf->SetXY(50, 18);
$pdf->Cell(0, 0, $ctaMayor, 0, 0, L);
if ($_GET['particular'] == 'si') {
    $pdf->SetXY(170, 18);
    $pdf->Cell(0, 0, 'Part.', 0, 0, L);
}
if ($_GET['aseguradora'] == 'si') {
    $pdf->SetXY(182, 18);
    $pdf->Cell(0, 0, 'Aseg.', 0, 0, L);
}
$pdf->SetY(5);
$pdf->Cell(0, 0, $numeroTransaccion, 0, 0, R);
//numero de paciente
$pdf->SetXY(18, 10);
    $cant = $can;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
$sSQL311 = "Select  * From clientesInternos WHERE \r\nfolioVenta='" . $_GET['folioVenta'] . "'";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$usuario = $myrow311['usuario'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
$pdf->SetFont('Arial', '', 8);
//establece el encabezado de la empresa
$pdf->SetXY(80, 13);
//$pdf->Cell(0,0,$sSQL311,0,0,M);
$pdf->SetFont('Arial', '', 8);
$pdf->SetXY(65, 17);
//$pdf->Cell(0,0,'Camino al Vapor #201 Col. Zambrano, CP 67500, Montemorelos N.L.',0,0,M);
$pdf->SetXY(90, 20);
//$pdf->Cell(0,0,'Tel. (826)263-3188',0,0,M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 8);
$sSQL455 = "Select * from clientes where entidad='" . $_GET['entidad'] . "' \r\nand numCliente='" . $_GET['seguro'] . "'";
$result455 = mysql_db_query($basedatos, $sSQL455);
$myrow455 = mysql_fetch_array($result455);
if ($_GET['rfc']) {
    $sSQL455 = "Select * from RFC where rfc='" . $_GET['rfc'] . "'";
    $result455 = mysql_db_query($basedatos, $sSQL455);
    $myrow455 = mysql_fetch_array($result455);
function cambia_a_normal($fecha){
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha);
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1];
    return $lafecha;
}

//******************************************************************

if($seguro)$paciente=$seguro;


$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(75,5);
$pdf->Cell(0,0,'HOSPITAL LA CARLOTA',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->SetFont('Arial','',8);
$pdf->Cell(0,0,'Fecha Impresion: '.date("d/m/Y"),0,0,R);
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha);
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1];
    return $lafecha;
}

//******************************************************************

if($seguro)$paciente=$seguro;
$fechaInicial=$_GET['fechaInicial'];
$fechaFinal=$_GET['fechaFinal'];


$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'VENTAS POR VOLUMEN ',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetFont('Arial','',8);
$pdf->SetY(10);
$pdf->Cell(0,0,'Inicial: '.cambia_a_normal($fechaInicial),0,0,R);
$pdf->SetY(13);
$seguro = $myrow1['seguro'];
$numeroTransaccion = $myrow1['keyClientesInternos'];
//************devuelve seguro
$sSQL39 = "SELECT *\r\nFROM\r\nclientes\r\nwhere \r\nnumCliente='" . $seguro . "'";
$result39 = mysql_db_query($basedatos, $sSQL39);
$myrow39 = mysql_fetch_array($result39);
$seguro = $myrow39['nomCliente'];
$auxiliar = $myrow39['ID_AUXILIAR'];
$ctaMayor = $myrow39['ID_CTAMAYOR'];
//**********cierra devolver seguro
if ($seguro) {
    $paciente = $seguro;
}
$pdf->SetFont('Arial', '', 10);
//establece el nombre del paciente
$pdf->SetXY(2, 5);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA', 0, 0, M);
$pdf->SetX(1);
$pdf->SetY(5);
$pdf->Cell(0, 0, 'Num. Corte: ' . $numCorte, 0, 0, R);
//numero de paciente
$pdf->SetXY(2, 10);
$pdf->Cell(0, 0, "Diario de Caja", 0, 0, M);
$pdf->SetX(1);
$pdf->SetXY(2, 13);
$pdf->Cell(0, 0, 'Cajero(a): ' . $usuario, 0, 0, M);
$pdf->SetX(1);
//cambiar fecha
//$myrow1['fecha1']=cambia_a_normal($myrow1['fecha1']);
$fecha1 = date("d/m/Y");
$pdf->SetY(10);
$sSQL16 = "\r\n\tSELECT \r\n  sum(precioVenta) as Tabonos\r\nFROM\r\ncargosCuentaPaciente\r\nWHERE \r\nnumeroE = '" . $numeroE1 . "'\r\n and\r\n nCuenta='" . $nCuenta1 . "'\r\nand \r\nstatus='transaccion'\r\nand\r\nnaturaleza='A' \r\nand\r\ntipoCliente='particular'\r\n";
$result16 = mysql_db_query($basedatos, $sSQL16);
$myrow16 = mysql_fetch_array($result16);
$Tabonos = $myrow16['Tabonos'];
$sSQL2 = "\r\n\tSELECT \r\n  sum(precioVenta) as TCargos\r\nFROM\r\ncargosCuentaPaciente\r\nWHERE \r\nnumeroE = '" . $numeroE1 . "'\r\n and\r\n nCuenta='" . $nCuenta1 . "'\r\nand \r\nstatus='transaccion'\r\nand\r\nnaturaleza='C' \r\n\r\n";
$result2 = mysql_db_query($basedatos, $sSQL2);
$myrow2 = mysql_fetch_array($result2);
$TCargos = $myrow2['TCargos'];
$TOTAL = $myrow17['sumaCargos'] - $Tabonos + $TCargos;
$sSQL13 = "\r\n\tSELECT \r\n  sum(iva*cantidad) as sumaiva\r\nFROM\r\ncargosCuentaPaciente\r\nWHERE \r\nnumeroE = '" . $_GET['numeroE'] . "'\r\n and\r\n nCuenta='" . $_GET['nCuenta'] . "'\r\nand\r\nstatusCargo='cargado'\r\n\r\n";
$result13 = mysql_db_query($basedatos, $sSQL13);
$myrow13 = mysql_fetch_array($result13);
$iva = $myrow13['sumaiva'];
$pdf->SetFont('Arial', '', 12);
//establece el nombre del paciente
$pdf->SetXY(22, 18);
$pdf->Cell(0, 0, 'Descripci�n', 0, 0, L);
$pdf->SetXY(175, 18);
$pdf->Cell(0, 0, 'Descuento', 0, 0, L);
$pdf->Line(23, 21, 200, 21);
$pdf->SetY(5);
$pdf->Cell(0, 0, $numeroTransaccion, 0, 0, R);
//numero de paciente
$pdf->SetXY(30, 5);
$pdf->Cell(0, 0, $_GET['titulo'], 0, 0, L);
$pdf->SetX(1);
//cambiar fecha
//$myrow1['fecha1']=cambia_a_normal($myrow1['fecha1']);
$fecha1 = date("d/m/Y");
/* $pdf->SetY(10);
$pdf->Cell(0,0,$fecha1,0,0,R); */
{
    $cant = $can;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
$sSQL311 = "Select  * From clientesInternos WHERE folioVenta='" . $_GET['folioVenta'] . "'";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
$pdf->SetFont('Arial', '', 12);
//establece el encabezado de la empresa
$pdf->SetXY(80, 10);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA S.C. ', 0, 0, M);
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(65, 13);
$pdf->Cell(0, 0, 'Camino al Vapor #201 Col. Zambrano, CP 67500, Montemorelos N.L.', 0, 0, M);
$pdf->SetXY(90, 17);
$pdf->Cell(0, 0, 'Tel. (826)263-3188', 0, 0, M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 13);
$pdf->SetXY(2, 25);
$pdf->Cell(0, 0, 'Paciente: ' . $paciente, 0, 0, L);
$pdf->SetXY(2, 29);
if ($myrow311['seguro']) {
    $sSQL1 = "Select nomCliente From clientes WHERE entidad='" . $myrow311['entidad'] . "' AND numCliente = '" . $myrow311['seguro'] . "' ";
    $result1 = mysql_db_query($basedatos, $sSQL1);
    $myrow1 = mysql_fetch_array($result1);
$seguro = $myrow1['seguro'];
$numeroTransaccion = $myrow1['keyClientesInternos'];
//************devuelve seguro
$sSQL39 = "SELECT *\r\nFROM\r\nclientes\r\nwhere \r\nnumCliente='" . $seguro . "'";
$result39 = mysql_db_query($basedatos, $sSQL39);
$myrow39 = mysql_fetch_array($result39);
$seguro = $myrow39['nomCliente'];
$auxiliar = $myrow39['ID_AUXILIAR'];
$ctaMayor = $myrow39['ID_CTAMAYOR'];
//**********cierra devolver seguro
if ($seguro) {
    $paciente = $seguro;
}
$pdf->SetFont('Arial', '', 10);
//establece el nombre del paciente
$pdf->SetXY(2, 5);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA', 0, 0, M);
$pdf->SetX(1);
$pdf->SetY(5);
$pdf->Cell(0, 0, 'Num. Corte: ' . $_GET['numCorte'], 0, 0, R);
//numero de paciente
$pdf->SetXY(2, 10);
$pdf->Cell(0, 0, "Diario de Caja", 0, 0, M);
$pdf->SetX(1);
$pdf->SetXY(2, 13);
$pdf->Cell(0, 0, 'Cajero(a): ' . $usuario, 0, 0, M);
$pdf->SetX(1);
//***********************************EFECTIVO SOLAMENTE***********************************
$pdf->SetFont('Arial', '', 12);
$pdf->SetXY(1, 25);
$pdf->Cell(0, 0, 'Devoluciones', 0, 0, M);
function cambia_a_normal($fecha){ 
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'REPORTE DE VENTAS PX INTERNOS',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,'De la fecha: '.cambia_a_normal($_GET['fechaInicial']).' a la fecha: '.cambia_a_normal($_GET['fechaFinal']),0,0,R);

{
    $cant = $can;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
$sSQL311 = "Select  * From clientesInternos WHERE keyClientesInternos='" . $_GET['keyClientesInternos'] . "'";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
$pdf->SetFont('Arial', '', 12);
//establece el encabezado de la empresa
$pdf->SetXY(80, 13);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA S.C. ', 0, 0, M);
$pdf->SetFont('Arial', '', 8);
$pdf->SetXY(65, 17);
$pdf->Cell(0, 0, 'Camino al Vapor #201 Col. Zambrano, CP 67500, Montemorelos N.L.', 0, 0, M);
$pdf->SetXY(90, 20);
$pdf->Cell(0, 0, 'Tel. (826)263-3188', 0, 0, M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(22, 25);
$pdf->Cell(0, 0, 'Paciente: ' . $paciente, 0, 0, L);
$pdf->SetXY(22, 29);
if ($myrow311['seguro']) {
    $sSQL1 = "Select nomCliente From clientes WHERE entidad='" . $myrow311['entidad'] . "' AND numCliente = '" . $myrow311['seguro'] . "' ";
    $result1 = mysql_db_query($basedatos, $sSQL1);
    $myrow1 = mysql_fetch_array($result1);
Example #20
0
$pdf = new PDF_AutoPrint("P", 'mm', "A4");
$pdf->SetThaiFont();
// �絿͹��
$pdf->SetAutoPageBreak(false, 0);
$pdf->SetMargins(0, 0);
$pdf->SetTopMargin(2);
$pdf->AddPage();
$pdf->SetFont('THSarabun');
// ���¡��ҹ�͹������������
$pdf->SetFontSize(17);
$pdf->Cell(0, 4, "�ͧ/Ἱ�/��ǹ �ٹ��������  �͡��������Ţ FR-IPC-001/3  ��䢤��駷�� 00  �ѹ����ռźѧ�Ѻ�� 28 �.�.44", 0, 1, "C");
$pdf->SetFontSize(30);
$pdf->Cell(0, 10, "㺨ͧ��§", 0, 1, "C");
$pdf->SetFontSize(23);
$pdf->Cell(0, 8, "�ç��Һ�Ť�������ѡ�������� �.���ͧ �.�ӻҧ", 0, 1, "C");
$pdf->SetXY(0, 26);
$pdf->Cell(30, 6, "����-ʡ��", 0, 1);
$pdf->SetXY(30, 26);
$pdf->Cell(60, 6, $dbarr['ptname'], 0, 1);
$pdf->SetXY(90, 26);
$pdf->Cell(40, 6, "����", 0, 1);
$pdf->SetXY(130, 26);
$pdf->Cell(80, 6, $age, 0, 1);
$pdf->SetXY(0, 34);
$pdf->Cell(30, 6, "HN", 0, 1);
$pdf->SetXY(30, 34);
$pdf->Cell(60, 6, $dbarr['hn'], 0, 1);
$pdf->SetXY(90, 34);
$pdf->Cell(40, 6, "�Ѻ���������", 0, 1);
$pdf->SetXY(130, 34);
$pdf->Cell(80, 6, $dbarr['date_in'], 0, 1);
Example #21
0
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
//*******************DATOS FISCALES******************
$sSQL2df = "Select * From datosFiscalesEntidades \r\nWHERE entidad='" . $_GET['entidad'] . "'   ";
$result2df = mysql_db_query($basedatos, $sSQL2df);
$myrow2df = mysql_fetch_array($result2df);
//***************************************************
//$pdf->SetFont('Arial','B',13);
$pdf->SetFont('Arial', 'B', 11);
//establece el encabezado de la empresa
//$pdf->SetXY(75,11);
$pdf->SetXY(1, 2);
$pdf->Cell(0, 0, $myrow2df['razonSocial'], 0, 0, M);
//rfc
//$pdf->SetXY(75,11);
$pdf->SetFont('Arial', 'I', 7);
$pdf->SetXY(1, 6);
$pdf->Cell(0, 0, $myrow2df['RFC'], 0, 0, M);
//$pdf->SetFont('Arial','I',11);
$pdf->SetFont('Arial', 'I', 7);
//$pdf->SetXY(54,15);
$pdf->SetXY(1, 9);
$pdf->Cell(0, 0, $myrow2df['calle'] . ', ' . $myrow2df['colonia'] . ', ' . $myrow2df['ciudad'] . ', ' . $myrow2df['estado'], 0, 0, M);
//$pdf->SetXY(80,19);
$pdf->SetXY(1, 12);
$pdf->Cell(0, 0, $myrow2df['cp'] . ' - Tel. (826)263.3188', 0, 0, M);
//establece el nombre del paciente
function cambia_a_normal($fecha){ 
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(4,5);
$pdf->Cell(0,0,'BENEFICENCIAS',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=date("d-M-Y");
$pdf->SetY(10);
$pdf->Cell(0,0,$fecha1,0,0,R);

    $cant = $can;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
$sSQL311 = "Select  * From clientesInternos WHERE folioVenta='" . $_GET['folioVenta'] . "'";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$usuario = $myrow311['usuario'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
$pdf->SetFont('Arial', '', 8);
//establece el encabezado de la empresa
$pdf->SetXY(80, 13);
//$pdf->Cell(0,0,$sSQL311,0,0,M);
$pdf->SetFont('Arial', '', 8);
$pdf->SetXY(65, 17);
//$pdf->Cell(0,0,'Camino al Vapor #201 Col. Zambrano, CP 67500, Montemorelos N.L.',0,0,M);
$pdf->SetXY(90, 20);
//$pdf->Cell(0,0,'Tel. (826)263-3188',0,0,M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 8);
$sSQL455 = "Select * from clientes where entidad='" . $_GET['entidad'] . "' and numCliente='" . $_GET['seguro'] . "'";
$result455 = mysql_db_query($basedatos, $sSQL455);
$myrow455 = mysql_fetch_array($result455);
if ($_GET['rfc']) {
    $sSQL455 = "Select * from RFC where rfc='" . $_GET['rfc'] . "'";
    $result455 = mysql_db_query($basedatos, $sSQL455);
    $myrow455 = mysql_fetch_array($result455);
function cambia_a_normal($fecha){ 
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'MOVIMIENTOS DE CAJA',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,cambia_a_normal($fecha1),0,0,R);

function cambia_a_normal($fecha){ 
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'HONORARIOS MEDICOS',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=date("d-M-Y");
$pdf->SetY(10);
$pdf->Cell(0,0,$fecha1,0,0,R);

Example #26
0
     $x2 = 58;
     $x3 = 68;
     $x4 = 78;
     $x5 = 87;
 } elseif ($row_i >= 18 && $row_i <= 34) {
     // ����� column �����ͨ����� X ������
     $x1 = 93;
     $x2 = 143;
     $x3 = 153;
     $x4 = 163;
     $x5 = 172;
 }
 if (isset($full_items[$i])) {
     ++$item_i;
     $item = $full_items[$i];
     $pdf->SetXY($x1, $y_start);
     $pdf->Cell(50, $line_height, $item['tradename'], 1, 1, 'L');
     $pdf->SetXY($x2, $y_start);
     $pdf->Cell(10, $line_height, $item['num'], 1, 1, 'R');
 } else {
     $pdf->Rect($x1, $y_start, 50, $line_height);
     //��¡��
     $pdf->Rect($x2, $y_start, 10, $line_height);
     //�ӹǹ�ԡ
 }
 // �����ͧ��ҹ��Ңͧ���� column �繤����ҧ
 $pdf->Rect($x3, $y_start, 10, $line_height);
 //���¨�ԧ
 $pdf->Rect($x4, $y_start, 9, $line_height);
 //���Թ(�ҷ)
 $pdf->Rect($x5, $y_start, 6, $line_height);
$basedatos = $base->basedatos();
$conexionManual = new MYSQL();
$conexionManual->conecta();
function cambia_a_normal($fecha)
{
    ereg("([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha);
    $lafecha = $mifecha[3] . "/" . $mifecha[2] . "/" . $mifecha[1];
    return $lafecha;
}
//******************************************************************
if ($seguro) {
    $paciente = $seguro;
}
$pdf->SetFont('Arial', '', 10);
//establece el nombre del paciente
$pdf->SetXY(2, 5);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA', 0, 0, M);
$pdf->SetX(1);
//*****************ech*************
//$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0, 0, 'Solicitud: ' . $_GET['numSolicitud'], 0, 0, R);
$pdf->SetXY(2, 10);
$pdf->Cell(0, 0, 'SOLICITUD DIRECTA DEL PACIENTE: ' . $_GET['paciente'], 0, 0, M);
$pdf->SetX(1);
//Usuario
$pdf->SetXY(2, 13);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 0, 'Usuario Cargo: ' . $_GET['usuarioCargo'], 0, 0, L);
$pdf->SetXY(2, 16);
$pdf->SetFont('Arial', '', 8);
Example #28
0
	$data = array(':hn_patient' => $cHn);
	$db->select($sql, $data);
	$item = $db->get_item();


	$pdf = new PDF_AutoPrint("P",'mm', "A4");
	$pdf->SetThaiFont(); // à«çµ¿Í¹µì
	$pdf->SetAutoPageBreak(false, 0);
	$pdf->SetMargins(0, 0);
	$pdf->SetTopMargin(2);
	$pdf->AddPage();
	$pdf->SetFont('THSarabun'); // àÃÕ¡ãªé§Ò¹¿Í¹µì·ÕèàµÃÕÂÁäÇé

	$pdf->SetFontSize(17);

	$pdf->SetXY(185, 7);
	$pdf->Cell(10, 6, $item['no_card'],0,1);

	$pdf->SetXY(45, 19);
	$pdf->Cell(40, 6, $item['hn'],0,1);

	$pdf->SetXY(110, 19);
	$pdf->Cell(100, 6, $item['yot'].' '.$item['name'].' '.$item['surname'],0,1);

	$pdf->SetXY(45, 27);
	$pdf->Cell(0, 6, "Ç/´/» à¡Ô´: ".$item['dbirth']." ID: ".$item['idcard']." ÊÔ·¸Ô: ".$item['ptright'],0,1);

	$pdf->AutoPrint(true);
	$pdf->Output();
	exit;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
//aqui estoy
//$_GET['keyClientesInternos']='22822';
$sSQL311 = "Select  * From clientesInternos WHERE keyClientesInternos='" . $_GET['keyClientesInternos'] . "' ";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
$pdf->SetFont('Arial', 'B', 13);
//establece el encabezado de la empresa
$pdf->SetXY(75, 11);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA S.C. ', 0, 0, M);
$pdf->SetFont('Arial', 'I', 11);
$pdf->SetXY(54, 15);
$pdf->Cell(0, 0, 'Camino al Vapor #209 Col. Zambrano, Montemorelos N.L.', 0, 0, M);
$pdf->SetXY(80, 19);
$pdf->Cell(0, 0, 'CP 67500 - Tel. (826)263.3188', 0, 0, M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(2, 25);
$pdf->Cell(0, 0, 'Paciente: ' . $paciente, 0, 0, L);
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(2, 29);
if ($myrow311['seguro']) {
    $sSQL1 = "Select nomCliente From clientes WHERE entidad='" . $myrow311['entidad'] . "' AND numCliente = '" . $myrow311['seguro'] . "' ";
    $result1 = mysql_db_query($basedatos, $sSQL1);
{
    $cant = $can;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
$sSQL311 = "Select  * From clientesInternos WHERE keyClientesInternos='" . $_GET['keyClientesInternos'] . "'";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
$pdf->SetFont('Arial', 'B', 13);
//establece el encabezado de la empresa
$pdf->SetXY(75, 9);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA S.C. ', 0, 0, M);
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetXY(65, 13);
$pdf->Cell(0, 0, 'Camino al Vapor #209 Col. Zambrano, Montemorelos N.L.', 0, 0, M);
$pdf->SetXY(84, 17);
$pdf->Cell(0, 0, 'CP 67500 - Tel. (826)263.3188', 0, 0, M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(2, 25);
$pdf->Cell(0, 0, 'Paciente: ' . $paciente, 0, 0, L);
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(2, 29);
if ($myrow311['seguro']) {
    $sSQL1 = "Select nomCliente From clientes WHERE entidad='" . $myrow311['entidad'] . "' AND numCliente = '" . $myrow311['seguro'] . "' ";
    $result1 = mysql_db_query($basedatos, $sSQL1);