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
| #parent: #root
| StaticMethod CreateOrUpdate (
| ManufactureLTImputation parent,
| String processSection,
| Boolean edited,
| String seq,
| String line,
| Real systemLt,
| Real editLt,
| String desc
| ) as ManufactureLTProcessSection
| {
| TextBody:
| [*
| // yypsybs Aug-25-2023 (created)
| value := select( parent, ManufactureLTProcessSection, item, item.ProcessSection() = processSection and item.Sequence() = seq and item.Line() = line );
| if( isnull( value ) ) {
| info( "create systemLt : " + [String]systemLt );
| value := parent.ManufactureLTProcessSection( relnew,
| ProcessSection := processSection, Sequence := seq, Line := line, SystemLT := systemLt,
| Edited := edited, EditLT := editLt, Describe := desc );
| } else {
| info( "update systemLt : " + [String]systemLt );
| // update时不更新Edited,EditLT,Describe
| value.SystemLT( systemLt );
| }
| return value;
| *]
| }
|
|