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

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. a1=.t.
  6. do while a1
  7. clear
  8. @ 2,12 say "**********************╗¡╔╚╨╬═╝ú¿╘┬ú⌐****************"
  9. @ 3,12 say " ú░ú«═╦│÷                         ú▒ú«┤≤╨▐╖╤╙├"
  10. @ 4,12 say " ú▓ú«╬¼╨▐(│²┤≤╨▐═Γ)╖╤╙├           ú│ú«╚½▓┐╬¼╨▐╖╤╙├"
  11. @ 5,12 say "****************************************************"
  12. wait '            ╟δ╩Σ╚δ╤í╘±║┼(0,1,2,3):' to w
  13. set exac off
  14. do case 
  15. case w='0'
  16. retu
  17. case w='1'
  18. clear
  19. a='     '
  20. @ 4,10 say "╟δ╩Σ╚δ─Ω╘┬" get a pict '99.99'
  21. read
  22. clear
  23. @ 4,15 say "╒²╘┌╝╞╦πú¼╟δ╔╘║≥úí"
  24. set cons off
  25. j1=substr(a,4,2)
  26. j2=substr(a,1,2)
  27. p1=a
  28. a=j1+'/'+'01'+'/'+j2
  29. a=ctod(a)
  30. c=month(a)
  31. d=c/2
  32. e=int(d)
  33. if c<=7
  34. if d<>e
  35. b=a+30
  36. else
  37. if c=2
  38. b=a+27
  39. else
  40. b=a+29
  41. endif
  42. endif
  43. else
  44. if d<>c
  45. b=a+29
  46. else
  47. b=a+30
  48. endif
  49. endif
  50. use jf 
  51. sum jf11,jf12,jf13,jf14,jf15 to x1,x2,x3,x4,x5 for jf3>=a .and. ì
  52. jf3<=b
  53. x=x1+x2+x3+x4+x5
  54. if x=0
  55. clear
  56. @ 4,15 say "▒╛╘┬╬▐┤≤╨▐╖╤╙├╓º│÷ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí"
  57. wait '   '
  58. clos data
  59. exit
  60. endif
  61. x1=x1/x
  62. x2=x2/x
  63. x3=x3/x
  64. x4=x4/x
  65. x5=x5/x
  66. use zbmc1
  67. repl z1 with '▒╕╝■╖╤',z2 with x1
  68. skip
  69. repl z1 with '▓─┴╧╖╤',z2 with x2
  70. skip
  71. repl z1 with '╣ñ╩▒╖╤',z2 with x3
  72. skip
  73. repl z1 with '═Γ╬»╖╤',z2 with x4
  74. skip
  75. repl z1 with '╞Σ╦ⁿ╖╤',z2 with x5
  76. copy to zbsz55.txt delimited
  77. use zbmc
  78. repl z1 with p1+'╘┬┤≤╨▐╖╤╙├╟Θ┐÷'
  79. copy to zbmc.txt delimited
  80. set cons on
  81. run basica as55
  82. case w='2'
  83. use jf
  84. clear
  85. a='     '
  86. @ 3,10 say "╟δ╩Σ╚δ─Ω╘┬" get a pict '99.99'
  87. read
  88. clear
  89. @ 4,15 say "╒²╘┌╝╞╦πú¼╟δ╔╘║≥úí"
  90. set cons off
  91. j1=substr(a,4,2)
  92. j2=substr(a,1,2)
  93. p1=a
  94. a=j1+'/'+'01'+'/'+j2
  95. a=ctod(a)
  96. c=month(a)
  97. d=c/2
  98. e=int(d)
  99. if c<=7
  100. if d<>e
  101. b=a+30
  102. else
  103. if c=2
  104. b=a+27
  105. else
  106. b=a+29
  107. endif
  108. endif
  109. else
  110. if d<>e
  111. b=a+29
  112. else
  113. b=a+30
  114. endif
  115. endif
  116. sum jf11,jf12,jf13,jf14,jf15 to x1,x2,x3,x4,x5 for jf3>=a .and. ì
  117. jf3<=b
  118. use fyl
  119. loca for f1=p1
  120. x1=f4-x1
  121. x2=f5-x2
  122. x3=f6-x3
  123. x4=f7-x4
  124. x5=f8-x5
  125. x6=x1+x2+x3+x4+x5
  126. if x6<=0
  127. clear
  128. @ 4,15 say "▒╛╘┬╬▐╬¼╨▐╖╤╙├╓º│÷ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí"
  129. wait '  ' 
  130. clos data
  131. retu
  132. endif
  133. x3=x3/x6    
  134. x2=x2/x6    
  135. x1=x1/x6    
  136. x4=x4/x6    
  137. x5=x5/x6    
  138. use zbmc1
  139. repl z1 with '╣ñ╩▒╖╤',z2 with x1
  140. skip
  141. repl z1 with '▓─┴╧╖╤',z2 with x2
  142. skip
  143. repl z1 with '▒╕╝■╖╤',z2 with x3
  144. skip
  145. repl z1 with '═Γ╝╙╣ñ╖╤',z2 with x4
  146. skip
  147. repl z1 with '╞Σ╦ⁿ╖╤╙├',z2 with x5
  148. copy to zbsz55.txt delimited
  149. use zbmc
  150. repl z1 with p1+'╘┬(│²┤≤╨▐═Γ)╡─╬¼╨▐╖╤╙├╟Θ┐÷'
  151. copy to zbmc.txt delimited
  152. set cons on
  153. run basica as55
  154. close database
  155. case w='3'
  156. clear
  157. a='     '
  158. @ 4,20 say "╟δ╩Σ╚δ─Ω╘┬ú║" get a pict '99.99'
  159. read
  160. clear
  161. @ 4,15 say "╒²╘┌╝╞╦πú¼╟δ╔╘║≥úí"
  162. set cons off
  163. sele 3
  164. use zbmc
  165. goto 1
  166. repl z1 with a+'╘┬(╚½▓┐)╬¼╨▐╖╤╙├╟Θ┐÷'
  167. copy to zbmc.txt delimited
  168. sele 1
  169. use zbmc1
  170. sele 2
  171. use fyl 
  172. loca for f1=a
  173. l=4
  174. if f3=0
  175. clear
  176. @ 4,15 say "▒╛╘┬╬▐╬¼╨▐╖╤╙├╓º│÷ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí"
  177. wait '  '
  178. clos data
  179. retu
  180. endif
  181. do while l<=8
  182. t=str(l,1)
  183. f="f"+t 
  184. e=&f/f3
  185. sele 1
  186. repl z2 with e
  187. skip
  188. sele 2
  189. l=l+1
  190. enddo
  191. sele 1
  192. goto 1
  193. repl z1 with '╣ñ╩▒╖╤'
  194. skip
  195. repl z1 with '▓─┴╧╖╤'
  196. skip
  197. repl z1 with '▒╕╝■╖╤'
  198. skip
  199. repl z1 with '═Γ╝╙╣ñ╖╤'
  200. skip
  201. repl z1 with '╞Σ╦ⁿ╖╤'
  202. copy to zbsz55.txt delimited
  203. set cons on
  204. run basica as55
  205. close database
  206. endcase
  207. a1=.t.
  208. enddo a1
  209. retu
  210.  
  211.