yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
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
Quintiq file version 2.0
#root
#parent: #DomainModel
Type Assumption
{
  #keys: '5[110880.3.1733177328][110880.3.1733177326][0.0.0][110880.3.1733177327][110880.3.1733177329]'
  BaseType: Object
  Description:
  [*
    MP
    Assumption of scenarios.
  *]
  OnCommit:
  [*
    //Assign the appropriate values to CreatedBy and CreatedOn if the assumption is new, and assign the appropriate values to ChangedBy and ChangedOn if the assumption is edited
    username := GlobalParameters_MP::GetUserName();
    time := DateTime::Now();
    
    if( isnew )
    {
      this.ID( OS::GenerateGUIDAsString() ); 
      this.CreatedBy( username );
      this.CreatedOn( time );
    }
    // Default changed by and changed on to the creator
    this.ChangedBy( username );
    this.ChangedOn( time );
  *]
  StructuredName: 'Assumptions'
}