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

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