Quintiq file version 2.0
|
#parent: #root
|
StaticMethod Publish (
|
InterfaceDataset owner,
|
InterfaceLoginfo loginfo
|
)
|
{
|
TextBody:
|
[*
|
//// 甄兰鸽 Jul-17-2024 (created)
|
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( "stockingPoint", ids.StockingPoint() )
|
.Add( "interfaceTime", ids.InterfaceTime().Format( 'Y-M2-D2 H:m:s' ) ).Build();/*"2024-10-01 12:00:00" )*/
|
jsonarray.Add( idsjson );
|
}
|
loginfo.RequestBody( jsonarray.Build().AsString() );
|
info( loginfo.RequestBody() );
|
data := InterfaceLoginfo::CallInterfaceForDataCenter( owner, loginfo );
|
info( '----------------', data.AsString() );
|
*]
|
}
|