Пример #1
0
     $pdf->rollbackTransaction(true);
     $pdf->AddPage();
     $pdf->setY(56);
     $r = 1;
 }
 $pdf->SetFont('helvetica', '', 10);
 //body font
 if ($r) {
     $pdf->Cell(20, 8, $k, 0, 0, 'C');
     ///print serial no
 } else {
     $pdf->Cell(20, 8, '', 0, 0, 'C');
     //no serial no
 }
 $part = new Part();
 $part->setPartID($dq_list[$j][0]);
 $part->setPartDetails();
 $pdf->MultiCell(80, 8, $part->getPartName() . " " . $part->getDrawingNO() . ' Rev No: ' . $part->getPartRevision(), 0, 'L', 0, 0, '', '', true, 0, false, true, 8, 'M', true);
 //part name and drawing no
 $pdf->Cell(35, 8, $dq_list[$j][1], 0, 0, 'C');
 //total quantity
 $pdf->Cell(50, 8, $dq_list[$j][2], 0, 1, 'L');
 //remarks for each part
 ///print material receipt details
 if ($cqr_list[$j][0] != '') {
     $t = 0;
     while ($t < $dq_list[$j][1]) {
         $t += $cqr_list[$l][2];
         $pdf->SetFont('helvetica', 'I', 8);
         //body font
         $pma = new PartMaterial();
Пример #2
0
     $pshtbkp = '';
 }
 //backup process sheets is checked
 if (isset($_POST['draw'])) {
     $draw = $_POST['draw'];
 } else {
     $draw = '';
 }
 //delete drawings is checked
 if (isset($_POST['psht'])) {
     $psht = $_POST['psht'];
 } else {
     $psht = '';
 }
 //delete process sheets is checked
 $part->setPartID($partid);
 $part->setCustomerID($_POST['Customer_ID']);
 $part->setPartName($_POST['partname']);
 $part->setDrawingNo($_POST['drawingno']);
 $part->setPartNO($_POST['partno']);
 $part->setValue('drawingrevision', $_POST['drawingrevision']);
 $part->setCustomerDrawingNo($_POST['custdrwinggno']);
 $part->setPartMaterial($_POST['partmaterial']);
 $part->setPartSize($_POST['partsize']);
 $part->setMaterialCode($_POST['materialcode']);
 $part->setPreMachSize($_POST['premachinedsize']);
 $part->setFinishSize($_POST['finishsize']);
 $part->setScrapeWeight($_POST['scrapeweight']);
 $part->setHidePart($_POST['hidepart']);
 $part->savePart($partid);
 if ($pimg != '') {