|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
+ v5 }, w2 i3 `# X/ V/ L' v1 \" g! ~, r; e. _3 V4 R R
begin P_wait arriving
* V( S7 K9 r7 V* \ if this load type=L_a1 then( h" ~4 a: a! n1 b2 j
wait to be ordered on OL_1
& P" ?; s5 x+ Q3 Z if this load type=L_b1 then# \6 _% j$ j! W# m" H Y. L
wait to be ordered on OL_2
4 Q4 m! l* X# r# H0 C0 Q send to P_assemble3 j }, {: q$ o- V U- p6 K
end& B. u7 O$ p6 s
0 r. } ~8 ^3 X8 b8 U; Vbegin P_assemble arriving; X) a) ?6 ~/ l5 g5 B* r
order a load from OL_1 to die+ Y$ E, [% g1 o) x- Y% H
in case order not filled backorder on OL_19 f5 l0 |, P$ T4 T( W+ P; x
order a load from OL_2 to continue6 T' [* `7 F- i
in case order not filled backorder on OL_2
. n- ?9 u! V& ` set load type to L_product: r I1 N o' `4 R
get R_massm
5 W- D1 q& h3 I, f$ S( [4 N0 z# C wait for normal 5,1 min
2 O( r6 x3 o/ `8 ^9 ], l3 A free R_massm
- Y9 Z7 P; \" K- T y9 ? move into Q_stock
! @. q% g9 B3 ~9 L- o$ Q/ qend |
|