admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Quintiq file version 2.0
#parent: #root
MethodOverride UpdateWithPartialNVT (
  NamedValueTree partialnvt
)
{
  TextBody:
  [*
    // WARNING: DO NOT MODIFY THIS METHOD DIRECTLY AS IT WILL BE OVERWRITTEN.
    
    typenode := partialnvt.Root();
    
    traverse( typenode.Children(), Elements, child )
    {
      if( child.Name() = attribute( DTO_Campaign, Z_FulfilledDuration ).Name() )
      {
        this.FulfilledDuration( child.GetValueAsDuration() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_CampaignID ).Name() )
      {
        this.CampaignID( child.GetValueAsString() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_CampaignTypeName ).Name() )
      {
        this.CampaignTypeName( child.GetValueAsString() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_Comment ).Name() )
      {
        this.Comment( child.GetValueAsString() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_Duration ).Name() )
      {
        this.Duration( child.GetValueAsDuration() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_EarliestStart ).Name() )
      {
        this.EarliestStart( child.GetValueAsDateTime() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_End ).Name() )
      {
        this.End( child.GetValueAsDateTime() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_FulfilledQuantity ).Name() )
      {
        this.FulfilledQuantity( child.GetValueAsReal() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_HasInputMaxDuration ).Name() )
      {
        this.HasInputMaxDuration( child.GetValueAsBoolean() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_HasInputMaxQuantity ).Name() )
      {
        this.HasInputMaxQuantity( child.GetValueAsBoolean() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_HistoricalTransitionDuration ).Name() )
      {
        this.HistoricalTransitionDuration( child.GetValueAsDuration() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_MaxDuration ).Name() )
      {
        this.MaxDuration( child.GetValueAsDuration() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_MaxQuantity ).Name() )
      {
        this.MaxQuantity( child.GetValueAsReal() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_MinDuration ).Name() )
      {
        this.MinDuration( child.GetValueAsDuration() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_MinQuantity ).Name() )
      {
        this.MinQuantity( child.GetValueAsReal() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_SequenceNumber ).Name() )
      {
        this.SequenceNumber( child.GetValueAsNumber() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_SequenceNumberForExcel ).Name() )
      {
        this.SequenceNumberForExcel( child.GetValueAsNumber() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_Start ).Name() )
      {
        this.Start( child.GetValueAsDateTime() );
      }
      else if( child.Name() = attribute( DTO_Campaign, Z_UnitID ).Name() )
      {
        this.UnitID( child.GetValueAsString() );
      }
    }
  *]
}