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
| Quintiq file version 2.0
| #parent: #root
| StaticMethod UpdateQuantity (
| NewOfflinePlanCell nopc,
| Real value,
| String attrName
| )
| {
| TextBody:
| [*
| if ( value < 0 ) {
| error( "数量不能为负" );
| }
|
| nopc.Quantity( value );
|
| // 数量为0,修改Order
| if ( value = 0 ) {
| nopc.Order( "" );
| nopc.OrderNr( 0 );
| }
|
| // 如果数量不为0,修改Order
| *]
| }
|
|