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

  1. clear
  2. set talk off
  3. sele 1
  4. use sb index sb1
  5. a='  '
  6. b='        '
  7. c='        '
  8. @ 3,10 say "╟δ╩Σ╚δ╡Ñ╬╗▒α║┼:" get a
  9. @ 4,10 say "╞≡╩╝╩▒╝Σ:" get b pict '99.99.99'
  10. @ 5,10 say "╓╒╓╣╩▒╝Σ:" get c pict '99.99.99'
  11. read
  12. set device to print 
  13. set print on
  14. set cons off
  15. ? chr(27)+"IJ"
  16. set print off
  17. set cons on
  18. p=a
  19. sele 3
  20. use dw
  21. loca for dw1=a
  22. a1=dw2
  23. clear
  24. @ prow()+1,1 say "     "+dw2+"  "+b+"---"+c+"╣╩╒╧═│╝╞╖╓╬÷"
  25. @ prow()+1,1 say "                      "
  26. j1=substr(b,4,2)
  27. j2=substr(b,7,2)
  28. j3=substr(b,1,2)
  29. b=j1+'/'+j2+'/'+j3
  30. b=ctod(b)
  31. j1=substr(c,4,2)
  32. j2=substr(c,7,2)
  33. j3=substr(c,1,2)
  34. c=j1+'/'+j2+'/'+j3
  35. c=ctod(c)
  36. sele 2
  37. use gz
  38. sum gz6,gz15 to x,y for gz14=a .and. b<=gz3 .and. gz3<=c   
  39. @ prow()+1,1 say "╫▄═ú╗·┤╬╩²:"+str(y,5)+"   ì
  40. "+"╫▄═ú╗·╩▒╝Σ:"+str(x,10,2)
  41. @ prow()+1,1 say ì
  42. "==========================================================="
  43. @ prow()+1,1 say "|╔Φ▒╕▒α║┼ |═ú╗·┤╬╩²|═ú╗·╩▒╝Σ|╒╝╫▄═ú╗·┤╬╩² ì
  44. %|╒╝╫▄═ú╗·╩▒╝Σ %|"
  45. @ prow()+1,1 say ì
  46. "|---------|--------|--------|--------------|--------------|"
  47. sele 1
  48. loca for sb28=p
  49. pp=5
  50. do while .not. eof()
  51. a1=sb1
  52. sele 2
  53. sum gz6,gz15 to x1,y1 for gz1=a1 .and. b<=gz3 .and. gz3<=c
  54. @ prow()+1,1 say "|"+a1
  55. @ prow(),11 say "|"+str(y1,5)
  56. @ prow(),20 say "|"+str(x1,8,1)
  57. if y1<>0
  58. m=y1/y*100
  59. @ prow(),29 say "|"+str(m,6,2)
  60. n=x1/x*100
  61. @ prow(),44 say "|"+str(n,6,2)+"        |"
  62. pp=1
  63. else 
  64. @ prow(),29 say "|      0       |      0       |"
  65. endif
  66. sele 1 
  67. cont 
  68. if .not. eof() 
  69. @ prow()+1,1 say ì
  70. "|---------|--------|--------|--------------|--------------|"
  71. endif
  72. if eof()            
  73. @ prow()+1,1 say ì
  74. "==========================================================="
  75. endif
  76. pp=5
  77. enddo
  78. set print on
  79. ? chr(13)
  80. set talk on
  81. set print off
  82. set device to screen
  83. a1=.t.
  84. clos data
  85. retu
  86.