|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
. K. ^2 H/ O# j# O- O) F. C f# Y3 b0 w: e
begin P_wait arriving7 h- A& J8 z, m5 Z4 ~2 i5 J
if this load type=L_a1 then
, J$ h' |$ H. h, s/ O& B9 N! c wait to be ordered on OL_12 H! Y' S2 H' p) [1 b W( T
if this load type=L_b1 then+ Z5 M& u# H" m- O t) W
wait to be ordered on OL_2, Z2 k! z3 u, s$ o7 M. m
send to P_assemble
1 \& S4 F7 A8 e# Gend; t- ]8 d" [. t, p
2 [ ^ ~/ e" y r# J3 Qbegin P_assemble arriving5 d" B! W' q/ k% O. [( H- X9 Z% v' a6 ]
order a load from OL_1 to die
1 @5 {% J6 k [# H' c7 j6 p in case order not filled backorder on OL_1
' Z( g+ j; l( u order a load from OL_2 to continue' b9 G+ H( _7 W) i b2 h# G
in case order not filled backorder on OL_2
# K$ L. p, u9 |9 b set load type to L_product
! N! x3 s/ d3 c0 P. J, X5 y get R_massm) ?, e. Z, G" g, T) _' x) ^3 P/ [
wait for normal 5,1 min
# Y$ J) J! ^5 Q9 g! e free R_massm
( h8 v. _0 [3 a0 R move into Q_stock
% `! ~: J6 I# l% t, b0 I7 \end |
|