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

  1. clear
  2. set talk off
  3. set exac on
  4. set device to screen
  5. close database
  6. use sb index sb1
  7. b='        '
  8. c='        '
  9. @ 4,10 say "╞≡╩╝╚╒╞┌:" get b pict '99.99.99'
  10. @ 5,10 say "╓╒╓╣╚╒╞┌:" get c pict '99.99.99'
  11. read
  12. b1=b
  13. b2=c
  14. t1=substr(b,4,2)
  15. t2=substr(b,7,2)
  16. t3=substr(b,1,2)
  17. b=t1+'/'+t2+'/'+t3
  18. b=ctod(b)
  19. t1=substr(c,4,2)
  20. t2=substr(c,7,2)
  21. t3=substr(c,1,2)
  22. c=t1+'/'+t2+'/'+t3
  23. c=ctod(c)
  24. a1=.t.
  25. do while a1
  26. clear
  27. a='         '
  28. @ 4,10 say "╔Φ▒╕▒α║┼:" get a
  29. read
  30. seek a
  31. clear
  32. repl sb32 with 'w'
  33. wait '╗╣╙╨▒≡╡─╔Φ▒╕┬≡(Y/N)' to w
  34. if w='y'
  35. loop
  36. else
  37. a1=.f.
  38. endif
  39. enddo a1
  40. set device to print 
  41. set print on
  42. set cons off
  43. ? chr(27)+"IJ"
  44. set print off
  45. set cons on
  46. t=1
  47. copy to sb5.dbf for sb32='w' field sb1,sb3,sb33
  48. sele 1
  49. use sb5
  50. sele 2
  51. use gz
  52. sele 1
  53. a1=.t.
  54. if eof() .and. bof()
  55. set device to screen
  56. clear
  57. @ 4,18 say "╬▐┤╦╔Φ▒╕ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí"
  58. wait '  '
  59. dele file sb5.dbf
  60. retu
  61. endif
  62. do while a1
  63. clear
  64. @ prow()+1,1 say "                             ì
  65. "+b1+"---"+b2+"╣╩╒╧═ú╗·╟Θ┐÷"
  66. @ prow()+1,1 say "                "
  67. @ prow()+1,1 say "╡Ñ╬╗ú║╨í╩▒"
  68. @ prow(),75 say "╡┌"+str(t,2)+"╥│"
  69. @ prow()+1,1 say ì
  70. "=================================================================ì
  71. ========================"
  72. @ prow()+1,1 say "|╔Φ▒╕▒α║┼ |╔Φ▒╕├√│╞        ì
  73. |═ú╗·┤╬╩²|╫▄═ú╗·╩▒╝Σ|╞╜╛∙╬¼╨▐╝Σ╕⌠╞┌|ì
  74. ╞╜╛∙═ú╗·╩▒╝Σ|╫▄╝╞┐╔└√╙├┬╩|"
  75. @ prow()+1,1 say ì
  76. "|---------|----------------|--------|----------|--------------|------------|------------|"
  77. l=6
  78. do while .not. eof() 
  79. j1=sb1
  80. j2=sb3
  81. do case 
  82. case sb33=1
  83. j3=7.5
  84. case sb33=2
  85. j3=15.5
  86. case sb33=3
  87. j3=24
  88. otherwise
  89. j3=8
  90. endcase
  91. sele 2
  92. sum gz15,gz6 to x,y for gz1=j1 .and. b<=gz3 .and. gz3<=c
  93. @ prow()+1,1 say "|"+j1
  94. @ prow(),11 say "|"+j2
  95. @ prow(),28 say "|"+str(x,4)
  96. @ prow(),37 say "|"+str(y,8,1)
  97. f1=(c-b)*j3/x
  98. if x<>0
  99. @ prow(),48 say "|"+str(f1,8,2)
  100. else
  101. @ prow(),48 say "|"+"    ╬▐╣╩╒╧"
  102. endif
  103. f2=y/x
  104. if x<>0
  105. @ prow(),63 say "|"+str(f2,8,2)
  106. else
  107. @ prow(),63 say "|"+'       0'
  108. endif
  109. f3=((c-b)*j3*305/365-y)/((c-b)*j3*305/365)
  110. f3=f3*100
  111. @ prow(),76 say "|"+str(f3,8,2)+" úÑ |"
  112. sele 1
  113. l=l+1
  114. skip 
  115. if .not. eof()
  116. if l<=50 
  117. @ prow()+1,1 say ì
  118. "|---------|----------------|--------|--------|--------------|------------|------------|"
  119. l=l+1
  120. else
  121. @ prow()+1,1 say ì
  122. "=================================================================ì
  123. ========================"       
  124. ejec
  125. t=t+1
  126. skip
  127. a1=.t.
  128. exit
  129. endif
  130. else
  131. @ prow()+1,1 say ì
  132. "=================================================================ì
  133. ========================"
  134. a1=.f.
  135. endif 
  136. enddo     
  137. enddo a1
  138. set print on
  139. ? chr(13)
  140. set print off
  141. close database
  142. dele file sb5.dbf
  143. use sb index sb1
  144. loca for sb32='w'
  145. do while .not. eof()
  146. repl sb32 with 'n'
  147. cont
  148. enddo
  149. set device to screen
  150. a1=.t.
  151. retu
  152.  
  153.  
  154.  
  155.  
  156.