| | |
| | | TextBody: |
| | | [* |
| | | //// 甄兰鸽 Jul-17-2024 (created) |
| | | jsonarray := JSON::Array().Add( JSON::Object().Add( "product", "DZ948293" ) |
| | | .Add( "demandDate", "2024-10-01" ) |
| | | .Add( "demandQty", 800 ) |
| | | .Add( "versionName", "V2410204" ) |
| | | .Add( "interfaceTime", "2024-10-01 12:00:00" ).Build() ).Build(); |
| | | requestbody := jsonarray.AsString(); |
| | | jsonarray := JSON::Array(); |
| | | traverse( owner, CustomerDemandPPAIDS, ids ){ |
| | | idsjson := JSON::Object().Add( "product", ids.Product() ).Add( "demandDate", ids.DemandDate().Format( 'Y-M2-D2' ) )//"2024-10-01" ) |
| | | .Add( "demandQty", ids.DemandQty() ) |
| | | .Add( "versionName", ids.VersionName() ) |
| | | .Add( "interfaceTime", ids.InterfaceTime().Format( 'Y-M2-D2 H:m:s' ) ).Build();/*"2024-10-01 12:00:00" )*/ |
| | | jsonarray.Add( idsjson ); |
| | | } |
| | | //jsonarray := JSON::Array().Add( JSON::Object().Add( "product", "DZ948293" ) |
| | | // ).Build(); |
| | | requestbody := jsonarray.Build().AsString(); |
| | | info( requestbody ); |
| | | loginfo := owner.InterfaceLoginfo( relnew, ExecuteUser := executor |
| | | , Name := Translations::InterfaceDataset_CustomerDemandPPAIDS_Name() |
| | | , InterfaceDateTime := DateTime::ActualTime() |