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

  1. clear
  2. set talk off
  3. set device to screen 
  4. close database
  5. sele 7
  6. use dw
  7. sele 6
  8. use gzl1 index gzl11
  9. sele 5
  10. use ygz            
  11. sele 1
  12. use jf
  13. sele 2
  14. use bjh
  15. sele 3
  16. use sb index sb1
  17. sele 4
  18. use sm
  19. sele 2
  20. a2=.t.
  21. do while a2
  22. sele 1
  23. k1='        '
  24. k3='          '
  25. j1='         '
  26. j2=' '
  27. j4='   '
  28. j5='   '
  29. j6='   '
  30. j7='   '
  31. j8='   '
  32. j9='   '
  33. j10='        '
  34. j11='        '
  35. j12='        '
  36. j13='        '
  37. j14='        '
  38. j15='   '
  39. j16='  '
  40. j17='                              '
  41. j18='                              '
  42. a1=.t.
  43. do while a1
  44. clear
  45. @ 0,1 say "╣ñ╫≈┴ε║┼" get k3 pict '##########'
  46. @ 1,1 say "╔Φ▒╕▒α║┼" get j1
  47. @ 2,1 say "╨▐└φ└α▒≡(┤≤╨▐ 1,╓╨╨▐ 2,╨í╨▐ 3,╢■▒ú 4)" get j2
  48. @ 3,1 say "╨▐└φ╚╒╞┌"get k1 pict '99.99.99'
  49. a8=.t.
  50. do while a8
  51. @ 4,1 say "╩⌐╣ñ╡Ñ╬╗┤·║┼" get j16
  52. read
  53. if j16='h'
  54. sele 7
  55. do hel1.prg
  56. loop
  57. endif
  58. exit
  59. a8=.f.
  60. sele 1
  61. enddo a8
  62. @ 5,1 say "╟»╣ñ╣ñ╩▒"get j4 pict '###'
  63. @ 6,1 say "╡τ╣ñ╣ñ╩▒"get j5 pict '###'
  64. @ 7,1 say "╞≡╓╪╣ñ╣ñ╩▒" get j6 pict '###'
  65. @ 8,1 say "║╕╣ñ╣ñ╩▒" get j7 pict '###'
  66. @ 9,1 say "╣▄╣ñ╣ñ╩▒" get j15 pict '###'
  67. @ 0,50 say "╞Σ╦ⁿ╣ñ╩▒" get j9 pict '###'
  68. @ 1,50 say "╩╡═ú╨¬╠∞╩²" get j8 pict '###'
  69. @ 2,50 say "▒╕╝■╖╤" get j10 pict '#####.##'
  70. @ 3,50 say "▓─┴╧╖╤" get j11 pict '#####.##'
  71. @ 4,50 say "╣ñ╩▒╖╤" get j12 pict '#####.##'
  72. @ 5,50 say "═Γ╬»╝╙╣ñ╖╤" get j13 pict '#####.##'
  73. @ 6,50 say "╞Σ╦ⁿ╖╤" get j14 pict '#####.##'
  74. @ 7,32 say "╦∙╙├╡─▒╕╝■"  get j17
  75. @ 8,32 say "╢╘╥╘║≤╬¼╨▐╡─╜¿╥Θ" get j18
  76. read
  77. wait '╩²╛▌╒²╚╖ú┌ú¼╖╡╗╪ú╥ú¼╫≈╖╧ú╞ú¼╓╪╨▐╕─ú╪ú║' to w
  78. do case 
  79. case w='z'
  80. sele 1
  81. t1=substr(k1,1,5)
  82. a=substr(k1,4,2)
  83. b=substr(k1,7,2)
  84. c=substr(k1,1,2)
  85. k1=a+'/'+b+'/'+c
  86. k1=ctod(k1)
  87. j4=val(j4)
  88. j5=val(j5)
  89. j6=val(j6)
  90. j7=val(j7)
  91. j8=val(j8)
  92. j9=val(j9)
  93. j10=val(j10)
  94. j11=val(j11)
  95. j12=val(j12)
  96. j13=val(j13)
  97. j14=val(j14)
  98. j15=val(j15)
  99. ff=j4+j5+j6+j7+j9+j15
  100. appe blank
  101. repl jf3 with k1,jf1 with j1,jf2 with j2,jf4 with j4,jf5 with ì
  102. j5,jf6 with j6,jf7 with j7,jf8 with j8,jf9 with j9,jf10 with j10
  103. repl jf11 with j11,jf12 with j12,jf13 with j13,jf14 with j14
  104. b=jf2
  105. c=jf1
  106. p=jf10+jf11+jf12+jf13+jf14
  107. p1=jf8
  108. sele 3
  109. seek c
  110. p2=sb33
  111. sele 2
  112. loca for bjh1=c  
  113. if b='1'
  114. repl bjh6 with k1,bjh8 with k1,bjh10 with k1,bjh12 with k1,bjh7 ì
  115. with 0,bjh9 with 0,bjh11 with 0,bjh13 with 0
  116. sele 8
  117. use jh index jh1
  118. seek c
  119. repl jhx with 'y'
  120. sele 3
  121. seek c
  122. repl sb50 with sb50+1
  123. sele 2
  124. endif
  125. if b='2'
  126. repl bjh8 with k1,bjh10 with k1,bjh12 with k1,bjh9 with 0,bjh11 ì
  127. with 0,bjh13 with 0
  128. endif
  129. if b='3'
  130. repl bjh10 with k1,bjh12 with k1,bjh11 with 0,bjh13 with 0
  131. endif
  132. if b='4'
  133. repl bjh12 with k1,bjh13 with 0
  134. endif
  135. sele 4
  136. loca for sm1=c
  137. repl sm9 with sm9+p
  138. do case 
  139. case p2=1
  140. p1=p1*7.5
  141. case p2=2
  142. p1=p1*15.5
  143. case p2=3
  144. p1=p1*24
  145. otherwise
  146. p1=p1*7.5
  147. endcase
  148. sele 5
  149. loca for g1=t1
  150. if eof()
  151. appe blank
  152. repl g1 with t1,g4 with p1 
  153. else
  154. repl g4 with g4+p1
  155. endif
  156. sele 6
  157. k3=val(k3)
  158. seek k3
  159. repl gzl1a with 'y',gzl1f with j17,gzl1e with j18,gzl1d with ì
  160. p,gzl1b with ff,gzl1c with p1-ff
  161. sele 2
  162. a1=.f.
  163. case w='f'
  164. exit
  165. case w='x'
  166. loop
  167. case w='r'
  168. retu
  169. endcase
  170. enddo a1
  171. wait '╗╣╙╨┬≡(y/n) ' to w
  172. if w='y'
  173. a2=.t.
  174. else
  175. a2=.f.
  176. endif
  177. enddo a2
  178. a2=.t.
  179. retu
  180.  
  181.  
  182.