hongji.li
2023-11-07 1a1ba3ad5ed9e4380185aa1ccad20204a0e5f115
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
Quintiq file version 2.0
#parent: PanelMatrix/MatrixEditorCycleOverview
Response OnUpdateValue (
  SWF_Step cell,
  Date value
) id:Response_PanelMatrix_MatrixEditorCycleOverview_OnUpdateValue
{
  #keys: '[136682.0.893158704]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebMatrixEditor_OnUpdateValue'
  Precondition:
  [*
    return SWF_WorkflowDataset.GetCurrentUser().CanProcessStep( feedback,
                                                                cell,
                                                                SWF_Step::ACTION_OverrideDueDate() );
  *]
  QuillAction
  {
    Body:
    [*
      // Override the due date of the
      if ( guard( value >=cell.Workflow().StartDate(), false ) ) 
      {
        SWF_WorkflowDataset.Service().TR_CreateUpdateStep
                  ( cell.ID()
                  , cell.Name()
                  , guard( cell.ParentStep().ID(), Key::ZeroKey() )
                  , cell.HasExpectedCompletionDateManual()
                  , cell.ExpectedCompletionDateManual()
                  , true
                  , value
                  , guard( cell.AssignedAuthorization().DisplayName(), '' )
                  );
      }
    *]
    GroupServerCalls: false
  }
}