| 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
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method CreateTestData ( |  |   MacroPlan macroplan, |  |   String locationid, |  |   String productid, |  |   String salessegmentid, |  |   String uom, |  |   String currencyid, |  |   BinaryValue dates, |  |   BinaryValue quantity1, |  |   BinaryValue quantity2, |  |   BinaryValue quantity3 |  | ) |  | { |  |   Description: 'Create mockup data for LibDec_ManufacturingDemand' |  |   TextBody: |  |   [* |  |      |  |      |  |     set := construct( LibDEF_Set, |  |                       ChannelName := LibDEC_ChannelManufacturingDemand::CHANNEL_NAME(), |  |                       GUID := LibDEF_Util::GenerateGUID(), |  |                       Name := "Test unconstraint forecast from DP", |  |                       SetTypeName := LibDEC_ChannelManufacturingDemand::SETTYPE_NAME_Unconstrained_Forecast());  |  |          |  |          |  |          |  |         set.SetObject( relnew, LibDEC_ManufacturingDemand,   |  |                                ID := '1', |  |                                CurrencyID := currencyid, |  |                                Dates := dates, |  |                                CommercialSegmentID := salessegmentid, |  |                                LocationID := locationid, |  |                                ProductID := productid, |  |                                Quantities1 := quantity1, |  |                                Quantities2 := quantity2, |  |                                Quantities3 := quantity3, |  |                                UnitOfMeasureID := uom  |  |                        ); |  |          |  |        |  |      macroplan.DataTransformationDefinition().ProcessSet( set, true ); |  |   *] |  |   InterfaceProperties { Accessibility: 'Module' } |  | } | 
 |