¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod FindCreateUpdate ( |
| | | MacroPlan owner, |
| | | String spid, |
| | | Unit sourceunit, |
| | | Routing routing, |
| | | Boolean isfromdb |
| | | ) #extension |
| | | { |
| | | TextBody: |
| | | [* |
| | | stockingpoint := owner.FindStockingPoint( spid ); |
| | | parentunit := guard( owner.FindUnit( sourceunit.ParentUnitID() ), null( Unit ) ); |
| | | if( sourceunit.Name().FindString( Unit::GetThermalTrial(), 0 ) >= 0 ){ |
| | | parentunit := sourceunit; |
| | | } |
| | | uom := guard( owner.FindUnitOfMeasure( sourceunit.UnitOfMeasureName() ), null( UnitOfMeasure_MP ) ); |
| | | currency := guard( owner.FindCurrency( sourceunit.CurrencyID() ), null( Currency_MP ) ); |
| | | |
| | | if( isnull( stockingpoint ) ) |
| | | { |
| | | stockingpoint := StockingPoint_MP::Create( spid, |
| | | owner, |
| | | parentunit, |
| | | spid, |
| | | '', //iconname |
| | | uom, |
| | | currency, |
| | | routing.AllowWIPInventory(), |
| | | sourceunit.StartDate(), |
| | | sourceunit.EndDate(), |
| | | null( Group ), |
| | | '', //giscountrycode |
| | | '', //giscity |
| | | '', //gispostalcode, |
| | | '', |
| | | isfromdb ); |
| | | } |
| | | else |
| | | { |
| | | stockingpoint.Update( parentunit, |
| | | spid, |
| | | spid, |
| | | uom, |
| | | currency, |
| | | stockingpoint.IconName(), |
| | | routing.AllowWIPInventory(), |
| | | sourceunit.StartDate(), |
| | | sourceunit.EndDate(), |
| | | stockingpoint.Group(), |
| | | stockingpoint.GISCountryCode(), |
| | | stockingpoint.GISCity(), |
| | | stockingpoint.GISPostalCode(), |
| | | stockingpoint.Notes(), |
| | | isfromdb ); |
| | | } |
| | | return stockingpoint |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | TypeSpecialization StockingPoint_MP #extension |
| | | { |
| | | } |
| | |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Jun-14-2024 (created) |
| | | return 'çå¼'; |
| | | return 'çè¯'; |
| | | *] |
| | | } |
| | |
| | | value := ifexpr( this.HasUnitCapacity(), this.UnitCapacity().MaxCapacity(), this.MacroPlan().GlobalParameters_MP().DefaultMaxCapacityPerDayForUnit() ); |
| | | |
| | | if( this.Unit().Name().FindString( Unit::GetThermalTrial(), 0 ) >= 0 ){ |
| | | value := ifexpr( this.HasUnitCapacity() and this.Unit().Name().FindString( 'åæ¹éçå¼', 0 ) >= 0 and this.UnitCapacity().Start() = this.Start(), this.UnitCapacity().MaxCapacity(), this.MacroPlan().GlobalParameters_MP().DefaultMaxCapacityPerDayForUnit() ); |
| | | value := ifexpr( this.HasUnitCapacity() and this.Unit().Name().FindString( 'åæ¹éçè¯', 0 ) >= 0 and this.UnitCapacity().Start() = this.Start(), this.UnitCapacity().MaxCapacity(), this.MacroPlan().GlobalParameters_MP().DefaultMaxCapacityPerDayForUnit() ); |
| | | } |
| | | this.MaxCapacityPerTimeUnit( value ); |
| | | *] |
| | |
| | | Title: '设置产åç¬å¡å·¥èºè·¯çº¿' |
| | | ] |
| | | } |
| | | Component MenuTest |
| | | { |
| | | #keys: '[415136.0.789811702]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 14 |
| | | Title: 'Test' |
| | | ] |
| | | } |
| | | ] |
| | | } |