|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。0 C& _* j! e% N% |! i
) z' ?' Z3 d$ i E
begin P_wait arriving
3 N* h/ v* |- j# y/ L if this load type=L_a1 then( A+ ?8 f& X9 [1 E( x6 n: ^! v$ b9 `
wait to be ordered on OL_1$ d$ l& N2 H$ b2 D
if this load type=L_b1 then
$ j$ ]+ C6 j8 o3 W. s6 |; k+ H8 o$ } wait to be ordered on OL_2
. M3 O: m4 G1 M5 j send to P_assemble/ N2 n" x3 Y& k2 L" D
end& v, \! F$ k) K B) d0 o, X* P
7 J2 x0 [$ W/ a7 b; l
begin P_assemble arriving4 v. q" ]' C" X' T5 g
order a load from OL_1 to die) z' N- c' W j2 r
in case order not filled backorder on OL_1
) N; @, g% o7 [; y order a load from OL_2 to continue
4 Z# Z/ v. O: N, X& r E. p in case order not filled backorder on OL_2' A) P, b) n$ Z3 a' F4 N0 p9 Z
set load type to L_product
, K" [7 [- a$ K/ v3 d get R_massm+ V3 ~) b" Y/ Z z8 n1 V2 B
wait for normal 5,1 min
2 |9 x3 O2 n9 C, X. S9 a free R_massm3 S$ P% U/ }5 v2 P4 q) w
move into Q_stock
* z/ x& b# J( g# M, r$ K, Uend |
|