现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。 ( E; I: o4 }) |: t) q ! }. b* \: T3 s/ Y+ {begin P_wait arriving & J* ~. k4 p$ N4 J if this load type=L_a1 then : k1 `- E0 n. U+ A4 } wait to be ordered on OL_19 }$ ~3 z0 _" X k+ Z+ v( i
if this load type=L_b1 then& G& H+ l# V$ a3 O
wait to be ordered on OL_2 6 D2 T: D5 z+ f. ]/ b send to P_assemble. N- ?8 x: G3 H9 K6 I! p
end/ L9 g. R7 ~2 E6 b; |
1 R* X- r3 {- q* I `7 Mbegin P_assemble arriving 3 d- f# g1 R. w' e% ] order a load from OL_1 to die- r7 J( K) E7 d% i# t( r% g
in case order not filled backorder on OL_1 . t- s: b8 D) ]! {: ` order a load from OL_2 to continue 1 Y' ^7 P" c8 I& J/ T2 i5 o in case order not filled backorder on OL_2% @- d% V9 Z$ L. e
set load type to L_product 1 q" @1 ]( i0 f6 h0 m# s% T get R_massm # ]* L6 G+ o. i: T2 f4 N wait for normal 5,1 min4 b4 c; D1 O. E5 [' s7 O
free R_massm ( @% ^5 i4 U0 O- }: V( Z5 F5 y move into Q_stock. _$ e+ G2 w8 x. m- O2 [
end