Exemplo n.º 1
0
         $this->MultiCell(70, 6, 'Part: ' . $cname, 1, 'L', 0, 0, '', '', true, 0, false, true, 6, 'M', true);
         $this->Cell(128, 6, 'Batch Remarks' . $bremark, 1, 1, 'L');
         $this->Cell(70, 6, 'P.O NO & Date: ', 1, 0, 'L');
         $this->Cell(128, 6, 'DEW Batch NO: ' . $batchdesc . '   Batch Qty: ' . $bqty, 1, 1, 'L');
         $this->Cell(198, 6, 'Heat Codes: ' . $heatcode, 1, 1, 'L');
     }
     function Footer()
     {
         $this->SetFont('helvetica', '', 16);
         // Page number
         $this->SetY(-10);
         $this->SetFont('helvetica', '', 6);
         $this->Cell(0, 10, 'Page ' . $this->PageNo(), 0, 0, 'C');
     }
 }
 $pdf = new PDF_SKN(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
 //$pdf->AliasNbPages();
 $pdf->setAutoPageBreak(1, 25);
 $pdf->SetMargins(5, 42, 10, 29);
 $pdf->AddPage('P', 'A4');
 $pdf->SetFont('helvetica', '', 10);
 $pdf->setY(35);
 $pdf->SetTextColor(27, 12, 235);
 $pdf->Cell(198, 6, 'Material Inward Details', 1, 1, 'C');
 $pdf->SetTextColor(0, 1, 0);
 $pdf->Cell(68, 6, 'Challan No', 'LRTB', 0, 'C');
 $pdf->Cell(65, 6, 'Challan Date', 'LRTB', 0, 'C');
 $pdf->Cell(65, 6, 'Quantity In Batch', 'LRTB', 1, 'C');
 $i = 0;
 $cno = $rou->getValue('challanno');
 $cdt = $rou->getValue('challandate');
Exemplo n.º 2
0
            $this->Cell(80, 18, 'Divya Engineering Works (P) Ltd, Mysore', 1, 0, 'C');
            $this->Cell(60, 18, 'Quality Plan', 1, 0, 'C');
            $this->SetFont('helvetica', '', 10);
            $this->Cell(58, 6, 'Record Format REF: DEW-QA-R-03', 'T R B', 2, 'L');
            $this->Cell(58, 6, 'DATE: 01-12-2015', 'R B', 2, 'L');
            $this->Cell(58, 6, 'REV NO: 00', 'B R', 0, 'L');
            $this->ln();
            $this->Cell(80, 6, 'ITEM: ' . $cname, 'L T R B', 0, 'L');
            $this->MultiCell(118, 6, 'Drg No/Rev No: ' . $partno, 1, 'L', 0, 0, '', '', true, 0, false, true, 6, 'M', true);
        }
        function Footer()
        {
            $this->SetY(-10);
            $this->SetFont('helvetica', '', 6);
            $this->Cell(0, 10, 'Page' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, 0, 'C');
        }
    }
    $pdf = new PDF_SKN(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
    $pdf->setAutoPageBreak(1, 20);
    $pdf->SetTopMargin(25);
    $pdf->AddPage('P', 'A4');
    $pdf->SetFont('helvetica', '', 10);
    $dimn->setValue('drawingid', $drawingid);
    $dimn->showQualityPlan($pdf);
    $pdfname = $pdfpath . $drawingid . '-QP.pdf';
    ob_start();
    //header('Content-Type: application/pdf');
    //header('Content-Disposition: attachment; filename="$pdfname"');
    $pdf->Output($pdfname, 'F');
    ob_end_flush();
}
Exemplo n.º 3
0
            $this->Cell(140, 10, "Verified By: U.S", '0', 1, 'L');
            // Page number
            $this->SetY(-10);
            $this->SetFont('helvetica', '', 6);
            $this->Cell(0, 10, 'Page' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, 0, 'C');
        }
    }
    $jobno = array_values($jobnos);
    $bnos = array_values($bnos);
    $dr->setValue('reportjobnos', $jobno);
    $dr->setValue('baloonnos', $bnos);
    $dr->setValue('batchid', $batchid);
    $dr->setValue('opedrawingid', $opedrawingid);
    $dr->getDimensionsforOperation();
    $dr->filterJobDimensions();
    $pdf = new PDF_SKN(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
    $pdf->setAutoPageBreak(0, 35);
    $pdf->AddPage('L', 'A4');
    $pdf->SetFont('helvetica', '', 10);
    $dr->generatePDF($pdf);
    if ($opid != '') {
        $pdfname = $opid . '.pdf';
    } else {
        $pdfname = $drawingid . '.pdf';
    }
    ob_start();
    $pdf->Output($pdfname, 'D');
    ob_end_flush();
} else {
    if (isset($_POST['fair'])) {
        //	print_r($_POST);
Exemplo n.º 4
0
            $this->Cell(73, 20, 'Corrective / Preventive Action Report', 1, 0, 'C');
            $this->SetFont('helvetica', '', 10);
            $this->Cell(50, 5, ' Rec. For REF: DEW-QA-R-12', 'TBR', 2, 'L');
            $this->Cell(50, 5, ' Rev No : A', 'BR', 2, 'L');
            $this->Cell(50, 5, ' Issue Date: 31-12-2015', 'BR', 2, 'L');
            $this->Cell(50, 5, ' NC Report ID: ' . $nclid, 'B R', 0, 'L');
            $this->ln();
        }
        function Footer()
        {
            $this->SetY(-10);
            $this->SetFont('helvetica', '', 6);
            $this->Cell(0, 10, 'Page' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, 0, 'C');
        }
    }
    $pdf = new PDF_SKN(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
    $pdf->setAutoPageBreak(1, 25);
    $pdf->SetTopMargin(25);
    $pdf->AddPage('P', 'A4');
    $pdf->SetFont('helvetica', '', 10);
    $pdf->SetY(25);
    $nc->showNCLog($pdf);
    $pdfname = $nclid . '.pdf';
    ob_start();
    $pdf->Output($pdfname, 'D');
    ob_end_flush();
} else {
    if (isset($_GET['nclid'])) {
        $nc->setValue('nonconformanceid', $_GET['nclid']);
        $nc->setValue('showall', '1');
        $nc->showNCLog();