|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
, a8 b& v) G {8 W1 V+ I' _( [
3 O0 v! y. _+ ?* V4 d3 obegin P_wait arriving4 g2 G2 D( ]7 P e, j
if this load type=L_a1 then
0 e9 l0 G, U& d wait to be ordered on OL_16 W4 N* h" L! M0 m( `. O3 e) \ w1 ~3 g
if this load type=L_b1 then
& f$ g3 |) u5 {$ o% k: j wait to be ordered on OL_2. P# N& C" s' e3 o. W% g
send to P_assemble5 D: f7 ]* Q5 v+ X9 w
end
5 C* {: }0 }0 W: i" n. f9 K$ u, d7 ~, n; K
begin P_assemble arriving
+ e* h' Z! R" w6 C% K" g) b2 G order a load from OL_1 to die+ ~+ v5 f1 P9 J
in case order not filled backorder on OL_1! i. Z6 L. v- V- M1 ^3 o* a" m
order a load from OL_2 to continue0 O! F5 u e2 E8 p/ u& s" D0 i
in case order not filled backorder on OL_2, J. E0 l" ^. `6 q8 {; p
set load type to L_product
9 E" p0 I; t' X# z) a, r/ X# N; H) e get R_massm
, [, l) z/ D2 q# l wait for normal 5,1 min
' T# t2 g# Z, ^* H9 K free R_massm
; |) C9 f$ y/ Z move into Q_stock; c" {) v# K$ O! L4 R
end |
|