1
0

mode_carmwxAction.php 587 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * 此文件是流程模块【carmwx.车辆维修】对应接口文件。
  4. */
  5. class mode_carmwxClassAction extends inputAction{
  6. public function getcardata()
  7. {
  8. $where= m('admin')->getcompanywhere(1);
  9. $rows = m('carm')->getall("1=1 ".$where."",'carnum as name,id as value');
  10. return $rows;
  11. }
  12. protected function savebefore($table, $arr, $id, $addbo){
  13. $carid = $arr['carid'];
  14. $to = m($table)->rows('id<>'.$id.' and `carid`='.$carid.' and `type`=0 and `status`=0');
  15. if($to>0)return '当前车辆已申请了维修在处理中了';
  16. }
  17. }
粤ICP备19079148号