提交 65506816 authored 作者: fengzy's avatar fengzy

费用报销脚本

上级 f3f8cc9e
...@@ -87,77 +87,77 @@ class flow_projectfkClassModel extends flowModel ...@@ -87,77 +87,77 @@ class flow_projectfkClassModel extends flowModel
$applicationdpt=$this->rs['dept'];//申请部门 $applicationdpt=$this->rs['dept'];//申请部门
$applydt=$this->rs['applydt'];//申请日期 $applydt=$this->rs['applydt'];//申请日期
var_dump($applicationdpt);
// $data_model ='{
// "Creator": "",
// "NeedUpDateFields": [],
// "NeedReturnFields": [],
// "IsDeleteEntry": "true",
// "SubSystemId": "",
// "IsVerifyBaseDataField": "false",
// "IsEntryBatchFill": "true",
// "ValidateFlag": "true",
// "NumberSearch": "true",
// "InterationFlags": "",
// "IsAutoSubmitAndAudit": "false",
// "Model": {
// "FID": 0,
// "FBillTypeID": {
// "FNUMBER": "FKDLX02_SYS"
// },
// "FDATE": "2020-08-23 00:00:00",
// "FCONTACTUNITTYPE": "BD_Supplier",
// "FCONTACTUNIT": {
// "FNumber": "GDGYS-0004"
// },
// "FRECTUNITTYPE": "BD_Supplier",
// "FRECTUNIT": {
// "FNumber": "GDGYS-0004"
// },
// "FDepartment": {
// "FNumber": "CQ.BM.03"
// },
// "FISINIT": false,
// "FCURRENCYID": {
// "FNumber": "PRE001"
// },
// "FEXCHANGERATE": 1.0,
// "FEXCHANGETYPE": {
// "FNumber": "HLTX01_SYS"
// },
// "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"
// },
// "FDepartment": {
// "FNumber": ""
// },
// "FSETTLEEXCHANGETYPE": {
// "FNUMBER": "HLTX01_SYS"
// },
// "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": "FKDLX02_SYS"
},
"FDATE": "2020-08-23 00:00:00",
"FCONTACTUNITTYPE": "BD_Supplier",
"FCONTACTUNIT": {
"FNumber": "GDGYS-0004"
},
"FRECTUNITTYPE": "BD_Supplier",
"FRECTUNIT": {
"FNumber": "GDGYS-0004"
},
"FDepartment": {
"FNumber": "CQ.BM.03"
},
"FISINIT": false,
"FCURRENCYID": {
"FNumber": "PRE001"
},
"FEXCHANGERATE": 1.0,
"FEXCHANGETYPE": {
"FNumber": "HLTX01_SYS"
},
"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"
},
"FDepartment": {
"FNumber": ""
},
"FSETTLEEXCHANGETYPE": {
"FNUMBER": "HLTX01_SYS"
},
"F_PAEZ_OADJBH": "213123213"
}
}';
$model=json_decode($data_model,true);
var_dump($model);
// $model['Model']['FDATE']=$applydt; // $model['Model']['FDATE']=$applydt;
// $model['Model']['FCONTACTUNIT']['FNumber']=$supplier['number']; // $model['Model']['FCONTACTUNIT']['FNumber']=$supplier['number'];
// $model['Model']['F_PAEZ_OADJBH']=$this->rs['docnum']; // $model['Model']['F_PAEZ_OADJBH']=$this->rs['docnum'];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论