| 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
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod SynchronizePanelMaterialVehicle ( |  |   MacroPlan macroPlan, |  |   PanelMaterialAll pma |  | ) |  | { |  |   TextBody: |  |   [* |  |     traverse ( pma, PanelMaterialVehicle, pm ) { |  |       targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = pm.ProductID() ); |  |       if ( isnull( targetProduct_MP ) ) { |  |         error( "融合数据失败,不存在产品:", pm.ProductID() ); |  |       } |  |       targetStockingPoint_MP := select( macroPlan, StockingPoint_MP, tempSPMP, tempSPMP.ID() = "成品仓" ); |  |       if ( isnull( targetStockingPoint_MP ) ) { |  |         error( "融合数据失败,不存在库存点:", pm.StockingPointID() ); |  |       } |  |            |  |       CustomerOrder::Create( targetProduct_MP, |  |                              targetStockingPoint_MP, |  |                              pm.ID(), |  |                              pm.OrderDate(), |  |                              [Real]pm.Quantity(), |  |                              [Real]pm.Price(), |  |                              pm.PriorityName(), |  |                              pm.SalesSegmentName(), |  |                              pm.CurrencyID(), |  |                              pm.UnitOfMeasureName(), |  |                              false, |  |                              pm.Customer(), |  |                              pm.CustomerID(), |  |                              "", |  |                              "", |  |                              true, |  |                              true, |  |                              false |  |                             ); |  |     } |  |   *] |  | } | 
 |