|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
L4 R0 d1 T* ?9 W
6 Z# [: w8 m5 U. c# q. w) |begin P_wait arriving% K8 i# F, B3 p$ n& y) B
if this load type=L_a1 then6 h- C" Z4 R7 R
wait to be ordered on OL_1- n5 v0 T) t$ V7 Y! Q' _
if this load type=L_b1 then* P& ~ v5 x/ s
wait to be ordered on OL_2
5 u' ]2 |1 Y, b ?& R send to P_assemble
L P, B9 L5 n. Hend
0 f8 {. x. d8 T5 A( U+ r
8 q: A% B- }7 ` ?" h9 R1 H8 s3 gbegin P_assemble arriving/ [. I. F/ m& N2 H& A% l7 i4 p% s
order a load from OL_1 to die/ k: U* f8 J- M& m, \8 y' L' r. i
in case order not filled backorder on OL_1 _8 G8 K# j; k8 p# a- x7 b
order a load from OL_2 to continue
; B0 m n6 H. k+ p# Y in case order not filled backorder on OL_2
$ J1 V, f* v( O7 D& V9 \ set load type to L_product* @1 k6 b* L3 v' w8 _
get R_massm
8 v0 I+ \7 j3 z" j* P. u2 Q* Z$ g; L wait for normal 5,1 min
+ {) r( X/ e! |; {" l9 C7 d* p1 y free R_massm
8 x# c3 H% T/ j9 k move into Q_stock
* h% o' o! n. o% I8 O0 o( U0 H) Bend |
|