在使用Order List时,当一个order list满足不了order的数量,要用第二个甚至第三个order list,有一段程序,请大虾解释一下,多谢!程序如下:( i# w6 `2 A& g6 y; O
begin P_Order arriving procedure% B( i. ~5 T0 t6 f3 k
set V_NumWanted to 10 7 n. z7 Z$ D2 o4 ]+ E1 x set V_NumOnList to OL_List1 current value, G$ t# ] V5 W9 ?: c
order V_NumWanted loads from OL_List1 to P_NextProc / t+ w# @# i3 ~" H in case order not filled * ]7 E: ]; x) D- u9 m! D begin 7 Q2 f0 W! f5 u- \3 D3 G wait for .01 sec% \( t* J. S+ g1 G. u/ j% X% I
decrement V_NumWanted by V_NumOnList - OL_List1 current value n/ r( T; L( C9 t! t1 ~# S% E# @
set V_NumOnList to OL_List2 current value; F I5 c8 M9 E4 |
order V_NumWanted loads from OL_List2 to P_NextProc" O0 T8 V! A) n* I1 j
in case case order not filled % C8 M% M/ M1 `! j4 R {6 S/ b ................................................................. : c# A h9 h* ~, U+ u r' {8 @2 W5 j `# ?
! T c! o: N6 b% l5 c/ ~我就是不明白上面用红绿色作标记的那句,为什么后面要加-OL_List1 current value.用前面绿色部分,即把不够的load算出来就不行了吗?