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

oa付款单

上级 6789033e
......@@ -238,26 +238,22 @@ class flow_finfybxClassModel extends flowModel
foreach ($oa_fininfos as $k=> $value) {
foreach ($value as $key => $val) {
switch ($key) {
case 'bxType':
$arr['FPAYAPPLYENTRY'][$k]['FCOSTID']['FNUMBER']=self::getbxlx($val);
break;
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;
case 'sm':
$arr['FPAYAPPLYENTRY'][$k]['FDescription']=$val;
break;
default:
$arr['FPAYAPPLYENTRY'][$k]['FSETTLETYPEID']['FNumber']='JSFS04_SYS';
$arr['FPAYAPPLYENTRY'][$k]['FPAYPURPOSEID']['FNumber']='SFKYT10_SYS';
$arr['FPAYAPPLYENTRY'][$k]['FENDDATE']=$this->rs['applydt'].' 00:00:00';
$arr['FPAYAPPLYENTRY'][$k]['FPURPOSEID']['FNumber']='SFKYT10_SYS';
$arr['FPAYAPPLYENTRY'][$k]['FPOSTDATE']=$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;
}
......@@ -296,93 +292,98 @@ class flow_finfybxClassModel extends flowModel
$data_model ='{
"Creator": "",
"NeedUpDateFields": [],
"NeedReturnFields": [],
"IsDeleteEntry": "true",
"SubSystemId": "",
"IsVerifyBaseDataField": "false",
"IsEntryBatchFill": "true",
"ValidateFlag": "true",
"NumberSearch": "true",
"InterationFlags": "",
"IsAutoSubmitAndAudit": "false",
"Model": {
"FID": 0,
"FBillTypeID": {
"FNUMBER": "FKDLX04_SYS"
},
"FDATE": "2020-06-28 00:00:00",
"FCONTACTUNITTYPE": "BD_Empinfo",
"FCONTACTUNIT": {
"FNumber": "GONN-0272"
},
"FRECTUNITTYPE": "BD_Empinfo",
"FRECTUNIT": {
"FNumber": "GONN-0272"
},
"FISINIT": false,
"FCURRENCYID": {
"FNumber": "PRE001"
},
"FEXCHANGERATE": 1.0,
"FSETTLERATE": 1.0,
"FSETTLEORGID": {
"FNumber": "0000"
},
"FDOCUMENTSTATUS": "Z",
"FCancelStatus": "A",
"FPAYORGID": {
"FNumber": "0000"
},
"FISSAMEORG": true,
"FIsCredit": false,
"FSETTLECUR": {
"FNUMBER": "PRE001"
},
"FIsWriteOff": false,
"FREALPAY": false,
"FISCARRYRATE": false,
"FSETTLEMAINBOOKID": {
"FNUMBER": "PRE001"
},
"F_PAEZ_Cbzx": {
"FNUMBER": "GSWL.BJ.002"
},
"FPAYBILLENTRY": [
{
"FSETTLETYPEID": {
"FNumber": "JSFS04_SYS"
},
"FPURPOSEID": {
"FNumber": "SFKYT10_SYS"
},
"FPAYTOTALAMOUNTFOR": 11111.0,
"FPAYAMOUNTFOR_E": 11111.0,
"FSETTLEPAYAMOUNTFOR": 11111.0,
"FREALPAYAMOUNTFOR_D": 11111.0,
"FACCOUNTID": {
"FNumber": "110908523310901"
},
"FRecType": "1",
"FPAYAMOUNT_E": 11111.0,
"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['Model']['FDATE']=$applydt;
// $model['Model']['FCONTACTUNIT']['FNumber']=$gonncode;
// $model['Model']['FRECTUNIT']['FNumber']=$gonncode;
// $model['Model']['FPAYAPPLYENTRY']=$arr['FPAYAPPLYENTRY'];
$data_model ='{
"Creator": "",
"NeedUpDateFields": [],
"NeedReturnFields": [],
"IsDeleteEntry": "true",
"SubSystemId": "",
"IsVerifyBaseDataField": "false",
"IsEntryBatchFill": "true",
"ValidateFlag": "true",
"NumberSearch": "true",
"InterationFlags": "",
"IsAutoSubmitAndAudit": "false",
"Model": {
"FID": 0,
"FBillTypeID": {
"FNUMBER": "FKDLX04_SYS"
},
"FDATE": "2020-06-28 00:00:00",
"FCONTACTUNITTYPE": "BD_Empinfo",
"FCONTACTUNIT": {
"FNumber": "GONN-0526"
},
"FRECTUNITTYPE": "BD_Empinfo",
"FRECTUNIT": {
"FNumber": "GONN-0526"
},
"FISINIT": false,
"FCURRENCYID": {
"FNumber": "PRE001"
},
"FEXCHANGERATE": 1.0,
"FSETTLERATE": 1.0,
"FSETTLEORGID": {
"FNumber": "1000"
},
"FDOCUMENTSTATUS": "Z",
"FCancelStatus": "A",
"FPAYORGID": {
"FNumber": "1000"
},
"FISSAMEORG": true,
"FIsCredit": false,
"FSETTLECUR": {
"FNUMBER": "PRE001"
},
"FIsWriteOff": false,
"FREALPAY": false,
"FISCARRYRATE": false,
"FSETTLEMAINBOOKID": {
"FNUMBER": "PRE001"
},
"F_PAEZ_Cbzx": {
"FNUMBER": "GS.BJ.S01"
},
"FREMARK": "123213213213",
"F_PAEZ_OADJBH": "oa-01001",
"FPAYBILLENTRY": [
{
"FSETTLETYPEID": {
"FNumber": "JSFS04_SYS"
},
"FPURPOSEID": {
"FNumber": "SFKYT10_SYS"
},
"FPAYTOTALAMOUNTFOR": 22222.0,
"FPAYAMOUNTFOR_E": 22222.0,
"FSETTLEPAYAMOUNTFOR": 22222.0,
"FREALPAYAMOUNTFOR_D": 22222.0,
"FACCOUNTID": {
"FNumber": "110908523310901"
},
"FRecType": "1",
"FPAYAMOUNT_E": 22222.0,
"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['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'];
// $data_model=json_encode($model);
$data_model=json_encode($model);
var_dump($data_model);die;
$data = array(
'AP_PAYBILL',//业务对象标识FormId
$data_model//具体Json字串
......@@ -392,7 +393,7 @@ class flow_finfybxClassModel extends flowModel
$result = self::invoke_add($cloudUrl,$post_content,$cookie_jar);
var_dump($result);die;
$array = json_decode($result,true);
var_dump($array);
if($array['Result']['ResponseStatus']['IsSuccess']){
......@@ -423,7 +424,7 @@ class flow_finfybxClassModel extends flowModel
'SelectedPostId': 0
}";
$data = array(
'CN_PAYAPPLY',//业务对象标识FormId
'AP_PAYBILL',//业务对象标识FormId
$data_model//具体Json字串
);
......@@ -448,7 +449,7 @@ class flow_finfybxClassModel extends flowModel
'InterationFlags': ''
}";
$data = array(
'CN_PAYAPPLY',//业务对象标识FormId
'AP_PAYBILL',//业务对象标识FormId
$data_model//具体Json字串
);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论