meeting_roomModel.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. class flow_meeting_roomClassModel extends flowModel
  3. {
  4. // $ors当前单据操作信息,$crs提交过来的信息
  5. public function flowoptmenu($ors, $crs)
  6. {
  7. if ($ors['num'] == 'delnoup') {
  8. }
  9. return null;
  10. }
  11. //删除单据时调用
  12. public function flowdeletebill($sm) {
  13. m('meet_sys')->deleteMeetingRoom($this->rs);
  14. }
  15. //流程全部完成后调用
  16. public function flowcheckfinsh($sm) {
  17. }
  18. //提交时调用
  19. protected function flowsubmit($na, $sm){
  20. if ($this->id == null) {
  21. return ;
  22. }
  23. $meetingRoomInfo = $this->getone("id=$this->id","room_id");
  24. if ($meetingRoomInfo['room_id']) {
  25. return ;
  26. } else {
  27. // 第三方会议平台同步创建
  28. // $res = m('meet_sys')->createMeetingRoom($this->id);
  29. // $type = '3-创建会议室-创建第三方会议室';
  30. // $remark = json_encode($res);
  31. // m('log')->addlog($type, $remark);
  32. }
  33. }
  34. }