信呼OA版本v2.3.8

This commit is contained in:
雨中磐石
2022-08-14 16:47:40 +08:00
parent 4640677d27
commit e3fcd913e3
1405 changed files with 133635 additions and 73 deletions

View File

@@ -0,0 +1,29 @@
<?php
class mode_bookborrowClassAction extends inputAction{
protected function savebefore($table, $arr, $id, $addbo){
$bookid = $arr['bookid'];
$jydt = $arr['jydt'];
if($id==0 && $jydt<$this->date)return '借阅日期不能是过去';
$shul = m('book')->getjieshu($bookid, $jydt, $id);
if($shul<1)return '该书数量不够了';
}
protected function saveafter($table, $arr, $id, $addbo){
}
public function getbookdata()
{
$where = m('admin')->getcompanywhere(1);
$rows = m('book')->getrows('shul>0'.$where.'','id,title,typeid','typeid');
$arr = array();
foreach($rows as $k=>$rs){
$arr[] = array('value'=>$rs['id'],'name'=>$rs['title']);
}
return $arr;
}
}