mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-31 13:25:32 +08:00
81 lines
2.5 KiB
PHP
81 lines
2.5 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
class omevirtualwms_mdl_vopstockout extends dbeav_model{
|
||
public $queue = [];
|
||
|
||
/**
|
||
* count
|
||
* @param mixed $filter filter
|
||
* @return mixed 返回值
|
||
*/
|
||
public function count($filter=null){
|
||
$sql = "SELECT count(*) as _count FROM sdb_purchase_pick_stockout_bills WHERE status=1 AND o_status=1 AND confirm_status IN(1,2)";
|
||
|
||
$row = $this->db->selectrow($sql);
|
||
|
||
return intval($row['_count']);
|
||
}
|
||
|
||
public function getlist($cols='*', $filter=array(), $offset=0, $limit=-1, $orderType=null){
|
||
|
||
//$stockoutObj = app::get('purchase')->model('pick_stockout_bills');
|
||
//$rows = $stockoutObj->getList('*', array('status'=>1, 'o_status'=>1, 'confirm_status'=>array(1, 2)), $limit, $offset);
|
||
|
||
$sql = "SELECT * FROM sdb_purchase_pick_stockout_bills WHERE status=1 AND o_status=1 AND confirm_status IN(1,2)";
|
||
$rows = $this->db->selectLimit($sql,$limit,$offset);
|
||
|
||
return $rows;
|
||
}
|
||
|
||
/**
|
||
* 获取_schema
|
||
* @return mixed 返回结果
|
||
*/
|
||
public function get_schema(){
|
||
$schema = array (
|
||
'columns' => array (
|
||
'stockout_no' =>
|
||
array (
|
||
'type' => 'varchar(32)',
|
||
'required' => true,
|
||
'label' => '出库单号',
|
||
'width' => 140,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'order' => 2,
|
||
),
|
||
'operator' => array (
|
||
'type' => 'varchar(100)',
|
||
'label' => '操作人',
|
||
'editable' => false,
|
||
'width' =>100,
|
||
),
|
||
'create_time' => array (
|
||
'type' => 'time',
|
||
'label' => '创建日期',
|
||
'width' =>160,
|
||
'editable' => false,
|
||
),
|
||
),
|
||
'idColumn' => 'stockout_no',
|
||
'in_list' => array (
|
||
0 => 'stockout_no',
|
||
1 => 'operator',
|
||
2 => 'create_time',
|
||
),
|
||
'default_in_list' => array (
|
||
0 => 'stockout_no',
|
||
1 => 'operator',
|
||
2 => 'create_time',
|
||
),
|
||
);
|
||
|
||
return $schema;
|
||
}
|
||
}
|