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

  1. clear
  2. set talk off
  3. set device to screen
  4. a='        '
  5. @ 4,20 say "╟δ╩Σ╚δ╜±╠∞╡─╚╒╞┌:" get a picture '99.99.99'
  6. read
  7. j1=substr(a,4,2)
  8. j2=substr(a,7,2)
  9. j3=substr(a,1,2)
  10. a=j1+'/'+j2+'/'+j3
  11. a=ctod(a)
  12. sele 1
  13. use gd
  14. sele 2
  15. use gdf
  16. sele 1
  17. a2=.t.
  18. do while a2
  19. clear
  20. ? "╣▄╡└▒α║┼ ╔╧┤╬╝∞▓Γ╞┌ ═╢▓·╚╒╞┌  ╙ª╕ⁿ╗╗╗≥╙ª╝∞▓Γ╚╒╞┌    ╣²╞┌╠∞╩²ì
  21.   ╝∞▓Γ╗≥╕ⁿ╗╗"
  22. l=2
  23. do while .not. eof()
  24. d=gd15
  25. b=gd1
  26. sele 2
  27. loca for gdf1=b .and. gdf4='1'
  28. p=0
  29. do while .not. eof()
  30. c=gdf2 
  31. cont
  32. p=1
  33. enddo
  34. if p<>1
  35. sele 1
  36. c=gd4
  37. endif
  38. sele 1
  39. w='s'
  40. if gd20-(a-gd4)/365*gd11<=gd17
  41. ff=365*(gd20-gd17)/gd11+gd4
  42. dd=a-ff
  43. ff=dtoc(ff)
  44. j1=substr(ff,7,2)
  45. j2=substr(ff,1,2)
  46. j3=substr(ff,4,2)
  47. ff=j1+'.'+j2+'.'+j3
  48. @ l,1 say " "+b
  49. g=dtoc(c)
  50. j1=substr(g,7,2)
  51. j2=substr(g,1,2)
  52. j3=substr(g,4,2)
  53. g=j1+'.'+j2+'.'+j3
  54. @ l,10 say " "+g
  55. f=dtoc(gd4)
  56. j1=substr(f,7,2)
  57. j2=substr(f,1,2)
  58. j3=substr(f,4,2)
  59. f=j1+'.'+j2+'.'+j3
  60. @ l,19 say " "+f
  61. @ l,34 say " "+ff            
  62. @ l,48 say " "+str(dd,8)
  63. @ l,67 say " "+"╕ⁿ╗╗"
  64. l=l+1
  65. w='d' 
  66. endif
  67. if a>=d+c .and. w<>'d'  
  68. @ l,1 say " "+b              
  69. ee=d+c
  70. gg=a-ee
  71. ee=dtoc(ee)
  72. j1=substr(ee,7,2)
  73. j2=substr(ee,1,2)
  74. j3=substr(ee,4,2)
  75. ee=j1+'.'+j2+'.'+j3
  76. c=dtoc(C)
  77. j1=substr(c,7,2)
  78. j2=substr(c,1,2)
  79. j3=substr(c,4,2)
  80. c=j1+'.'+j2+'.'+j3
  81. @ l,10 say " "+c
  82. f=dtoc(gd4)
  83. j1=substr(f,7,2)
  84. j2=substr(f,1,2)
  85. j3=substr(f,4,2)
  86. f=j1+'.'+j2+'.'+j3
  87. @ l,19 say " "+f
  88. @ l,34 say " "+ee
  89. @ l,48 say " "+str(gg,8)
  90. @ l,65 say " "+"  ╝∞▓Γ"
  91. l=l+1
  92. endif
  93. skip
  94. if .not. eof()
  95. if l>=8
  96. wait '░┤╚╬╥Γ╝ⁿ╝╠╨°' 
  97. exit
  98. endif
  99. else
  100. a2=.f.
  101. exit
  102. endif
  103. enddo
  104. enddo a1
  105. wait "┤≥╙í┬≡(y/n) " to w
  106. if w $ 'y'
  107. clear
  108. set device to print 
  109. set print on
  110. set cons off
  111. ? chr(27)+"II"
  112. set print off
  113. set cons on
  114. @ 1,30 say "                                        ╙ª╝∞▓Γ╗≥╙ª╕ⁿ╗╗╡─╣▄╡└"
  115. @ 2,1 say "           "
  116. @ 3,1 say ì
  117. "=================================================================ì
  118. ==================================================================ì
  119. ======================================================================================"
  120. @ 4,1 say "|╣▄╡└▒α║┼ |╣▄╡└├√│╞    |╣µ╕±╨═║┼    |▓─╓╩        ì
  121. |═╝╓╜║┼    |╣ñ╫≈╤╣┴ª|╣ñ╫≈╬┬╢╚|╣ñ╫≈╜Θ╓╩    |╖└╕»▓─┴╧    |▒ú╬┬▓─┴╧    ì
  122. |╤╒╔½|╔╧┤╬╝∞▓Γ╚╒╞┌|═╢▓·╚╒╞┌|╝∞▓Γ╓▄╞┌|─Ω╕»╩┤┴┐|╙ª╕ⁿ╗╗╗≥╙ª╝∞▓Γ╚╒╞┌|ì
  123. ╣²╞┌╠∞╩²|╜ß┬█|      ░▓╫░╡╪╡π      |"
  124. @ 5,1 say ì
  125. "|---------|------------|------------|------------|----------|----ì
  126. ----|--------|------------|------------|------------|----|--------ì
  127. ----|--------|--------|--------|------------------|--------|----|--------------------|"
  128. sele 1
  129. goto top
  130. do while .not. eof()
  131. q1=1
  132. d=gd15
  133. b=gd1
  134. sele 2
  135. loca for gdf1=b .and. gdf4='1' 
  136. p=0
  137. do while .not. eof()
  138. c=gdf2
  139. cont
  140. p=1
  141. enddo
  142. if p<>1
  143. sele 1
  144. c=gd4
  145. endif
  146. sele 1
  147. w='s'
  148. if gd20-(a-gd4)/365*gd11<=gd17
  149. ee=gd4+365*(gd20-gd17)/gd11
  150. q1=2
  151. @ prow()+1,1 say "|"+b
  152. @ prow(),11 say "|"+gd2
  153. @ prow(),24 say "|"+gd3
  154. @ prow(),37 say "|"+gd5
  155. @ prow(),50 say "|"+gd6
  156. @ prow(),61 say "|"+str(gd7,3)
  157. @ prow(),70 say "|"+str(gd8,3)
  158. @ prow(),79 say "|"+gd9  
  159. @ prow(),92 say "|"+gd10    
  160. @ prow(),105 say "|"+gd12
  161. @ prow(),118 say "|"+gd13
  162. ww=dtoc(c)
  163. j1=substr(ww,7,2)
  164. j2=substr(ww,1,2)
  165. j3=substr(ww,4,2)
  166. ww=j1+'.'+j2+'.'+j3
  167. @ prow(),123 say "|"+ww 
  168. ww=dtoc(gd4)
  169. j1=substr(ww,7,2)
  170. j2=substr(ww,1,2)
  171. j3=substr(ww,4,2)
  172. ww=j1+'.'+j2+'.'+j3
  173. @ prow(),136 say "|"+ww
  174. @ prow(),145 say "|"+str(gd15,6,1)
  175. @ prow(),154 say "|"+str(gd11,6,2)
  176. ww=dtoc(ee)
  177. j1=substr(ww,7,2)
  178. j2=substr(ww,1,2)
  179. j3=substr(ww,4,2)
  180. ww=j1+'.'+j2+'.'+j3
  181. @ prow(),163 say "|"+ww
  182. ff=a-ee
  183. @ prow(),182 say "|"+str(ff,8)
  184. @ prow(),191 say "|"+"╕ⁿ╗╗|"+gd19+"|"
  185. w='d'
  186. endif
  187. if a>=d+c .and. w<>'d'
  188. ee=d+c
  189. q1=2
  190. @ prow()+1,1 say "|"+b
  191. @ prow(),11 say "|"+gd2
  192. @ prow(),24 say "|"+gd3
  193. @ prow(),37 say "|"+gd5
  194. @ prow(),50 say "|"+gd6
  195. @ prow(),61 say "|"+str(gd7,3)
  196. @ prow(),70 say "|"+str(gd8,3)
  197. @ prow(),79 say "|"+gd9
  198. @ prow(),92 say "|"+gd10
  199. @ prow(),105 say "|"+gd12
  200. @ prow(),118 say "|"+gd13
  201. ww=dtoc(c)
  202. j1=substr(ww,7,2)
  203. j2=substr(ww,1,2)
  204. j3=substr(ww,4,2)
  205. ww=j1+'.'+j2+'.'+j3
  206. @ prow(),123 say "|"+ww     
  207. ww=dtoc(gd4)
  208. j1=substr(ww,7,2)
  209. j2=substr(ww,1,2)
  210. j3=substr(ww,4,2)
  211. ww=j1+'.'+j2+'.'+j3
  212. @ prow(),136 say "|"+ww
  213. @ prow(),145 say "|"+str(gd15,6,1)
  214. @ prow(),154 say "|"+str(gd11,6,2)
  215. ww=dtoc(ee)
  216. j1=substr(ww,7,2)
  217. j2=substr(ww,1,2)
  218. j3=substr(ww,4,2)
  219. ww=j1+'.'+j2+'.'+j3
  220. @ prow(),163 say "|"+ww
  221. ff=a-ee
  222. @ prow(),182 say "|"+str(ff,8)
  223. @ prow(),191 say "|"+"╝∞▓Γ|"+gd19+"|"
  224. endif
  225. skip
  226. if .not. eof()
  227. if q1=2
  228. @ prow()+1,1 say ì
  229. "|---------|------------|------------|------------|----------|----ì
  230. ----|--------|------------|------------|------------|----|--------ì
  231. ----|--------|--------|--------|------------------|--------|----|--------------------|"
  232. q1=1
  233. endif
  234. else 
  235. @ prow()+1,1 say ì
  236. "=================================================================ì
  237. ==================================================================ì
  238. ====================================================================================="
  239. endif
  240. enddo
  241. set print on
  242. ? chr(13)
  243. set print off
  244. endif
  245. set device to screen
  246. a1=.t.
  247. retu
  248.  
  249.  
  250.