本文整理汇总了PHP中Stock::retriveLocation方法的典型用法代码示例。如果您正苦于以下问题:PHP Stock::retriveLocation方法的具体用法?PHP Stock::retriveLocation怎么用?PHP Stock::retriveLocation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stock
的用法示例。
在下文中一共展示了Stock::retriveLocation方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Stock
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>
<td>Name</td>
<td><input name="stkName" type="text" class="inventori_txtfield" id="stkName"></td>
</tr>
<tr>
<td>Code</td>
<td><input name="txtStkcode" type="text" class="inventori_txtfield" id="txtStkcode" <?php
示例2: generate_timestamp
<?php
require_once '../../lib/defination.class.php';
include '../../lib/supplier.class.php';
include '../../lib/stock.class.php';
include '../../lib/purchaseOrder.class.php';
include '../../lib/mrr.class.php';
$stock = new Stock();
$MRR = new MRR();
$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);
$Purchase = new Purchaseorder();
$outputPurchaseorder = options_for_select($Purchase->RetrivePurchaseOrder(), 'pm_id', 'pm_no', true);
$locations = options_for_select($stock->retriveLocation(), 'stock_location_id', 'stock_location_name');
$num = $MRR->getNewId();
?>
<link href="../../css/stylesheet.css" rel="stylesheet" type="text/css" />
<div id="note"> </div>
<form id="mrrForm" name="mrrForm" method="post" action="includes/model/mrr_order_actions.php" >
<div class='morelabel'>
<p>
<label>MRR # </label>
<input type="text" disabled value="<?php
echo generate_timestamp('MRR', $num);
?>
" />
示例3: addFormField
<?php
require_once "../../lib/stock.class.php";
$objStockLocationInfo = new Stock();
$StockLocationInfo = $objStockLocationInfo->retriveLocation();
$rowStockLocation = count($StockLocationInfo);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">
function addFormField() {
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="../../css/stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--<p><a href="#" onClick="addFormField(); return false;">Add</a></p>
<form action="" method="get">
<input type=hidden id='id' value='1'>
<div id="divTxt"></div>
<input type='submit' value='Submit' name='submit'>
</form>-->
<div id="test">
示例4: Supplier
$stock_item_id = $rawItemByID[0]['stock_item_id'];
$StockGroupId = $rawItemByID[0]['stock_item_grp_id'];
$StockUnitId = $rawItemByID[0]['stock_item_unit_id'];
$StockAltUnitId = $rawItemByID[0]['stock_alt_unit'];
$date = $rawItemByID[0]['date'];
$lc = $rawItemByID[0]['lc'];
$supplier = $rawItemByID[0]['supplier'];
$qa = $rawItemByID[0]['qa'];
$locationId = $rawItemByID[0]['location'];
$lot = $rawItemByID[0]['lot'];
//// Retrive Stock Group Name
$StockGrpInfo = $objStockGroupInfo->retriveStockGroupUnderInfo();
$StockGrpInfo_options = options_for_select($StockGrpInfo, 'stock_group_id', 'stock_group_name', true, $StockGroupId);
//// Retrive Stock Unit Name
$unitName = options_for_select($stock->retriveStockUnit(), 'stock_item_unit_id', 'stock_item_unit_name', true, $StockUnitId);
$location_info = options_for_select($stock->retriveLocation(), 'stock_location_name', 'stock_location_name', true, $locationId);
$Supplier = new Supplier();
$outputSupplierItem = options_for_select($Supplier->retriveSupplierInfo(), 'sup_name', 'sup_name', true, $supplier);
$LC = new LC();
$outputLC = options_for_select($LC->retriveLcInfo(), 'lc_name', 'lc_name', true, $lc);
$Lot = new Lot();
$outputLot = options_for_select($Lot->retriveLotInfo(), 'lot_name', 'lot_name', true, $lot);
/////////////////////////////////
$allStockItemUnit = $objStockGroupInfo->retriveStockUnit();
$rowStockItemUnit = count($allStockItemUnit);
?>
<div id="test">