本文整理汇总了PHP中Part::setPartID方法的典型用法代码示例。如果您正苦于以下问题:PHP Part::setPartID方法的具体用法?PHP Part::setPartID怎么用?PHP Part::setPartID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Part
的用法示例。
在下文中一共展示了Part::setPartID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Part
$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:
$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 != '') {