mode_finccbxAction.php 756 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * 此文件是流程模块【finccbx.出差报销】对应接口文件。
  4. * 可在页面上创建更多方法如:public funciton testactAjax(),用js.getajaxurl('testact','mode_finccbx|input','flow')调用到对应方法
  5. */
  6. class mode_finccbxClassAction extends inputAction{
  7. protected function savebefore($table, $arr, $id, $addbo){
  8. $rows['type'] = '1';//一定要是1,不能去掉
  9. return array(
  10. 'rows'=>$rows
  11. );
  12. }
  13. protected function saveafter($table, $arr, $id, $addbo){
  14. }
  15. public function getlastAjax()
  16. {
  17. $rs = m('fininfom')->getone("`uid`='$this->adminid' and `type`<3 order by `optdt` desc",'paytype,cardid,openbank,fullname');
  18. if(!$rs)$rs='';
  19. $this->returnjson($rs);
  20. }
  21. }
粤ICP备19079148号