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
| Quintiq file version 2.0
| #parent: #root
| Method Update (
| String operationid,
| DateTime starttime,
| Real feedbackquantity,
| String description,
| Boolean isplannedexact,
| Boolean isfromdb
| )
| {
| Description: 'Update all attributes and sync period task'
| TextBody:
| [*
| this.OperationID( operationid );
| this.DateTime( starttime );
| this.IsLocked( isplannedexact );
|
| this.Update( feedbackquantity , description, isfromdb );
|
| // skip sync in importing, it will be done in post process InitializeFeedbackAfterImport
| if( not this.MacroPlan().IsImporting() )
| {
| // propagate relation to determine if any matching PIT, if not resync
| Transaction::Transaction().Propagate( relation( FeedbackPeriodTaskOperation, PeriodTaskOperation ) );
| isneedsync := isnull( this.PeriodTaskOperation() );
|
| if( isneedsync )
| {
| fptos := construct( FeedbackPeriodTaskOperations );
| fptos.Add( this );
|
| FeedbackPeriodTaskOperation::Synchronize( fptos );
| }
| }
| *]
| }
|
|