home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b077 / 1.img / SBGL.ZIP / BB3.PRG < prev    next >
Encoding:
Text File  |  1979-12-31  |  3.4 KB  |  160 lines

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. sele 1
  6. use jf
  7. sele 2
  8. use gz
  9. sele 3
  10. use sg
  11. sele 4
  12. use fyl index fyl1
  13. a='          '
  14. b='     '
  15. if p<>1
  16. @ 4,10 say "╟δ╩Σ╚δ╣ñ╥╡╫▄▓·╓╡" get a pict '#######.##'
  17. endif
  18. @ 5,10 say "─Ω╖▌,╘┬╖▌" get b pict '99.99'
  19. read
  20. if p<>1
  21. a=val(a)
  22. j1=substr(b,4,2)
  23. j2='01'  
  24. j3=substr(b,1,2)
  25. c=j1+'/'+j2+'/'+j3
  26. c=ctod(c)
  27. d=month(c)
  28. e=d/2
  29. f=int(e)
  30. if d=2
  31. g=c+27
  32. endif
  33. if d<=7
  34. if e-f<>0
  35. g=c+30
  36. else
  37. g=c+29
  38. endif
  39. else
  40. if e-f<>0
  41. g=c+29
  42. else
  43. g=c+30
  44. endif
  45. endif
  46. clear
  47. @ 4,30 say "╒²╘┌╝╞╦π,╟δ╔╘║≥"
  48. set cons off
  49. sele 1
  50. sum jf12,jf11,jf10,jf13,jf14 to x1,x2,x3,x4,x5 for jf3>=c .and. ì
  51. jf3<=g
  52. x=x1+x2+x3+x4+x5
  53. sele 2
  54. sum gz9,gz11,gz10,gz12,gz13 to y1,y2,y3,y4,y5 for gz3>=c .and. ì
  55. gz3<=g
  56. y=y1+y2+y3+y4+y5
  57. sele 3
  58. sum sg17,sg18,sg19,sg20,sg21 to z1,z2,z3,z4,z5 for sg2>=c .and. ì
  59. sg2<=g
  60. z=z1+z2+z3+z4+z5
  61. y6=(x+y+z)*100/a
  62. sele 4
  63. loca for f1=b
  64. if eof()
  65. appe blank 
  66. repl f1 with b,f2 with a,f3 with x+y+z,f4 with x1+y1+z1,f5 with ì
  67. x2+y2+z2,f6 with x3+y3+z3,f7 with x4+y4+z4,f8 with x5+y5+z5,f9 with y6
  68. else
  69. repl f2 with a,f3 with x+y+z,f4 with x1+y1+z1,f5 with x2+y2+z2,f6 ì
  70. with x3+y3+z3,f7 with x4+y4+z4,f8 with x5+y5+z5,f9 with y6
  71. endif
  72. set cons on
  73. if p<>1
  74. wait '┤≥╙í┬≡(Y/N)' to w
  75. else
  76. w='y'
  77. endif
  78. if w<>'y'
  79. close database
  80. retu
  81. endif
  82. endif
  83. clear
  84. @ 4,30 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥"
  85. set device to print
  86. set cons off
  87. set print on
  88. ? chr(27)+"IJ"
  89. set print off
  90. set cons on
  91. t1=0
  92. t2=0
  93. t3=0
  94. t4=0
  95. t5=0
  96. t6=0
  97. t7=0
  98. @ prow()+1,40 say "═≥╘¬▓·╓╡╔Φ▒╕╬¼╨▐╖╤╙├═│╝╞▒φ"
  99. @ prow()+1,1 say "                               "
  100. @ prow()+1,1 say ì
  101. "=================================================================ì
  102. =============================================="
  103. @ prow()+1,1 say "|ú▄╧ε─┐|                |                         ╔Φ▒╕╬¼╨▐╖╤╙├   ì
  104.                          |═≥╘¬▓·╓╡╔Φ▒╕       |"
  105. @ prow()+1,1 say "|  ú▄  |╣ñ╥╡╫▄▓·╓╡      ì
  106. |----------|----------|----------|----------|----------|----------ì
  107. |                   |"
  108. @ prow()+1,1 say "|╘┬╖▌ú▄|                |║╧╝╞(╘¬)  |╣ñ╩▒╖╤    ì
  109. |▓─┴╧╖╤    |▒╕╝■╖╤    |═Γ╬»╝╙╣ñ╖╤|╞Σ╦ⁿ╖╤╙├  ì
  110. |╬¼╨▐╖╤╙├┬╩(╘¬/═≥╘¬)|"
  111. @ prow()+1,1 say ì
  112. "|------|----------------|----------|----------|----------|-------ì
  113. ---|----------|----------|-------------------|"
  114. loca for f1<=b
  115. do while .not. eof()
  116. q=substr(f1,4,2)
  117. @ prow()+1,1 say "|"+q 
  118. @ prow(),8 say "|"+str(f2,10,2)
  119. t1=t1+f2
  120. @ prow(),25 say "|"+str(f3,10,2)
  121. t2=t2+f3
  122. @ prow(),36 say "|"+str(f4,10,2)
  123. t3=t3+f4
  124. @ prow(),47 say "|"+str(f5,10,2)
  125. t4=t4+f5
  126. @ prow(),58 say "|"+str(f6,10,2)
  127. t5=t5+f6
  128. @ prow(),69 say "|"+str(f7,10,2)
  129. t6=t6+f7
  130. @ prow(),80  say "|"+str(f8,10,2)
  131. t7=t7+f8
  132. @ prow(),91 say "|"+str(f9,8,2)+"           |"
  133. cont
  134. @ prow()+1,1 say ì
  135. "|------|----------------|----------|----------|----------|-------ì
  136. ---|----------|----------|-------------------|"
  137. enddo
  138. @ prow()+1,1 say "|║╧╝╞  " 
  139. @ prow(),8 say "|"+str(t1,10,2)
  140. @ prow(),25 say "|"+str(t2,10,2)
  141. @ prow(),36 say "|"+str(t3,10,2)
  142. @ prow(),47 say "|"+str(t4,10,2)
  143. @ prow(),58 say "|"+str(t5,10,2)
  144. @ prow(),69 say "|"+str(t6,10,2)
  145. @ prow(),80 say "|"+str(t7,10,2)
  146. q=t2*100/t1
  147. @ prow(),91 say "|"+str(q,8,2)+"           |"
  148. @ prow()+1,1 say ì
  149. "=================================================================ì
  150. =============================================="      
  151. set print on
  152. ? chr(13)
  153. set print off
  154. set device to screen
  155. close database
  156. retu
  157.  
  158.  
  159.  
  160.