提交 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;
} }
...@@ -296,93 +292,98 @@ class flow_finfybxClassModel extends flowModel ...@@ -296,93 +292,98 @@ class flow_finfybxClassModel extends flowModel
$data_model ='{ $data_model ='{
"Creator": "", "Creator": "",
"NeedUpDateFields": [], "NeedUpDateFields": [],
"NeedReturnFields": [], "NeedReturnFields": [],
"IsDeleteEntry": "true", "IsDeleteEntry": "true",
"SubSystemId": "", "SubSystemId": "",
"IsVerifyBaseDataField": "false", "IsVerifyBaseDataField": "false",
"IsEntryBatchFill": "true", "IsEntryBatchFill": "true",
"ValidateFlag": "true", "ValidateFlag": "true",
"NumberSearch": "true", "NumberSearch": "true",
"InterationFlags": "", "InterationFlags": "",
"IsAutoSubmitAndAudit": "false", "IsAutoSubmitAndAudit": "false",
"Model": { "Model": {
"FID": 0, "FID": 0,
"FBillTypeID": { "FBillTypeID": {
"FNUMBER": "FKDLX04_SYS" "FNUMBER": "FKDLX04_SYS"
}, },
"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": {
"FNumber": "PRE001" "FNumber": "PRE001"
}, },
"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,
"FSETTLECUR": { "FSETTLECUR": {
"FNUMBER": "PRE001" "FNUMBER": "PRE001"
}, },
"FIsWriteOff": false, "FIsWriteOff": false,
"FREALPAY": false, "FREALPAY": false,
"FISCARRYRATE": false, "FISCARRYRATE": false,
"FSETTLEMAINBOOKID": { "FSETTLEMAINBOOKID": {
"FNUMBER": "PRE001" "FNUMBER": "PRE001"
}, },
"F_PAEZ_Cbzx": { "F_PAEZ_Cbzx": {
"FNUMBER": "GSWL.BJ.002" "FNUMBER": "GS.BJ.S01"
}, },
"FPAYBILLENTRY": [ "FREMARK": "123213213213",
{ "F_PAEZ_OADJBH": "oa-01001",
"FSETTLETYPEID": { "FPAYBILLENTRY": [
"FNumber": "JSFS04_SYS" {
}, "FSETTLETYPEID": {
"FPURPOSEID": { "FNumber": "JSFS04_SYS"
"FNumber": "SFKYT10_SYS" },
}, "FPURPOSEID": {
"FPAYTOTALAMOUNTFOR": 11111.0, "FNumber": "SFKYT10_SYS"
"FPAYAMOUNTFOR_E": 11111.0, },
"FSETTLEPAYAMOUNTFOR": 11111.0, "FPAYTOTALAMOUNTFOR": 22222.0,
"FREALPAYAMOUNTFOR_D": 11111.0, "FPAYAMOUNTFOR_E": 22222.0,
"FACCOUNTID": { "FSETTLEPAYAMOUNTFOR": 22222.0,
"FNumber": "110908523310901" "FREALPAYAMOUNTFOR_D": 22222.0,
}, "FACCOUNTID": {
"FRecType": "1", "FNumber": "110908523310901"
"FPAYAMOUNT_E": 11111.0, },
"FPOSTDATE": "2020-06-28 00:00:00", "FRecType": "1",
"FRuZhangType": "1", "FPAYAMOUNT_E": 22222.0,
"FPayType": "A" "FPOSTDATE": "2020-06-28 00:00:00",
} "FRuZhangType": "1",
] "FPayType": "A"
} }
}'; ]
// $model=json_decode($data_model,true); }
}';
// $model['Model']['F_PAEZ_Cbzx']['FNUMBER']=$cbxmid; $model=json_decode($data_model,true);
// $model['Model']['FDATE']=$applydt;
// $model['Model']['FCONTACTUNIT']['FNumber']=$gonncode; $model['Model']['F_PAEZ_Cbzx']['FNUMBER']=$cbxmid;
// $model['Model']['FRECTUNIT']['FNumber']=$gonncode; $model['Model']['F_PAEZ_OADJBH']=$this->rs['docnum'];;
// $model['Model']['FPAYAPPLYENTRY']=$arr['FPAYAPPLYENTRY']; $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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论