|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。( n6 H1 }4 v7 A5 l* @+ m: o4 w
# C- B* s, k% A# h/ F z$ lbegin P_wait arriving! E* U F/ J9 Z" ^/ ~! f
if this load type=L_a1 then
$ q) o5 H" }. s2 I7 ?" Y wait to be ordered on OL_1) x& w- {, D" i4 R7 q
if this load type=L_b1 then
8 w; ^2 a. E/ ?: a wait to be ordered on OL_27 b6 K3 U/ @5 A6 N h" q
send to P_assemble. U% R* J1 C% A( b1 m+ R8 @
end/ O" K: o) {3 h8 u% P/ c* @# u
' h4 ?! U A/ J3 ~% f2 vbegin P_assemble arriving2 Q- @; S, J* P3 T d b1 Y
order a load from OL_1 to die
2 k4 Y% A. g2 f$ g5 A in case order not filled backorder on OL_1
# g# P7 j, Q- T) k$ O0 K order a load from OL_2 to continue9 H: M2 ]: |' @
in case order not filled backorder on OL_2
# J& J2 m L I# L set load type to L_product3 v8 X1 I: K Q6 K {
get R_massm
8 s; T% n4 d) Z% H' Y+ E: r4 ] wait for normal 5,1 min
7 q3 U1 w3 F; O& r/ N/ C1 J free R_massm
, w2 ^- d* y4 H4 y( T/ y move into Q_stock
% ?" q" D5 U) B: `2 q$ Gend |
|