信呼v2.5.0版本

This commit is contained in:
雨中磐石
2022-09-29 15:34:08 +08:00
parent e6d2c91521
commit 44100a4ab9
37 changed files with 685 additions and 91 deletions

View File

@@ -0,0 +1,49 @@
<?php
/**
* 此文件是流程模块【assetmly.固定资产领用】对应控制器接口文件。
*/
class mode_assetmlyClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
$rows['type'] = 1; //必须为1
return array(
'rows' => $rows
);
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
//读取资产列表
public function assetmlydata()
{
$rows = m('assetm')->getall('`state`=0');
$arr = array();
foreach($rows as $k=>$rs){
$arr[] = array(
'name' => $rs['title'].'('.$rs['num'].')',
'value' => $rs['id']
);
}
return $arr;
}
}