Files
OMS/app/tgkpi/controller/admin/setting.php
2025-12-28 23:13:25 +08:00

59 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 tgkpi_ctl_admin_setting extends desktop_controller{
var $name = "绩效配置";
var $workground = "performance";
/*
* 订单异常类型设置
*/
function reason(){
$this->finder('tgkpi_mdl_reason',array(
'title'=>'校验失败原因设置',
'actions'=>array(
array(
'label'=>'添加',
'href'=>'index.php?app=tgkpi&ctl=admin_setting&act=addreason',
'target' => 'dialog::{width:450,height:150,title:\'新建校验失败原因\'}'
),
),
'use_buildin_new_dialog' => false,
'use_buildin_set_tag'=>false,
'use_buildin_recycle'=>false,
'use_buildin_export'=>false,
'use_buildin_import'=>false,
));
}
/*
* 添加订单异常类型
*/
function addreason(){
$reasonObj = $this->app->model("reason");
if($_POST){
$this->begin($this->url.'&act=reason');
$data['reason_memo'] = $_POST['memo'];
if($_POST['reason_id']){
$data['reason_id'] = $_POST['reason_id'];
}
$reasonObj->save($data);
$this->end(true, '保存成功');
}
$this->pagedata['title'] = '添加校验失败原因';
$this->page("admin/setting/reason.html");
}
/*
* 编辑订单异常类型
*/
function editreason($id){
$reasonObj = $this->app->model("reason");
$this->pagedata['reason']=$reasonObj->dump($id);
$this->pagedata['title'] = '编辑校验失败原因';
$this->page("admin/setting/reason.html");
}
}
?>