|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
' N+ M; I; E/ |1 K, U# E! s6 w9 i2 Y) ~& C. H
begin P_wait arriving% n0 m8 C; [& M* Q: |
if this load type=L_a1 then, Z0 u- g3 A0 |7 E, n1 Z
wait to be ordered on OL_1
+ M2 Z- V) ?, r( [ if this load type=L_b1 then5 K8 x- G8 U9 I
wait to be ordered on OL_2
3 t3 O" o% R1 D, B) Z) \ send to P_assemble4 z9 l- M4 Z$ C- ?
end
& f$ \# m* h1 s* ^; b! T! ]9 |1 c" y: b" U$ q3 l( A
begin P_assemble arriving
* a3 A* z, M( q5 E order a load from OL_1 to die
$ |0 n5 H9 ?" R7 Y1 ] in case order not filled backorder on OL_1
8 G" [4 S+ m$ i K) D3 r8 ~# l order a load from OL_2 to continue
; X0 ?. h: K; W' d9 S* t in case order not filled backorder on OL_2" |$ ?) |1 `9 ~/ U/ G9 q; ?4 p
set load type to L_product
1 F* O0 V: i) T5 \( G get R_massm3 `# t, v" \4 t5 Y
wait for normal 5,1 min/ w4 I$ @$ s' |6 O: a6 r
free R_massm( e+ Z U, Q: Q9 h" o% @; d* ~: a
move into Q_stock
% B/ O, L5 ]: M) [ Cend |
|