信呼OA版本v2.3.8
This commit is contained in:
44
webmain/flow/input/mode_diaoboAction.php
Normal file
44
webmain/flow/input/mode_diaoboAction.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* 此文件是流程模块【diaobo.调拨单】对应控制器接口文件。
|
||||
*/
|
||||
class mode_diaoboClassAction extends inputAction{
|
||||
|
||||
|
||||
protected function savebefore($table, $arr, $id, $addbo){
|
||||
$data = $this->getsubtabledata(0);
|
||||
if(count($data)==0)return '至少要有一行记录';
|
||||
foreach($data as $k=>$rs){
|
||||
if(isset($rs['aid']))foreach($data as $k1=>$rs1){
|
||||
if($k!=$k1){
|
||||
if($rs['aid']==$rs1['aid'])
|
||||
return '行'.($k1+1).'的物品已在行'.($k+1).'上填写,不要重复填写';
|
||||
}
|
||||
}
|
||||
}
|
||||
$rows = array();
|
||||
$rows['custname'] = m('godepot')->getmou('depotname', $arr['custid']);
|
||||
|
||||
$rows['type'] = '3';//一定要是3,不能去掉
|
||||
return array(
|
||||
'rows' => $rows
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
protected function saveafter($table, $arr, $id, $addbo){
|
||||
|
||||
}
|
||||
|
||||
//仓库列表
|
||||
public function godepot()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getgoodsdata()
|
||||
{
|
||||
return m('goods')->getgoodsdata(3);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user