1
0

mode_diaoboAction.php 976 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * 此文件是流程模块【diaobo.调拨单】对应控制器接口文件。
  4. */
  5. class mode_diaoboClassAction extends inputAction{
  6. protected function savebefore($table, $arr, $id, $addbo){
  7. $data = $this->getsubtabledata(0);
  8. if(count($data)==0)return '至少要有一行记录';
  9. foreach($data as $k=>$rs){
  10. if(isset($rs['aid']))foreach($data as $k1=>$rs1){
  11. if($k!=$k1){
  12. if($rs['aid']==$rs1['aid'])
  13. return '行'.($k1+1).'的物品已在行'.($k+1).'上填写,不要重复填写';
  14. }
  15. }
  16. }
  17. $rows = array();
  18. $rows['custname'] = m('godepot')->getmou('depotname', $arr['custid']);
  19. $rows['type'] = '3';//一定要是3,不能去掉
  20. return array(
  21. 'rows' => $rows
  22. );
  23. }
  24. protected function saveafter($table, $arr, $id, $addbo){
  25. }
  26. //仓库列表
  27. public function godepot()
  28. {
  29. }
  30. public function getgoodsdata()
  31. {
  32. return m('goods')->getgoodsdata(3);
  33. }
  34. }
粤ICP备19079148号