|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。. M K1 M5 z' C/ O+ R( H
% Y' _0 S' C" F: B; b# g% Dbegin P_wait arriving9 o& D4 O; u! ^' [
if this load type=L_a1 then5 x4 Q/ \& P, V
wait to be ordered on OL_1
8 q2 H2 P; Q4 t2 J7 a/ T1 `# ?4 @; c if this load type=L_b1 then
5 p0 U* x7 @8 u% m2 m7 `4 M* o wait to be ordered on OL_2
: u+ T* C7 f4 Y) \ I: Y) ] send to P_assemble
+ I6 e& } P0 @4 B* O/ G4 ]end
; b/ }- `7 U2 G+ S
# t; \3 j. A& ~7 m V* v+ ibegin P_assemble arriving. K7 v+ z( A. S, F& D) B
order a load from OL_1 to die2 _; \# p6 N9 X
in case order not filled backorder on OL_1
2 M$ v" C5 h. S+ M W( T4 C order a load from OL_2 to continue/ m2 w0 R3 W" t7 a ^0 g
in case order not filled backorder on OL_2
5 U5 e& C4 h. Y& w- ] set load type to L_product* Z' x3 A" I- k9 r* T
get R_massm
- t4 R O, h" w6 N, q/ M( y wait for normal 5,1 min x8 N0 M% i% s- V! O6 H% u! U9 P, Q
free R_massm( L0 T, n; ]& O- F" Q1 v
move into Q_stock
! I5 E% M* m" @end |
|