信呼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,45 @@
<?php
/**
* 此文件是流程模块【gong.通知公告】对应接口文件。
* 可在页面上创建更多方法如public funciton testactAjax()用js.getajaxurl('testact','mode_gong|input','flow')调用到对应方法
*/
class mode_gongClassAction extends inputAction{
protected function savebefore($table, $arr, $id, $addbo){
//$uarr['receid'] = $this->flow->getreceids($arr['receid']);
$uarr = array();
if(!isset($arr['issms']))$uarr['issms']=0;
return array(
'rows' => $uarr
);
}
protected function saveafter($table, $arr, $id, $addbo){
}
//提交投票
public function submittoupiaoAjax()
{
$mid = $this->get('mid');
$sid = $this->get('sid');
$modenum = $this->get('modenum');
$this->flow = m('flow')->initflow($modenum);
$towheer = "`table`='infor' and `mid`='$mid' and `name`='投票' and `checkid`='$this->adminid'";
if($this->flow->flogmodel->rows($towheer)>0)return '你已投票了';
$this->flow->addlog(array(
'name' => '投票',
'mid' => $mid,
'explain' => '投票项ID('.$sid.')'
));
m('infors')->update('`touci`=`touci`+1','`mid`='.$mid.' and `id` in('.$sid.')');
echo 'ok';
}
}