Files
OMS/app/logisticsaccounts/lib/finder/statements.php
2025-12-28 23:13:25 +08:00

56 lines
1.8 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 logisticsaccounts_finder_statements{
var $addon_cols = "sid,status";
var $column_edit = "操作";
var $column_edit_width = "100";
//var $detail_basic = "详情";
var $detail_log='操作日志';
function column_edit($row){
$find_id = $_GET['_finder']['finder_id'];
$sid = $row['sid'];
if($row['status']=='0'){
$button= <<<EOF
<a href="index.php?app=logisticsaccounts&ctl=admin_statements&act=edit&sid=$sid&finder_id=$find_id" class="lnk" " target="_blank">编辑</a>&nbsp;
&nbsp;
EOF;
}else{
$button= <<<EOF
<a href="index.php?app=logisticsaccounts&ctl=admin_statements&act=edit&sid=$sid&view=1&finder_id=$find_id" class="lnk" " target="_blank">明细</a>&nbsp;
&nbsp;
EOF;
}
return $button;
}
//
// function detail_basic($sid){
// $render = app::get('logisticsaccounts')->render();
// $statementsObj = app::get('logisticsaccounts')->model('statements');
// $statements = $statementsObj->get_statements($sid);
//
//
// $render->pagedata['statements'] = $statements;
// unset($statements);
// return $render->fetch('detail_statements.html');
// }
function detail_log($sid){
$render = app::get('logisticsaccounts')->render();
$opObj = app::get('ome')->model('operation_log');
$logdata = $opObj->read_log(array('obj_id'=>$sid,'obj_type'=>'statements@logisticsaccounts'), 0, -1);
foreach($logdata as $k=>$v){
$logdata[$k]['operate_time'] = date('Y-m-d H:i:s',$v['operate_time']);
}
$render->pagedata['log'] = $logdata;
return $render->fetch('operation_log.html');
}
}
?>