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

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. sele 6
  6. use fyl
  7. sele 5
  8. use gzl1 index gzl11
  9. sele 4
  10. use ysg index ysg1
  11. sele 3
  12. use sm
  13. sele 1
  14. use sg
  15. sele 2
  16. use yin
  17. a1=.t.
  18. do while a1
  19. kk1='     '
  20. kk2='     '
  21. kk4='                              '
  22. kk5='                              '
  23. k22='          '
  24. k1='         '
  25. k2='  '        
  26. k3='        '
  27. k4=' '
  28. k5='        '
  29. k6='        '
  30. k7='      '
  31. k8='                                                  '
  32. k9='          '
  33. k10='          '
  34. k11='          '
  35. k12='                                                  '
  36. k13='                                                  '
  37. k14='        '
  38. k17='          '
  39. k18='          '
  40. k19='          '
  41. k20='          '
  42. k21='          '
  43. a2=.t.
  44. do while a2
  45. clear
  46. @ 1,1 say "╣ñ╫≈┴ε║┼" get k22 pict '##########'
  47. @ 1,30 say "╔Φ▒╕▒α║┼"get k1
  48. @ 1,55 say "╩┬╣╩╘¡╥≥┬δ" get k2
  49. read 
  50. if k2='h'
  51. sele 2
  52. do hel2
  53. loop
  54. endif
  55. @ 2,1 say "╩┬╣╩╖ó╔·╩▒╝Σ" get k3 pict '99.99.99'
  56. @ 2,30 say "╩┬╣╩└α▒≡┬δú¿╠╪┤≤ú▒ú⌐,ú¿╓╪┤≤ú▓ú⌐,ú¿╥╗░πú│ú⌐" get k4
  57. @ 3,1 say "╩┬╣╩╘≡╚╬╒▀" get k5
  58. @ 3,30 say "╫▄═ú╗·╩▒╝Σ" get k6 pict '######.#'  
  59. @ 3,55 say "╞Σ╓╨╙░╧∞╔·▓·╩▒╝Σ" get k7 pict '######.#'
  60. @ 4,1 say "╓▒╜╙╦≡╩º" get k9 pict '#######.##'
  61. @ 4,30 say "╝Σ╜╙╦≡╩º" get k10 pict '#######.##'
  62. @ 4,55 say "╣ñ╩▒╖╤" get k17 pict '#######.##'
  63. @ 5,1 say "▒╕╝■╖╤" get k18 pict '#######.##'
  64. @ 5,30 say "▓─┴╧╖╤" get k19 pict '#######.##'
  65. @ 5,55 say "═Γ╬»╝╙╣ñ╖╤" get k20 pict '#######.##'
  66. @ 6,1 say "╞Σ╦ⁿ╖╤╙├" get k21 pict '#######.##'
  67. @ 6,30 say "╨▐╕┤╩▒╝Σ"get k14 pict '99.99.99'
  68. @ 7,1 say "╩┬╣╩╖ó╔·╛¡╣²╝≥╩÷" get k8
  69. @ 8,1 say "┤ª└φ╛÷╢¿" get k12
  70. @ 9,1 say "╜±║≤╖└╖╢┤δ╩⌐" get k13
  71. read
  72. clear
  73. @ 1,1 say "╩╡╬¼╨▐╩▒╝Σ" get kk1 pict '##.##'
  74. @ 1,40 say "═ú╣ñ┤²┴╧╩▒╝Σ" get kk2 pict '##.##'
  75. @ 2,1 say "╦∙╙├╡─▒╕╝■" get kk4
  76. @ 3,1 say "╢╘╥╘║≤╬¼╨▐╡─╜¿╥Θ" get kk5
  77. read
  78. wait '╩²╛▌╒²╚╖ú┌ú¼╫≈╖╧ú╞ú¼╓╪╨▐╕─ú╪ú¼╖╡╗╪ú╥ú║' to w
  79. do case  
  80. case w='x'
  81. loop
  82. case w='f'
  83. exit  
  84. case w='r'
  85. retu
  86. case w='z'
  87. j1=substr(k14,4,2)
  88. j2=substr(k14,7,2)
  89. j3=substr(k14,1,2)
  90. k14=j1+'/'+j2+'/'+j3
  91. k14=ctod(k14)
  92. k17=val(k17)
  93. k18=val(k18)
  94. k22=val(k22)
  95. k19=val(k19)
  96. kk1=val(kk1)
  97. kk2=val(kk2)
  98. k20=val(k20)
  99. k21=val(k21)
  100. k11=k17+k18+k19+k20+k21
  101. k9=val(k9)
  102. k10=val(k10)
  103. k6=val(k6)
  104. k7=val(k7)
  105. t=substr(k3,1,5)
  106. j1=substr(k3,4,2)
  107. j2=substr(k3,7,2)
  108. j3=substr(k3,1,2)
  109. k3=j1+'/'+j2+'/'+j3
  110. k3=ctod(k3)
  111. sele 1
  112. appe blank
  113. repl sg1 with k1,sg2 with k3,sg3 with k4,sg4 with k2,sg5 with ì
  114. k5,sg6 with k6,sg7 with k7,sg8 with k8,sg9 with k9,sg10 with ì
  115. k10,sg11 with k11,sg12 with k12,sg13 with k13
  116. repl sg14 with k14,sg17 with k17,sg18 with k18,sg19 with k19,sg20 ì
  117. with k20,sg21 with k21
  118. sele 6
  119. loca for f1=t
  120. if eof()
  121. appe blank
  122. repl  f1 with t,f3 with k11,f4 with k17,f5 with k19,f6 with ì
  123. k18,f7 with k20,f8 with k21
  124. else
  125. repl f3 with f3+k11,f4 with f4+k17,f5 with f5+k19,f6 with ì
  126. f6+k18,f7 with f7+k20,f8 with f8+k21
  127. endif
  128. sele 3
  129. loca for sm1=k1
  130. repl sm7 with sm7+k11
  131. sele 4
  132. loca for y1=t
  133. if eof()
  134. appe blank
  135. repl y1 with t,y2 with 1,y3 with k6,y4 with k9,y5 with k10,y6 ì
  136. with k11
  137. else
  138. repl y2 with y2+1,y3 with y3+k6,y4 with y4+k9,y5 with y5+k10,y6 ì
  139. with y6+k11
  140. endif
  141. sele 5
  142. seek k22
  143. repl gzl1a with 'y',gzl1b with kk1,gzl1c with kk2,gzl1e with kk5,gzl1f with kk4
  144. sele 1
  145. exit
  146. endcase 
  147. enddo a2
  148. clear
  149. @ 4,1 clear
  150. wait '╗╣╩Σ╚δ┬≡(Y/N)' to w
  151. if w='y'
  152. a1=.t.
  153. else
  154. exit  
  155. endif 
  156. enddo a1
  157. retu
  158.  
  159.  
  160.