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


PHP Stock::retriveStockGroupUnderInfo方法代码示例

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


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

示例1: Stock

<?php

require_once "../lib/stock.class.php";
$Stock = new Stock();
$Data = $Stock->retriveStockGroupUnderInfo();
?>

<form action="reports/group_issue_report_print.php" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td height="64" align="center" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" valign="top"><table width="70%" height="110" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="44%" align="right" valign="top">Stock Group Name : </td>
        <td width="3%" align="left" valign="top">&nbsp;</td>
        <td width="53%" align="left" valign="top"><label>
          <select name="group_issue_name" id="group_issue_name" style="width:150px;">
		  <?php 
for ($i = 0; $i < count($Data); $i++) {
    ?>
            <option value="<?php 
    echo $Data[$i]['stock_group_id'];
    ?>
"><?php 
    echo $Data[$i]['stock_group_name'];
    ?>
开发者ID:rajibahmed,项目名称:IIMS,代码行数:31,代码来源:group_issue_report.php

示例2: 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

示例3: Stock

<?php

require_once "../../lib/stock.class.php";
$objStockGroupInfo = new Stock();
//get a new id
$StockGrpId = $objStockGroupInfo->getNewStockGrpId();
/////////////////////////////
$StkGrpName = $_POST['txtStkGrpName'];
$stock_group_parent_id = $_POST['grpID'];
$getData = "'{$StockGrpId}','{$StkGrpName}','{$stock_group_parent_id}'";
/// Check Duplicate Stock Grp ///
$grpData = $objStockGroupInfo->retriveStockGroupUnderInfo();
$duplicateGrp = '';
for ($i = 0; $i < count($grpData); $i++) {
    if ($StkGrpName == $grpData[$i]["stock_group_name"]) {
        echo "<b>Duplicate Group Name<b>";
        $duplicateGrp = 1;
    }
}
/////////////////////////////////////
if ($duplicateGrp != 1) {
    $objStockGroupInfo->CreateStockGroup($getData);
    echo "<b>Data Save Successsfull<b>";
}
include '../contents/ca_create_stock_group.php';
?>
	
开发者ID:rajibahmed,项目名称:IIMS,代码行数:26,代码来源:stock_group_actions.php


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