limj
2023-09-21 89c96171bb971dcaed7cf289b58ef44ca689523c
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
Quintiq file version 2.0
#parent: Panel675/ButtonClear
Response OnClick () id:Response_Panel675_ButtonClear_OnClick
{
  #keys: '[414724.0.58894009]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  Precondition:
  [*
    return not isnull( MacroPlan);
  *]
  QuillAction
  {
    Body:
    [*
      try{
        H_FunctionClass::UpdateAuthorizeRealQty( MacroPlan);
        /*
        ExecuteCount :=0;
        while(not isnull(MacroPlan.H_ReverseRealQty(relget ).First())  and ExecuteCount<20)
        {
          MacroPlan.H_ErrorLogs(relnew,EClassName := "1",EDateTime := DateTime::ActualGMTTime(),EFunctionName := ExecuteCount.AsQUILL());
          ExecuteCount:=ExecuteCount+1;
          MacroPlan.H_ReverseRealQty(relget ).First().Delete();
        }
        */
      }
      onerror{
        MacroPlan.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "UpdateMaterialItems",
                             DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
                             GeneralInformation := e.GeneralInformation());
      }
    *]
  }
}