Files
OMS/app/tgstockcost/lib/instance/branchproduct.php
2025-12-28 23:13:25 +08:00

72 lines
1.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class tgstockcost_instance_branchproduct
{
var $_instance=null;
function __construct($app)
{
$config = base_setup_config::deploy_info();
if($this->_instance) $this->_instance;
else{
//if($config['product_id'] == 'ECC-K')$this->_instance = kernel::single("stockcost_ocs_branchproduct");
//else
$this->_instance = kernel::single("tgstockcost_taog_branchproduct");
}
$this->app = $app;
}
/*获取表名*/
//public function table_name($real=false)
//{
// return $this->_instance->table_name($real);
//}
/*
*获取FINDER列表上仓库货品表数据
*/
function getList($cols='*', $filter=array(), $offset=0, $limit=-1, $orderType=null)
{
return $this->_instance->getList($cols, $filter, $offset, $limit, $orderType);
}
function branchproduct_count($filter = array()){
return $this->_instance->branchproduct_count($filter);
}
function stock_count($filter = array()){
return $this->_instance->stock_count($filter);
}
function header_getlist($cols = '*',$filter = array()){
return $this->_instance->header_getlist($cols,$filter);
}
/*收发汇总列表调用方法*/
function stock_getList($cols='*', $filter=array(), $offset=0, $limit=-1, $orderType=null)
{
return $this->_instance->stock_getList($cols, $filter, $offset, $limit, $orderType);
}
/*获取导出链接URL*/
function get_export_href($params)
{
return $this->_instance->get_export_href($params);
}
/*组织导出数据 OCS 走默认的*/
function fgetlist_csv(&$data,$filter,$offset,$exportType =1,$pass_data=false){
return $this->_instance->fgetlist_csv($data,$filter,$offset,$exportType,$pass_data);
}
function exportName(&$data){
$this->_instance->exportName($data);
}
function export_csv($data){
return $this->_instance->export_csv($data);
}
}