本文整理匯總了PHP中QC::getNewId方法的典型用法代碼示例。如果您正苦於以下問題:PHP QC::getNewId方法的具體用法?PHP QC::getNewId怎麽用?PHP QC::getNewId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類QC
的用法示例。
在下文中一共展示了QC::getNewId方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: generate_timestamp
require_once '../../lib/defination.class.php';
include '../../lib/supplier.class.php';
include '../../lib/stock.class.php';
include '../../lib/qc.class.php';
include '../../lib/mrr.class.php';
$stock = new Stock();
$QC = new QC();
$output = options_for_select($stock->retriveStockItem(), 'stock_item_id', 'stock_item_name');
// get suppliers info for combo box;
$Supplier = new Supplier();
$outputSupplierItem = options_for_select($Supplier->retriveSupplierInfo(), 'sup_id', 'sup_name', true);
$MRR = new MRR();
$outputMRRtNo = options_for_select($MRR->retriveMRRInfo(), 'mrr_id', 'mrr_number', true);
$locations = options_for_select($stock->retriveLocation(), 'stock_location_id', 'stock_location_name');
$num = $QC->getNewId();
?>
<div id="note"> </div>
<form id="mrrForm" name="mrrForm" method="post" action="includes/model/qc_order_actions.php" >
<div class='morelabel'>
<p>
<label>QC # </label>
<input type="text" disabled value="<?php
echo generate_timestamp('QC', $num);
?>
" />
<input type="hidden" name="qc_num"
value="<?php