|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。 z( t8 P6 M: o$ G
: M0 f! M/ z! l( V7 S
begin P_wait arriving, i8 F8 Z u4 O9 Y; J; w3 K
if this load type=L_a1 then
2 P) H8 l& c* ]6 g; O, F wait to be ordered on OL_13 Z% c$ R7 h- h. R$ l
if this load type=L_b1 then$ m4 ]6 Q$ A: w4 f! o
wait to be ordered on OL_2
* M, T2 A Y" x2 T- V! x7 A( z send to P_assemble
% s( P. \9 {/ b6 r1 r1 Bend) f) c. V: y' [9 Y; @+ K
' h- ]6 S5 x8 W$ y! a, S7 J
begin P_assemble arriving
/ [0 y' n8 m" B6 S7 M9 R: \$ h/ P order a load from OL_1 to die1 s/ \+ g8 }: l% }* q
in case order not filled backorder on OL_17 p9 {* ~, M6 m |* X1 v9 `
order a load from OL_2 to continue6 W) t+ W& H8 H( F" _5 }& I1 C8 G
in case order not filled backorder on OL_28 ?( W! T1 m5 v+ G
set load type to L_product
6 D) c+ k& H4 u! P get R_massm
2 z7 o. k4 g8 `9 S8 [! E wait for normal 5,1 min- \! O9 s& z/ u3 G+ t
free R_massm7 D9 Y4 b# D3 D1 o) L6 R3 Z$ t
move into Q_stock$ V; e# |) e9 `1 |
end |
|