提交 3f6d6fb8 authored 作者: fengzy's avatar fengzy

OA数据同步生产环境测试

上级 d04d74db
...@@ -66,70 +66,75 @@ protected function flowcheckafter($zt, $sm){ ...@@ -66,70 +66,75 @@ protected function flowcheckafter($zt, $sm){
$post_content = self::create_postdata($data); $post_content = self::create_postdata($data);
$result = self::invoke_login($cloudUrl,$post_content,$cookie_jar); $result = self::invoke_login($cloudUrl,$post_content,$cookie_jar);
header("Content-type: text/html; charset=utf8"); header("Content-type: text/html; charset=utf8");
$applicant=$this->rs['applicant'];//申请人
$applicationdpt=$this->rs['applicationdpt'];//申请部门
$applydt=$this->rs['applydt'];//申请日期
var_dump($applydt);
// $data_model ='{
// "Creator": "",
// "NeedUpDateFields": [],
// "NeedReturnFields": [],
// "IsDeleteEntry": "true",
// "SubSystemId": "",
// "IsVerifyBaseDataField": "false",
// "IsEntryBatchFill": "true",
// "ValidateFlag": "true",
// "NumberSearch": "true",
// "InterationFlags": "",
// "IsAutoSubmitAndAudit": "false",
// "Model": {
// "FID": 0,
// "FBillTypeID": {
// "FNUMBER": "FKDLX11_SYS"
// },
// "FDATE": "2020-08-03 00:00:00",
// "FCONTACTUNITTYPE": "BD_Supplier",
// "FCONTACTUNIT": {
// "FNumber": "GDGYS-0003"
// },
// "FRECTUNITTYPE": "BD_Supplier",
// "FRECTUNIT": {
// "FNumber": "GDGYS-0003"
// },
// "FISINIT": false,
// "FCURRENCYID": {
// "FNumber": "PRE001"
// },
// "FEXCHANGERATE": 1.0,
// "FSETTLERATE": 1.0,
// "FSETTLEORGID": {
// "FNumber": "1000"
// },
// "FPURCHASEORGID": {
// "FNumber": "1000"
// },
// "FPURCHASEDEPTID": {
// "FNumber": "GS.BM.08"
// },
// "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_OADJBH": "213123213"
// }
// }';
// $model=json_decode($data_model,true);
$data_model ='{
"Creator": "",
"NeedUpDateFields": [],
"NeedReturnFields": [],
"IsDeleteEntry": "true",
"SubSystemId": "",
"IsVerifyBaseDataField": "false",
"IsEntryBatchFill": "true",
"ValidateFlag": "true",
"NumberSearch": "true",
"InterationFlags": "",
"IsAutoSubmitAndAudit": "false",
"Model": {
"FID": 0,
"FBillTypeID": {
"FNUMBER": "FKDLX10_SYS"
},
"FDATE": "2020-08-02 00:00:00",
"FCONTACTUNITTYPE": "BD_Supplier",
"FCONTACTUNIT": {
"FNumber": "GDGYS-0002"
},
"FRECTUNITTYPE": "BD_Supplier",
"FRECTUNIT": {
"FNumber": "GDGYS-0002"
},
"FDepartment": {
"FNumber": "CQ.BM.01"
},
"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_OADJBH": "123213"
}
}';
$model=json_decode($data_model,true);
var_dump($model);
// $model['Model']['FDATE']=$applydt; // $model['Model']['FDATE']=$applydt;
// $model['Model']['F_PAEZ_OADJBH']=$this->rs['docnum']; // $model['Model']['F_PAEZ_OADJBH']=$this->rs['docnum'];
// $model['Model']['FCONTACTUNIT']['FNumber']=$supplier['number']; // $model['Model']['FCONTACTUNIT']['FNumber']=$supplier['number'];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论