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


PHP Stock::retriveStockDepartmentInfo方法代码示例

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


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

示例1: Stock

<?php

require_once "../../../lib/stock.class.php";
$stk_depart_id = $_GET['stk_depart_id'];
$objStockDeptInfo = new Stock();
$StockDeptInfo = $objStockDeptInfo->retriveStockDepartmentInfo();
// call function through obj name  Exp   objname->functionName
$rowStockdept = count($StockDeptInfo);
$StockDepartById = $objStockDeptInfo->retriveStockDepartById($stk_depart_id);
$rowStockDepartById = count($StockDepartById);
for ($j = 0; $j < $rowStockDepartById; $j++) {
    $stock_department_name = $StockDepartById[$j]['stock_dept_name'];
    $stock_department_p_id = $StockDepartById[$j]['stock_dept_p_id'];
}
?>


<form  id="CreateStockDept1" name="CreateStockdept1" method="post" action="includes/model/stock_machine_update_actions.php">
<div id="note"> </div>

  <table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
    <?php 
require_once "../partials/_form_stock_department.php";
?>
      <td colspan="2" align="right"><table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
        <tr>
          <td align="right"></td>
          <td align="center">
          <input type="hidden" value="<?php 
echo $stk_depart_id;
?>
开发者ID:rajibahmed,项目名称:IIMS,代码行数:31,代码来源:ca_edit_department.php

示例2: Stock

<?php

require_once '../../../lib/defination.class.php';
require_once '../../../lib/stock.class.php';
//// Retrive Stock Group Name
$objStockGroupInfo = new Stock();
$stock = new Stock();
$StockGrpInfo = $objStockGroupInfo->retriveStockGroupUnderInfo();
$StockGrpInfo_options = options_for_select($StockGrpInfo, 'stock_group_id', 'stock_group_name', true);
/////////////////////////////////
//// Retrive Stock Catagory Name
$objStockCatInfo = new Stock();
$StockCatInfo = $objStockCatInfo->retriveStockCatUnderInfo();
////////////////////////////////////////////////
$StockCatInfo_options = options_for_select($StockCatInfo, 'stock_cat_id', 'stock_cat_name', true);
$stockDept = options_for_select($stock->retriveStockDepartmentInfo(), 'stock_dept_id', 'stock_dept_name', true);
$stockSection = options_for_select($stock->retriveStockSection(), 'sec_id', 'sec_name', true);
$stockMachineName = options_for_select($stock->retriveMachineName(), 'm_id', 'm_name', true);
$stockMachineModelName = options_for_select($stock->retriveMachineModelName(), 'machine_model_id', 'machine_model_name', true);
$stockManufecturer = options_for_select($stock->retriveManufecturer(), 'manu_id', 'manu_name', true);
$stockItemName = options_for_select($stock->retriveStockItem(), 'stock_item_id', 'stock_item_name', true);
/////////////////////////////////
//// Retrive Stock Unit Name
$unitName = options_for_select($stock->retriveStockUnit(), 'stock_item_unit_id', 'stock_item_unit_name', true);
/////////////////////////////////
@session_start();
$user_level = $_SESSION[user_level];
$stc_itm_id = $_GET['stc_itm_id'];
$stockItemByID = $objStockGroupInfo->retriveStockItemByid($stc_itm_id);
$allStockItem = $objStockGroupInfo->retriveStockItem();
$rowStockItem = count($allStockItem);
开发者ID:rajibahmed,项目名称:IIMS,代码行数:31,代码来源:edit_engi_item.php


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