home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b077 / 1.img / SBGL.ZIP / B8.PRG < prev    next >
Encoding:
Text File  |  1980-01-01  |  2.0 KB  |  104 lines

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. sele 1
  6. use bjh
  7. sele 2
  8. use ygz
  9. clear
  10. a='     '
  11. @ 4,10 say "╟δ╩Σ╚δ─Ω╖▌,╘┬╖▌" get a pict '99.99'
  12. read
  13. clear
  14. sele 1
  15. set exac off
  16. count to x 
  17. count to y for bjh14='0'
  18. sele 2
  19. loca for g1=a
  20. if eof()
  21. appe blank
  22. repl g1 with a,g8 with x,g9 with y
  23. else
  24. repl g8 with x,g9 with y
  25. endif
  26. loca for g1<=a
  27. a1=.t.
  28. do while a1
  29. clear
  30. @ 1,6 say "─Ω.╘┬    ╓≈╥¬╔Φ▒╕╫▄╠¿╩²       ═Ω║├╠¿╩²       ì
  31. ╩╡╝╩═Ω║├┬╩"
  32. l=2
  33. do while .not. eof()
  34. @ l,6 say " "+g1
  35. @ l,15 say " "+str(g8,5)
  36. @ l,35 say " "+str(g9,5)
  37. e=g9/g8*100
  38. @ l,50 say " "+str(e,8,2)
  39. l=l+1
  40. cont
  41. if .not. eof()
  42. if l>=8
  43. wait '      ░┤╚╬╥Γ╝ⁿ╝╠╨°' to w
  44. exit 
  45. endif
  46. else 
  47. a1=.f.
  48. endif
  49. enddo
  50. enddo a1
  51. wait '      ┤≥╙í┬≡(Y/N)' to w
  52. if w<>'y'
  53. close database
  54. a1=.t.
  55. retu
  56. endif
  57. clear
  58. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  59. loca for g1<=a
  60. set device to print 
  61. set cons off
  62. set print on
  63. ? chr(27)+"IJ"            
  64. set print off
  65. @ prow()+1,20 say "╓≈╥¬╔Φ▒╕═Ω║├┬╩"
  66. @ prow()+1,1 say "                      "
  67. @ prow()+1,1 say ì
  68. "============================================================"    
  69. @ prow()+1,1 say "|   ─Ω.╘┬   ì
  70. |╡▒╘┬╓≈╥¬╔Φ▒╕╫▄╠¿╩²|╘┬═Ω║├╔Φ▒╕╫▄╠¿╩²|  ═Ω║├┬╩  |"
  71. @ prow()+1,1 say ì
  72. "|-----------|------------------|----------------|----------|"
  73. do while .not. eof()
  74. @ prow()+1,1 say "|"+g1
  75. @ prow(),13 say "|"+str(g8,5)
  76. @ prow(),32 say "|"+str(g9,5)
  77. e=g9/g8*100
  78. @ prow(),49 say "|"+str(e,8,2)+"  |"
  79. cont
  80. if .not. eof()
  81. @ prow()+1,1 say ì
  82. "|-----------|------------------|----------------|----------|"
  83. else
  84. sum g9,g8 to x,y for g1<=a
  85. z=x*100/y
  86. @ prow()+1,1 say ì
  87. "|-----------|------------------|----------------|----------|"
  88. @ prow()+1,1 say "|║╧       ╝╞|     "+str(y,8)+"     |    ì
  89. "+str(x,8)+"    |  "+str(z,6,2)+"  |"
  90. @ prow()+1,1 say ì
  91. "============================================================"
  92. endif
  93. enddo 
  94. @ prow()+1,1 say "╓≈╥¬╔Φ▒╕═Ω║├┬╩ú╜═Ω║├╔Φ▒╕╠¿╩²ú»╓≈╥¬╔Φ▒╕╫▄╠¿╩²"
  95. set print on
  96. ? chr(13)
  97. set print off
  98. set device to screen
  99. a1=.t.
  100. close database
  101. set cons on
  102. retu
  103.  
  104.