mode_receiptAction.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * 此文件是流程模块【receipt.回执确认】对应控制器接口文件。
  4. */
  5. class mode_receiptClassAction extends inputAction{
  6. protected function savebefore($table, $arr, $id, $addbo){
  7. $modenum = $arr['modenum'];
  8. $rows = array();
  9. $rows['table'] = m('flow_set')->getmou('`table`', "`num`='$modenum'");
  10. $where = "`uid`='$this->adminid' and `modenum`='$modenum' and `mid`='".$arr['mid']."' and `id`<>$id";
  11. if($this->flow->rows($where)>0)return '你已设置这单据的回执确认了';
  12. $receid = $arr['receid'];
  13. if(isempt($receid))return '没有选择需确认回执人员1';
  14. $receid = $this->flow->adminmodel->gjoin($receid);
  15. if(isempt($receid))return '没有选择需确认回执人员2';
  16. $rows['receid'] = $receid;
  17. $rows['receids'] = '';
  18. $rows['ushuy'] = '0';
  19. $rows['ushuz'] = count(explode(',', $receid));
  20. return array(
  21. 'rows' => $rows
  22. );
  23. }
  24. protected function saveafter($table, $arr, $id, $addbo){
  25. }
  26. }
粤ICP备19079148号