提交 480c6112 authored 作者: fengzy's avatar fengzy

oa付款单

上级 6789033e
...@@ -238,26 +238,22 @@ class flow_finfybxClassModel extends flowModel ...@@ -238,26 +238,22 @@ class flow_finfybxClassModel extends flowModel
foreach ($oa_fininfos as $k=> $value) { foreach ($oa_fininfos as $k=> $value) {
foreach ($value as $key => $val) { foreach ($value as $key => $val) {
switch ($key) { switch ($key) {
case 'bxType':
$arr['FPAYAPPLYENTRY'][$k]['FCOSTID']['FNUMBER']=self::getbxlx($val);
break;
case 'money': case 'money':
$arr['FPAYAPPLYENTRY'][$k]['FAPPLYAMOUNTFOR']=$val; $arr['FPAYAPPLYENTRY'][$k]['FPAYTOTALAMOUNTFOR']=$val;
$arr['FPAYAPPLYENTRY'][$k]['FPAYAMOUNTFOR_E']=$val;
$arr['FPAYAPPLYENTRY'][$k]['FSETTLEPAYAMOUNTFOR']=$val;
$arr['FPAYAPPLYENTRY'][$k]['FREALPAYAMOUNTFOR_D']=$val;
break; break;
case 'sm':
$arr['FPAYAPPLYENTRY'][$k]['FDescription']=$val;
break;
default: default:
$arr['FPAYAPPLYENTRY'][$k]['FSETTLETYPEID']['FNumber']='JSFS04_SYS'; $arr['FPAYAPPLYENTRY'][$k]['FSETTLETYPEID']['FNumber']='JSFS04_SYS';
$arr['FPAYAPPLYENTRY'][$k]['FPAYPURPOSEID']['FNumber']='SFKYT10_SYS'; $arr['FPAYAPPLYENTRY'][$k]['FPURPOSEID']['FNumber']='SFKYT10_SYS';
$arr['FPAYAPPLYENTRY'][$k]['FENDDATE']=$this->rs['applydt'].' 00:00:00'; $arr['FPAYAPPLYENTRY'][$k]['FPOSTDATE']=$this->rs['applydt'].' 00:00:00';
$arr['FPAYAPPLYENTRY'][$k]['FEXPECTPAYDATE']=$this->rs['applydt'].' 00:00:00'; $arr['FPAYAPPLYENTRY'][$k]['FEXPECTPAYDATE']=$this->rs['applydt'].' 00:00:00';
$arr['FPAYAPPLYENTRY'][$k]['FEACHBANKACCOUNT']=$data['pfbanknum']; $arr['FPAYAPPLYENTRY'][$k]['FACCOUNTID']['FNumber']=$data['pfbanknum'];
break; break;
} }
...@@ -316,11 +312,11 @@ class flow_finfybxClassModel extends flowModel ...@@ -316,11 +312,11 @@ class flow_finfybxClassModel extends flowModel
"FDATE": "2020-06-28 00:00:00", "FDATE": "2020-06-28 00:00:00",
"FCONTACTUNITTYPE": "BD_Empinfo", "FCONTACTUNITTYPE": "BD_Empinfo",
"FCONTACTUNIT": { "FCONTACTUNIT": {
"FNumber": "GONN-0272" "FNumber": "GONN-0526"
}, },
"FRECTUNITTYPE": "BD_Empinfo", "FRECTUNITTYPE": "BD_Empinfo",
"FRECTUNIT": { "FRECTUNIT": {
"FNumber": "GONN-0272" "FNumber": "GONN-0526"
}, },
"FISINIT": false, "FISINIT": false,
"FCURRENCYID": { "FCURRENCYID": {
...@@ -329,12 +325,12 @@ class flow_finfybxClassModel extends flowModel ...@@ -329,12 +325,12 @@ class flow_finfybxClassModel extends flowModel
"FEXCHANGERATE": 1.0, "FEXCHANGERATE": 1.0,
"FSETTLERATE": 1.0, "FSETTLERATE": 1.0,
"FSETTLEORGID": { "FSETTLEORGID": {
"FNumber": "0000" "FNumber": "1000"
}, },
"FDOCUMENTSTATUS": "Z", "FDOCUMENTSTATUS": "Z",
"FCancelStatus": "A", "FCancelStatus": "A",
"FPAYORGID": { "FPAYORGID": {
"FNumber": "0000" "FNumber": "1000"
}, },
"FISSAMEORG": true, "FISSAMEORG": true,
"FIsCredit": false, "FIsCredit": false,
...@@ -348,8 +344,10 @@ class flow_finfybxClassModel extends flowModel ...@@ -348,8 +344,10 @@ class flow_finfybxClassModel extends flowModel
"FNUMBER": "PRE001" "FNUMBER": "PRE001"
}, },
"F_PAEZ_Cbzx": { "F_PAEZ_Cbzx": {
"FNUMBER": "GSWL.BJ.002" "FNUMBER": "GS.BJ.S01"
}, },
"FREMARK": "123213213213",
"F_PAEZ_OADJBH": "oa-01001",
"FPAYBILLENTRY": [ "FPAYBILLENTRY": [
{ {
"FSETTLETYPEID": { "FSETTLETYPEID": {
...@@ -358,31 +356,34 @@ class flow_finfybxClassModel extends flowModel ...@@ -358,31 +356,34 @@ class flow_finfybxClassModel extends flowModel
"FPURPOSEID": { "FPURPOSEID": {
"FNumber": "SFKYT10_SYS" "FNumber": "SFKYT10_SYS"
}, },
"FPAYTOTALAMOUNTFOR": 11111.0, "FPAYTOTALAMOUNTFOR": 22222.0,
"FPAYAMOUNTFOR_E": 11111.0, "FPAYAMOUNTFOR_E": 22222.0,
"FSETTLEPAYAMOUNTFOR": 11111.0, "FSETTLEPAYAMOUNTFOR": 22222.0,
"FREALPAYAMOUNTFOR_D": 11111.0, "FREALPAYAMOUNTFOR_D": 22222.0,
"FACCOUNTID": { "FACCOUNTID": {
"FNumber": "110908523310901" "FNumber": "110908523310901"
}, },
"FRecType": "1", "FRecType": "1",
"FPAYAMOUNT_E": 11111.0, "FPAYAMOUNT_E": 22222.0,
"FPOSTDATE": "2020-06-28 00:00:00", "FPOSTDATE": "2020-06-28 00:00:00",
"FRuZhangType": "1", "FRuZhangType": "1",
"FPayType": "A" "FPayType": "A"
} }
] ]
} }
}'; }';
// $model=json_decode($data_model,true); $model=json_decode($data_model,true);
$model['Model']['F_PAEZ_Cbzx']['FNUMBER']=$cbxmid;
$model['Model']['F_PAEZ_OADJBH']=$this->rs['docnum'];;
$model['Model']['FDATE']=$applydt;
$model['Model']['FCONTACTUNIT']['FNumber']=$gonncode;
$model['Model']['FRECTUNIT']['FNumber']=$gonncode;
$model['Model']['FPAYAPPLYENTRY']=$arr['FPAYAPPLYENTRY'];
// $model['Model']['F_PAEZ_Cbzx']['FNUMBER']=$cbxmid;
// $model['Model']['FDATE']=$applydt;
// $model['Model']['FCONTACTUNIT']['FNumber']=$gonncode;
// $model['Model']['FRECTUNIT']['FNumber']=$gonncode;
// $model['Model']['FPAYAPPLYENTRY']=$arr['FPAYAPPLYENTRY'];
// $data_model=json_encode($model); $data_model=json_encode($model);
var_dump($data_model);die;
$data = array( $data = array(
'AP_PAYBILL',//业务对象标识FormId 'AP_PAYBILL',//业务对象标识FormId
$data_model//具体Json字串 $data_model//具体Json字串
...@@ -392,7 +393,7 @@ class flow_finfybxClassModel extends flowModel ...@@ -392,7 +393,7 @@ class flow_finfybxClassModel extends flowModel
$result = self::invoke_add($cloudUrl,$post_content,$cookie_jar); $result = self::invoke_add($cloudUrl,$post_content,$cookie_jar);
var_dump($result);die;
$array = json_decode($result,true); $array = json_decode($result,true);
var_dump($array); var_dump($array);
if($array['Result']['ResponseStatus']['IsSuccess']){ if($array['Result']['ResponseStatus']['IsSuccess']){
...@@ -423,7 +424,7 @@ class flow_finfybxClassModel extends flowModel ...@@ -423,7 +424,7 @@ class flow_finfybxClassModel extends flowModel
'SelectedPostId': 0 'SelectedPostId': 0
}"; }";
$data = array( $data = array(
'CN_PAYAPPLY',//业务对象标识FormId 'AP_PAYBILL',//业务对象标识FormId
$data_model//具体Json字串 $data_model//具体Json字串
); );
...@@ -448,7 +449,7 @@ class flow_finfybxClassModel extends flowModel ...@@ -448,7 +449,7 @@ class flow_finfybxClassModel extends flowModel
'InterationFlags': '' 'InterationFlags': ''
}"; }";
$data = array( $data = array(
'CN_PAYAPPLY',//业务对象标识FormId 'AP_PAYBILL',//业务对象标识FormId
$data_model//具体Json字串 $data_model//具体Json字串
); );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论