提交 003217f9 authored 作者: fengzy's avatar fengzy

费用报销脚本

上级 146f84ab
......@@ -167,24 +167,24 @@ class flow_projectfkClassModel extends flowModel
$data_model=json_encode($model);
var_dump($data_model);
$data = array(
'AP_PAYBILL',//业务对象标识FormId
$data_model//具体Json字串
);
// $data = array(
// 'AP_PAYBILL',//业务对象标识FormId
// $data_model//具体Json字串
// );
$post_content = self::create_postdata($data);
$result = self::invoke_add($cloudUrl,$post_content,$cookie_jar);
$array = json_decode($result,true);
// $post_content = self::create_postdata($data);
// $result = self::invoke_add($cloudUrl,$post_content,$cookie_jar);
// $array = json_decode($result,true);
$num=$array['Result']['Number'];
if($array['Result']['ResponseStatus']['IsSuccess']){
// $num=$array['Result']['Number'];
// if($array['Result']['ResponseStatus']['IsSuccess']){
$this->update("`fbillno`='$num'", $this->rs['id']);
$this->erplog($this->rs['docnum'],'c_projectfk','保存成功',json_encode($array),date("Y-m-d H:i:s"),2,$num,$array['Result']['Id'],1);
}else{
// $this->update("`fbillno`='$num'", $this->rs['id']);
// $this->erplog($this->rs['docnum'],'c_projectfk','保存成功',json_encode($array),date("Y-m-d H:i:s"),2,$num,$array['Result']['Id'],1);
// }else{
$this->erplog($this->rs['docnum'],'c_projectfk','保存失败',json_encode($array),date("Y-m-d H:i:s"),1,$num,$array['Result']['Id'],1);
}
// $this->erplog($this->rs['docnum'],'c_projectfk','保存失败',json_encode($array),date("Y-m-d H:i:s"),1,$num,$array['Result']['Id'],1);
// }
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论