|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
: f: h& |7 b% f4 F( W- q' g T) k' O' F( T
begin P_wait arriving1 n6 O1 ~7 x7 P
if this load type=L_a1 then
9 d- T4 t6 Y8 ]( R& o wait to be ordered on OL_1; C, Q# i5 ]: h1 `. C3 F) p& s
if this load type=L_b1 then) L ~3 \/ q: Y" ?/ e- I# n$ s
wait to be ordered on OL_2
! p; x0 R9 ~" `' {% n send to P_assemble
2 ?# O; j' P# b7 R1 u; wend
( o7 b6 ^6 }( o5 o* }" O# l
4 D; r. [! l7 D3 F' Y0 F# Nbegin P_assemble arriving3 r3 m% ~% r# f. x6 `0 |8 E$ G+ C/ K; p
order a load from OL_1 to die& n' V2 F7 a% G5 c* _$ K1 O
in case order not filled backorder on OL_19 f3 t8 l- Y0 \5 E, p
order a load from OL_2 to continue1 y- G3 ?) O* j- p+ r% s# C2 z
in case order not filled backorder on OL_26 X y& N& q: n0 U" e' C/ E
set load type to L_product; E# S9 V4 U1 W0 `; X2 S. ] _
get R_massm
, g" C! c) Y9 ^$ X4 t wait for normal 5,1 min E! c5 ]9 a5 B8 {& S$ ~' v& q
free R_massm! t4 L7 c! N& @* {& l/ F2 j8 T
move into Q_stock
+ ]# P9 ~3 p f0 E4 Z+ }' n8 g! d) @1 ? mend |
|