| 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
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod Update ( |  |   StockingPoint_MPs stockingpoints_i, |  |   Boolean isBatchEditInfinite, |  |   Boolean isBatchEditValidity, |  |   Boolean isBatchEditGIS, |  |   Boolean isBatchEditNote, |  |   String id, |  |   String name, |  |   Unit belongsto, |  |   UnitOfMeasure_MP unitofmeasure, |  |   Currency_MP currency, |  |   String usericonname, |  |   Boolean isplannedinfinite, |  |   Date start, |  |   Date end, |  |   Group group, |  |   String giscountrycode, |  |   String giscity, |  |   String gispostalcode, |  |   String notes, |  |   Boolean isfromdb |  | ) |  | { |  |   Description: 'update methods for web client, with support of batch editing' |  |   TextBody: |  |   [* |  |     // gdn1 Aug-23-2018 (created) |  |     traverse( stockingpoints_i, Elements, sp ) |  |     { |  |       // Exception on batch edit  |  |       if( stockingpoints_i.Size() > 1 ) |  |       { |  |         // attributes that has no change on batch editing |  |         id          := sp.ID(); |  |         name        := sp.Name(); |  |         belongsto   := sp.Unit(); |  |         unitofmeasure:= sp.UnitOfMeasure_MP(); |  |         currency     := sp.Currency_MP(); |  |          |  |         group        := sp.Group(); |  |         usericonname := sp.IconName(); |  |          |  |         //if no batch edit, set it with original unit's value |  |         if( not isBatchEditInfinite ) |  |         { |  |           isplannedinfinite := sp.IsPlannedInfinite(); |  |         } |  |          |  |         if( not isBatchEditValidity ) |  |         { |  |           start := sp.Start(); |  |           end   := sp.End(); |  |         } |  |      |  |         if( not isBatchEditGIS ) |  |         { |  |           giscity         := sp.GISCity(); |  |           giscountrycode  := sp.GISCountryCode(); |  |           gispostalcode   := sp.GISPostalCode(); |  |         }                                                    |  |      |  |         if( not isBatchEditNote ) |  |         { |  |           notes := sp.Notes(); |  |         } |  |       } |  |        |  |       sp.Update( belongsto |  |                 ,id |  |                 ,name |  |                 ,unitofmeasure |  |                 ,currency |  |                 ,usericonname |  |                 ,isplannedinfinite |  |                 ,start |  |                 ,end |  |                 ,group |  |                 ,giscountrycode |  |                 ,giscity |  |                 ,gispostalcode |  |                 ,notes |  |                 ,isfromdb  |  |                  ); |  |     } |  |   *] |  | } | 
 |