信呼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,64 @@
<?php
class mode_finjkdClassAction extends inputAction{
protected function savebefore($table, $arr, $id, $addbo){
$rows['type'] = '2';//一定要是2不能去掉
return array(
'rows'=>$rows
);
}
protected function saveafter($table, $arr, $id, $addbo){
}
public function getlastAjax()
{
$rs = m('fininfom')->getone("`uid`='$this->adminid' and `type`<3 order by `optdt` desc",'paytype,cardid,openbank,fullname');
if(!$rs)$rs='';
$this->returnjson($rs);
}
//借款统计
public function jktotalbeforeshow($table)
{
$kjk = $this->post('kjk','0');
$key = $this->post('key');
$atype = $this->post('atype');
$where = '';
if(!isempt($key))$where.=" and (`name` like '%$key%' or `ranking` like '%$key%' or `deptname` like '%$key%')";
if($kjk=='1'){
$str = m('fina')->getjkdwhere();
$where.=" and `id` in($str)";
}
if($atype=='my'){
$where='and id='.$this->adminid.'';
}else{
$where.= m('admin')->getcompanywhere(5);
}
$fields = 'id,name,deptname,ranking,workdate,state';
return array('where'=>$where,'fields'=>$fields,'order'=>'`id`');
}
public function jktotalaftershow($table, $rows)
{
$zta = m('flow:userinfo');
$uids = '0';
foreach($rows as $k=>$rs){
if($rs['state']==5)$rows[$k]['ishui']=1;
$rows[$k]['state'] = $zta->getuserstate($rs['state']);
$uids.=','.$rs['id'].'';
}
if($uids!='0')$rows = m('fina')->totalfkd($rows, $uids);
return array(
'rows' => $rows
);
}
}