信呼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,44 @@
<?php
/**
工作日报
*/
class agent_dailyClassModel extends agentModel
{
public function gettotal()
{
$stotal = $this->getwdtotal($this->adminid);
$titles = '';
return array('stotal'=>$stotal,'titles'=> $titles);
}
public function getwdtotal($uid)
{
$ydid = m('log')->getread('daily', $uid);
$whe1w = 'and '.m('admin')->getdownwheres('uid', $uid, 0);
$where = "id not in($ydid) $whe1w ";
$stotal = m('daily')->rows($where);
return $stotal;
}
protected function agenttotals($uid)
{
$a = array(
'under' => $this->getwdtotal($uid)
);
return $a;
}
protected function agentrows($rows, $rowd, $uid){
$ydarr = explode(',', m('log')->getread('daily', $uid));
foreach($rowd as $k=>$rs){
if(!in_array($rs['id'], $ydarr) && $rs['uid'] != $uid){
$rows[$k]['statustext'] = '未读';
$rows[$k]['statuscolor'] = '#ED5A5A';
}else{
$rows[$k]['ishui'] = 1;
}
}
return $rows;
}
}