|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
8 @& a! r8 Y3 G6 s: y1 E- [+ f& f# [$ t# {8 k4 `
begin P_wait arriving
2 L5 M, _5 S, F3 n8 B4 Y if this load type=L_a1 then/ X9 O# R" f9 p% m/ W0 w8 P2 E
wait to be ordered on OL_1, P2 ]+ M! D0 b- J* `
if this load type=L_b1 then
9 c: o, H7 T- H wait to be ordered on OL_2
, s6 M4 U! y' R) d) t4 F send to P_assemble
" h9 `" Y2 I! B) e! S) Z$ T' X8 w# aend
r! [) z' D2 I. c' ` x) l+ u/ H; E4 {. d
begin P_assemble arriving
# @+ H. [1 G( r/ E- r order a load from OL_1 to die
+ s& S5 [# X7 s# e7 h in case order not filled backorder on OL_1
I/ u! ^' S3 c4 n+ F% G: A- t; ]1 N order a load from OL_2 to continue/ \5 J9 \( |. d- n' E
in case order not filled backorder on OL_2' r) H9 R2 G$ {
set load type to L_product
, n; V9 {/ ^" O6 P1 I. Q get R_massm
- p7 Q/ _, H) X ~/ D$ N6 n wait for normal 5,1 min$ Q9 Q. l4 j& F' {- l% S
free R_massm9 O6 p# s2 s' e1 r$ G
move into Q_stock$ Y) Q9 S# H: y6 T4 s# J) K9 b
end |
|