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


PHP Stock::retriveStockUnit方法代碼示例

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


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

示例1: Stock

<?php

require_once '../../lib/defination.class.php';
require_once "../../lib/stock.class.php";
require_once '../../lib/defination.class.php';
include '../../lib/supplier.class.php';
include '../../lib/lc.class.php';
include '../../lib/lot.class.php';
//// Retrive Stock Group Name
$objStockGroupInfo = new Stock();
$stock = new Stock();
$StockGrpInfo = $objStockGroupInfo->retriveStockGroupUnderInfo();
$StockGrpInfo_options = options_for_select($StockGrpInfo, 'stock_group_name', 'stock_group_name', true);
//// Retrive Stock Unit Name
$unitName = options_for_select($stock->retriveStockUnit(), 'stock_item_unit_name', 'stock_item_unit_name', true);
$Supplier = new Supplier();
$outputSupplierItem = options_for_select($Supplier->retriveSupplierInfo(), 'sup_name', 'sup_name', true);
$LC = new LC();
$outputLC = options_for_select($LC->retriveLcInfo(), 'lc_name', 'lc_name', true);
$Lot = new Lot();
$outputLot = options_for_select($Lot->retriveLotInfo(), 'lot_name', 'lot_name', true);
$StockLocationInfo = $stock->retriveLocation();
$rowStockLocation = count($StockLocationInfo);
/////////////////////////////////
@session_start();
$user_level = $_SESSION[user_level];
?>

<div id="test">
<form  id="CreateStockItem" name="CreateStockItem" method="post"   action="includes/model/raw_item_actions.php"><table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
開發者ID:rajibahmed,項目名稱:IIMS,代碼行數:31,代碼來源:create_raw_item.php

示例2: Stock

<?php

require_once "../../../lib/stock.class.php";
$objUnitListAll = new Stock();
$StockUnitListAll = $objUnitListAll->retriveStockUnit();
$rowUnitListAll = count($StockUnitListAll);
?>


<body>
<table width="100%" border="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="right"><a class="thickbox" href="includes/contents/ca_create_unit.php?height=200&width=500" title="Unit" >Back</a></td>
  </tr>
  <tr>
    <td width="205"><b>Unit Name</b></td>
    <td width="220"><b>Formal Name</b></td>
    <td width="243"><b>Decimal Places</b></td>
    <td width="120">&nbsp;</td>
  </tr>
<?php 
for ($i = 0; $i < $rowUnitListAll; $i++) {
    if ($i % 2 == 0) {
        $bgc = "#F7F7F7";
    } else {
        $bgc = "#F1F1F1";
    }
    ?>
開發者ID:rajibahmed,項目名稱:IIMS,代碼行數:31,代碼來源:list_all_measurment_unit.php


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