| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod Publish ( | 
|   InterfaceLoginfo loginfo | 
| ) | 
| { | 
|   TextBody: | 
|   [* | 
|     //// 甄兰鸽 Jul-17-2024 (created) | 
|     jsonarray          := JSON::Array(); | 
|     traverse( loginfo, DispatchShiftPlan, shiftPlan ){ | 
|       shiftPlanjson          := JSON::Object() | 
|                                     .Add( "productLine", shiftPlan.ProductLine() ) | 
|                                     .Add( "shiftDate", shiftPlan.ShiftDate().Format( 'Y-M2-D2' ) )//"2024-10-01"  | 
|                                     .Add( "shiftQty", shiftPlan.ShiftQty() ) | 
|                                     .Add( "tips", shiftPlan.Tips() ) | 
|                                     .Add( "versionName", shiftPlan.VersionName() ) | 
|                                     .Add( "factoryName", shiftPlan.FactoryName() ) | 
|                                     .Add( "fac", shiftPlan.Fac() ) | 
|                                     .Add( "interfaceTime", shiftPlan.InterfaceTime().Format( 'Y-M2-D2 H:m:s' ) )/*"2024-10-01 12:00:00" )*/ | 
|                                     .Build(); | 
|       jsonarray.Add( shiftPlanjson ); | 
|     } | 
|     loginfo.RequestBody( jsonarray.Build().AsString() ); | 
|     info( loginfo.RequestBody() ); | 
|     data     := InterfaceLoginfo::CallInterfaceForDataCenter( loginfo.InterfaceDataset(), loginfo ); | 
|     info( '----------------', data.AsString() ); | 
|   *] | 
| } |