信呼OA版本v2.3.9
This commit is contained in:
@@ -22,6 +22,9 @@ class agent_gongClassModel extends agentModel
|
||||
$where.= " and (`zstart` is null or `zstart`<='{$this->rock->date}')";
|
||||
$where.= " and (`zsend` is null or `zsend`>='{$this->rock->date}')";
|
||||
|
||||
$wdate = m('admin')->getmou('workdate', $uid);
|
||||
if(!isempt($wdate))$where.=" and `indate`>='$wdate'";
|
||||
|
||||
$where .= m('admin')->getcompanywhere(1);
|
||||
$stotal = m('infor')->rows($where);
|
||||
return $stotal;
|
||||
|
||||
31
webmain/model/agent/planmModel.php
Normal file
31
webmain/model/agent/planmModel.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
通知公告的
|
||||
*/
|
||||
class agent_planmClassModel extends agentModel
|
||||
{
|
||||
|
||||
public function gettotal()
|
||||
{
|
||||
$stotal = $this->getwdtotal($this->adminid);
|
||||
$titles = '';
|
||||
return array('stotal'=>$stotal,'titles'=> $titles);
|
||||
}
|
||||
|
||||
private function getwdtotal($uid)
|
||||
{
|
||||
|
||||
$stotal = m('flow:planm')->getwwctotals($uid);
|
||||
return $stotal;
|
||||
}
|
||||
|
||||
|
||||
protected function agenttotals($uid)
|
||||
{
|
||||
$a = array(
|
||||
'mydwc' => $this->getwdtotal($uid)
|
||||
);
|
||||
return $a;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user