¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute StockingPoint |
| | | { |
| | | #keys: '3[415136.0.1367364685][415136.0.1367364684][415136.0.1367364686]' |
| | | ValueType: String |
| | | } |
| | |
| | | , DemandQty := [Number]archivedata.Quantity() |
| | | , VersionName := macroplan.ScenarioName() |
| | | , InterfaceTime := nowdate |
| | | , StockingPoint := archivedata.StockingPointID() |
| | | , FactoryName := archivedata.FactoryName() |
| | | , Fac := ifexpr( archivedata.FactoryName() = FinancialProductionReport::GetDefaultCCUnit(), 'CC', 'DL' ) |
| | | // , VersionFlag := versionflag |
| | |
| | | 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 ); |
| | | } |
| | |
| | | //åå½åçæ¬çproduct planningénew supplyåæ®µï¼å大è¿åé¿æ¥å·¥åç产线ï¼è¿è¡å æ» |
| | | traverse( owner, StockingPoint_MP, stockingpoint, stockingpoint.ID().EndsWith( 'åå
åº' ) or stockingpoint.ID() = '大è¿å¤ç§åº' ){ |
| | | iscc := stockingpoint.ID().StartsWith( 'CC' ) or stockingpoint.ID().StartsWith( 'é¿æ¥' ); |
| | | isdl := stockingpoint.ID().StartsWith( 'DL' ) or stockingpoint.ID().StartsWith( '大è¿' ); |
| | | isdl := stockingpoint.ID().StartsWith( '大è¿' ); |
| | | |
| | | if( iscc or isdl ){ |
| | | traverse( stockingpoint, ProductInStockingPoint_MP, pisp, pisp.Product_MP().IsLeaf() |