|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。/ ~ a) v7 f* ]( k+ g7 q
( M: n+ X2 y# M& kbegin P_wait arriving
. `" P8 \# o( s& b. a, E) r if this load type=L_a1 then
1 t9 N9 H8 `/ x# ^* P wait to be ordered on OL_17 |- `( j, K6 k/ F+ |' R6 Z& r
if this load type=L_b1 then
- D- ?& J# f- p2 A+ y/ g wait to be ordered on OL_2$ n9 z; w8 C0 j1 A
send to P_assemble
. S. F. k% O7 c$ |$ K9 U3 H: M" I2 t& dend
9 S# }( W P1 a6 H: o4 I1 h3 b @ o) S% [
begin P_assemble arriving
2 t2 C) q% F3 w# B order a load from OL_1 to die
% {1 |+ w* n. l% k in case order not filled backorder on OL_1
, p, G6 |5 k) { l# d order a load from OL_2 to continue0 B3 a& B) ]& k( w2 q+ z) M; @
in case order not filled backorder on OL_2
+ D H$ H# V( ?; U set load type to L_product
, ~( @( B7 ?$ {7 h# j$ C get R_massm
( m3 u; J" N7 }4 p: |5 | wait for normal 5,1 min3 U: W. R$ c: i2 u6 A/ f+ i
free R_massm
\+ C. W$ Z/ }+ r) M7 A) @. L move into Q_stock6 M; q8 N/ B1 h( A# ?
end |
|