1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
| Quintiq file version 2.0
| #parent: #root
| StaticMethod MenuEdit (
| LibUTF_IterationRun run,
| MacroPlan macroplan,
| String id,
| NamedValueTree nvt_unit
| )
| {
| TextBody:
| [*
| instance := UI_Unit::FindSingle( run, macroplan, true, id );
| dto := DTO_Unit::ConstructEdit( run, instance, nvt_unit );
| parent := UI_Unit::FindSingle( run, macroplan, false, dto.ParentUnitID() )
| group := macroplan.FindGroup( dto.GroupName() );
| uom := macroplan.FindUnitOfMeasure( dto.UnitOfMeasurementName() );
| currency := macroplan.FindCurrency( dto.CurrencyID() );
| instance.Update( dto.ID(),
| dto.Name(),
| parent,
| dto.CapacityType(),
| group,
| uom,
| currency,
| dto.StartDate(),
| dto.EndDate(),
| dto.CampaignTypeDuration(),
| dto.IsPlannedInfinite(),
| dto.MinimumQuantity(),
| dto.HasMaximumQuantity(),
| dto.MaximumQuantity(),
| dto.LotSize(),
| dto.IconName(),
| dto.QuantityToProcess(),
| dto.GISCountryCode(),
| dto.GISCity(),
| dto.GISPostalCode(),
| dto.Notes(),
| dto.HasCapacitySmoothing(),
| dto.IsSmoothCapacityOverAllPeriods(),
| dto.UserCapacitySmoothingLength(),
| dto.CapacitySmoothingPercentageDelta(),
| dto.IsOverlapCapacitySmoothing(),
| dto.IsIncludeInSupplySpecification(),
| dto.IsSupplier(),
| dto.HasUserFrozenFutureDuration(),
| dto.UserFrozenFutureDuration(),
| dto.UseShiftOptimization(),
| false );
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|