本文整理匯總了PHP中Batch::setBatchRemarks方法的典型用法代碼示例。如果您正苦於以下問題:PHP Batch::setBatchRemarks方法的具體用法?PHP Batch::setBatchRemarks怎麽用?PHP Batch::setBatchRemarks使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Batch
的用法示例。
在下文中一共展示了Batch::setBatchRemarks方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Batch
<?php
require_once 'autoload.php';
$bn = new Batch();
if (isset($_POST['mqty'])) {
//print_r($_POST);
if (isset($_POST['Drawing_ID'])) {
$drawingid = $_POST['Drawing_ID'];
} else {
$drawingid = $_POST['drawing'];
}
$bn->setPartID($drawingid);
$totalbqty = $_POST['totalbqty'];
///total quantity in batch
if (isset($_POST['Batch_Remarks'])) {
$bn->setBatchRemarks($_POST['Batch_Remarks']);
}
if (isset($_POST['Batch_Desc'])) {
$Batch_Desc = $_POST['Batch_Desc'];
} else {
$Batch_Desc = '';
}
if ($Batch_Desc == '') {
date_default_timezone_set('Asia/Kolkata');
$p = new Part();
$p->setValue('partid', $drawingid);
$p->setPartDetails();
$pr = $p->getValue('partrevision');
$Batch_Desc = $drawingid . "-" . date("Y") . "-" . date("m") . "-" . date("d") . "-" . $totalbqty . '-' . $pr;
echo $p->getValue('partrevision');
}