|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。7 p+ x8 |3 @& T6 q' S
! j' V6 S8 A. }. O% o5 V: ] \
begin P_wait arriving% a9 m2 h' M0 m9 T9 `
if this load type=L_a1 then# C. p8 r# c* i( D& ~
wait to be ordered on OL_1
# |* X8 Z2 a7 ~' C) ~( D; N! q if this load type=L_b1 then) K. \5 k( R/ u6 Z# z K- A3 G
wait to be ordered on OL_21 ?* w! Z3 r5 s; }( u5 T I
send to P_assemble9 o- R" c) A3 A5 N
end
/ c% z2 W8 H5 q' x
+ Z. x& b! e* T- C8 Ebegin P_assemble arriving& P/ P8 Y% G; l# V$ A; n
order a load from OL_1 to die
# s7 W2 j, z3 S" ~) Q. ? in case order not filled backorder on OL_1
6 r2 T4 [& P8 c1 ^+ _; S0 c order a load from OL_2 to continue
& X( f1 B: i- W6 j$ E in case order not filled backorder on OL_2
% ^! U+ x, u/ u$ d; k' K set load type to L_product1 g4 X6 X0 V4 e+ t4 a& g
get R_massm
4 t. n/ i$ M7 J) j7 i& H wait for normal 5,1 min- g9 q$ s& k, d5 x& b% U0 M6 d
free R_massm( k2 ^9 ]' E" e @( D8 @
move into Q_stock u/ W# |6 s: H+ N! l: ~2 l: y
end |
|