當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Inventory::getStocksList方法代碼示例

本文整理匯總了PHP中Inventory::getStocksList方法的典型用法代碼示例。如果您正苦於以下問題:PHP Inventory::getStocksList方法的具體用法?PHP Inventory::getStocksList怎麽用?PHP Inventory::getStocksList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Inventory的用法示例。


在下文中一共展示了Inventory::getStocksList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

</th>
                        <th> <?php 
echo LangUtil::$pageTerms['Remarks'];
?>
</th>
                        <th><?php 
echo "Update";
?>
</th>
                       
		</tr>
	</thead>
<?php 
$r_id = $_REQUEST['id'];
$lid = $_SESSION['$lab_config_id'];
$stocks_list = Inventory::getStocksList($lid, $r_id);
foreach ($stocks_list as $stock) {
    ?>
  <tbody>
		<tr>
			<td><?php 
    echo $stock['lot'];
    ?>
</td>
			<td><?php 
    ?>
</td>
			<td><?php 
    $uni = $reagent['unit'];
    if ($uni == '') {
        echo "units";
開發者ID:jfurlong,項目名稱:BLIS,代碼行數:31,代碼來源:stock_list.php

示例2: get_stock_lots

 public function get_stock_lots($r_id)
 {
     if ($_SESSION['level'] < 2 || $_SESSION['level'] > 4) {
         $user = get_user_by_id($_SESSION['user_id']);
         $lid = $user->labConfigId;
     }
     if ($lid == null) {
         $lid = get_lab_config_id_admin($_SESSION['user_id']);
     }
     $stocks_list = Inventory::getStocksList($lid, $r_id);
     $cc = 1;
     foreach ($stocks_list as $stock) {
         $quant = Inventory::getQuantity($lid, $reagent['id']);
         // $uni = $reagent['unit'];
         $spec[$cc]['id'] = $stock['id'];
         $spec[$cc]['lot'] = $stock['lot'];
         $spec[$cc]['manufacturer'] = $stock['manufacturer'];
         $spec[$cc]['supplier'] = $stock['supplier'];
         $spec[$cc]['date_of_reception'] = $stock['date_of_reception'];
         $spec[$cc]['remarks'] = $stock['remarks'];
         $dp = explode("-", $stock['expiry_date']);
         $e_date = $dp[2] . "/" . $dp[1] . "/" . $dp[0];
         $spec[$cc]['expiry_date'] = $e_date;
         $spec[$cc]['current_quantity'] = Inventory::getLotQuantity($lid, $r_id, $stock['lot']);
         $spec[$cc]['quantity_supplied'] = $stock['quantity_suppied'];
         $cc++;
     }
     //$spec = get_specimen_by_id($specimen_id);
     if (count($spec) > 0) {
         $ret = $spec;
     } else {
         $ret = 0;
     }
     return $ret;
 }
開發者ID:caseyi,項目名稱:BLIS,代碼行數:35,代碼來源:db_lib.php


注:本文中的Inventory::getStocksList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。