当前位置: 首页>>代码示例>>PHP>>正文


PHP Inventory::getLotQuantity方法代码示例

本文整理汇总了PHP中Inventory::getLotQuantity方法的典型用法代码示例。如果您正苦于以下问题:PHP Inventory::getLotQuantity方法的具体用法?PHP Inventory::getLotQuantity怎么用?PHP Inventory::getLotQuantity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Inventory的用法示例。


在下文中一共展示了Inventory::getLotQuantity方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

</th>
                       
		</tr>
	</thead>
<?php 
$stocks_list = Inventory::getStocksList($lid, $r_id);
foreach ($stocks_list as $stock) {
    ?>
  <tbody>
		<tr align='center'>
			<td><?php 
    echo $stock['lot'];
    ?>
</td>
			<td><?php 
    echo Inventory::getLotQuantity($lid, $r_id, $stock['lot']);
    ?>
</td>
			<td><?php 
    $uni = $reag['unit'];
    if ($uni == '') {
        echo "units";
    } else {
        echo $uni;
    }
    ?>
                        </td>
                        <td><?php 
    $dp = explode("-", $stock['expiry_date']);
    $e_date = $dp[2] . "/" . $dp[1] . "/" . $dp[0];
    echo $e_date;
开发者ID:caseyi,项目名称:BLIS,代码行数:31,代码来源:stock_lots.php

示例2:

<?php

include "../includes/db_lib.php";
$id = $_REQUEST['id'];
$lid = $_REQUEST['lid'];
$lot = $_REQUEST['lot'];
$unit = Inventory::getLotQuantity($lid, $id, $lot);
if ($unit == '') {
    echo "0";
} else {
    echo $unit;
}
开发者ID:jfurlong,项目名称:BLIS,代码行数:12,代码来源:get_reagent_quantity.php

示例3: 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::getLotQuantity方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。