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


PHP database4::deleted_inventory方法代码示例

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


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

示例1: database

<?php

include "../../myDatabase4.php";
include "../../myDatabase.php";
$search = $_GET['search'];
$ro4 = new database4();
$ro = new database();
$ro4->deleted_inventory($search, "medicine");
$myInventoryCode = [];
foreach ($ro4->deleted_inventory_inventoryCode() as $inventoryCode) {
    array_push($myInventoryCode, ["inventoryCode" => $inventoryCode, "stockCardNo" => $ro->selectNow("inventory", "stockCardNo", "inventoryCode", $inventoryCode), "description" => $ro->selectNow("inventory", "description", "inventoryCode", $inventoryCode), "genericName" => $ro->selectNow("inventory", "genericName", "inventoryCode", $inventoryCode), "unitcost" => $ro->selectNow("inventory", "unitcost", "inventoryCode", $inventoryCode), "ipdPrice" => $ro->selectNow("inventory", "ipdPrice", "inventoryCode", $inventoryCode), "opdPrice" => $ro->selectNow("inventory", "opdPrice", "inventoryCode", $inventoryCode), "status" => $ro->selectNow("inventory", "status", "inventoryCode", $inventoryCode)]);
}
$json = json_encode($myInventoryCode);
echo $json;
开发者ID:rickyx12,项目名称:protacio,代码行数:14,代码来源:deleted-medicine-search.php

示例2: database

<?php

include "../../myDatabase4.php";
include "../../myDatabase.php";
$search = $_GET['search'];
$ro4 = new database4();
$ro = new database();
$ro4->deleted_inventory($search, "supplies");
$myInventoryCode = [];
foreach ($ro4->deleted_inventory_inventoryCode() as $inventoryCode) {
    array_push($myInventoryCode, ["inventoryCode" => $inventoryCode, "stockCardNo" => $ro->selectNow("inventory", "stockCardNo", "inventoryCode", $inventoryCode), "description" => $ro->selectNow("inventory", "description", "inventoryCode", $inventoryCode), "unitcost" => $ro->selectNow("inventory", "suppliesUNITCOST", "inventoryCode", $inventoryCode), "price" => $ro->selectNow("inventory", "unitcost", "inventoryCode", $inventoryCode), "status" => $ro->selectNow("inventory", "status", "inventoryCode", $inventoryCode)]);
}
$json = json_encode($myInventoryCode);
echo $json;
开发者ID:rickyx12,项目名称:protacio,代码行数:14,代码来源:deleted-supplies-search.php


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