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

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. sele 1
  6. use bj index bj1
  7. sele 2
  8. use bh
  9. sele 1
  10. loca for b5<=b8
  11. if eof()
  12. clear
  13. @ 4,15 say "╬▐╙ª╢⌐╗⌡╡─▒╕╝■ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí"
  14. wait '  ' to w
  15. retu
  16. endif
  17. a1=.t.
  18. do while a1
  19. clear
  20. @ 1,1 say "▒╕╝■▒α║┼  ▒╕╝■├√│╞             ╡▒╟░┐Γ┤µ ╬┤╜╗╢⌐╗⌡  ╢⌐╗⌡╡π  ╛¡╝├╢⌐╗⌡ ì
  21. ╙ª╢⌐╗⌡┴┐ "
  22. l=2
  23. do while .not. eof()
  24. a=b1
  25. sele 2
  26. sum (h7-h10) to x for h1=a
  27. sele 1
  28. b=b5-b8+x
  29. if b<=0
  30. eoq=(2*b12*b10/b11)**0.5
  31. t=b8*365/b12
  32. b=b+eoq
  33. c=eoq
  34. do while b<=0   
  35. b=b+eoq
  36. c=c+eoq
  37. enddo
  38. sele 1
  39. @ l,1 say " "+b1
  40. @ l,11 say " "+b2
  41. @ l,28 say " "+str(b5,8,2)
  42. @ l,37 say " "+str(x,8,2)
  43. @ l,47 say " "+str(b8,8,2)
  44. @ l,57 say " "+str(eoq,8,2)
  45. @ l,67 say " "+str(c,8,2)
  46. l=l+1
  47. endif
  48. cont
  49. if .not. eof()
  50. if l>=8
  51. wait '░┤╚╬╥Γ╝■╝╠╨°' to w
  52. exit
  53. endif
  54. else
  55. a1=.f.
  56. endif
  57. enddo
  58. wait '┤≥╙í┬≡(Y/N)' to w
  59. if w<>'y'
  60. a1=.t.
  61. close database
  62. retu
  63. endif
  64. clear
  65. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  66. set cons off
  67. set device to print 
  68. set print on
  69. ? chr(27)+"IJ"
  70. set print off
  71. sele 1
  72. loca for b5<=b8
  73. p=1
  74. a1=.t.
  75. do while a1
  76. @ prow()+1,40 say "▒╕╝■╢⌐╗⌡▓╬┐╝╡Ñ"
  77. @ prow()+1,1 say "                     "
  78. @ prow()+1,100 say "╡┌"+str(p,2)+"╥│"
  79. @ prow()+1,1 say ì
  80. "=================================================================ì
  81. ============================================="    
  82. @ prow()+1,1 say "|▒╕╝■▒α║┼ |▒╕╝■├√│╞        |╣µ╕±╨═║┼        ì
  83. |╡▒╟░┐Γ┤µ|╬┤╜╗╢⌐╗⌡|╢⌐╗⌡╡π  ì
  84. |╫▄╞╜║Γ|╛¡╝├╢⌐╗⌡┴┐|╙ª╢⌐╗⌡┴┐|─▄╬¼│╓╠∞╩²|"
  85. @ prow()+1,1 say ì
  86. "|---------|----------------|----------------|--------|--------|--ì
  87. ------|------|----------|--------|----------|"
  88. l=6
  89. do while .not. eof()
  90. a=b1
  91. sele 2
  92. sum (h7-h10) to x for h1=a
  93. sele 1
  94. b=b5-b8+x
  95. t1=1
  96. if b<=0
  97. eoq=(2*b12*b10/b11)**0.5
  98. t=365*b5/b12
  99. b=b+eoq
  100. c=eoq
  101. do while b<=0
  102. b=b+eoq
  103. c=c+eoq
  104. enddo
  105. t1=2
  106. sele 1
  107. @ prow()+1,1 say "|"+b1
  108. @ prow(),11 say "|"+b2
  109. @ prow(),28 say "|"+b3
  110. @ prow(),45 say "|"+str(b5,8)
  111. @ prow(),54 say "|"+str(x,8)
  112. @ prow(),63 say "|"+str(b8,8)
  113. e=b5-b8+x
  114. @ prow(),72 say "|"+str(e,6)
  115. @ prow(),79 say "|"+str(eoq,8)
  116. @ prow(),90 say "|"+str(c,8)
  117. @ prow(),99 say "|"+str(t,10)+"|"
  118. l=l+1
  119. cont
  120. if .not. eof()
  121. if l>=50
  122. @ prow()+1,1 say ì
  123. "=================================================================ì
  124. ============================================"
  125. p=p+1
  126. ejec
  127. exit
  128. else
  129. @ prow()+1,1 say ì
  130. "|---------|----------------|----------------|--------|--------|--ì
  131. ------|------|----------|--------|----------|"
  132. l=l+1
  133. endif
  134. else
  135. @ prow()+1,1 say ì
  136. "=================================================================ì
  137. ============================================="
  138. a1=.f.
  139. endif
  140. endif
  141. if t1=1
  142. cont
  143. endif
  144. enddo
  145. enddo a1
  146. set print on
  147. ? chr(13)
  148. set print off
  149. set device to screen
  150. close database
  151. a1=.t.
  152. set cons on
  153. retu
  154.