|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。; X4 z6 r6 W/ c, O6 l+ z
, g& S0 s3 d% C( D
begin P_wait arriving, V$ |# y# d! L+ `
if this load type=L_a1 then* W9 F2 s7 K, K' q6 l. s
wait to be ordered on OL_1
- n" d/ [) Q) H0 F if this load type=L_b1 then
0 D( K6 D1 U2 o0 g! M wait to be ordered on OL_2
# u1 a/ C' R1 }2 o" H5 P, p send to P_assemble. F% y$ J; t5 {! l3 G
end
# F" q5 ]6 p, \# Y; B2 X& M: O
9 o, A7 B; R1 r# xbegin P_assemble arriving; ^/ i# R8 ?. E1 Z c1 T* R3 v
order a load from OL_1 to die/ ?9 I* J' ~1 Y6 ?- |
in case order not filled backorder on OL_1& E8 q) I$ N" |7 C
order a load from OL_2 to continue; ]7 k% n1 F" P: ]/ i: u8 h b
in case order not filled backorder on OL_21 s& W$ a. z5 P5 x/ n8 o
set load type to L_product7 H' M* \" G+ E/ b3 u0 F$ G
get R_massm
! T/ _6 |2 X2 E9 s3 O wait for normal 5,1 min
0 |% Z) D$ p# n: ^8 V* [/ {9 K free R_massm
( I& g# o4 B7 M/ K move into Q_stock) \- N8 C, T2 U8 e% n
end |
|