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

  1. clear
  2. set talk off 
  3. set device to screen
  4. close database 
  5. sele 1
  6. use wx
  7. sele 2
  8. use rs
  9. sele 3
  10. use pg
  11. if w<>'y'
  12. a='        '
  13. b='  '
  14. @ 6,10 say "╥¬┐¬╣ñ╚╒╞┌:" get a pict '99.99.99'
  15. read
  16. endif
  17. b='  '
  18. a1=.t.
  19. do while a1
  20. @ 7,10 say "░α╫Θ┤·║┼:" get b
  21. read
  22. if b='h'
  23. t=a
  24. sele 1
  25. do hel4
  26. @ 3,50 clear
  27. @ 4,1 clear
  28. a=t 
  29. loop
  30. endif
  31. a1=.f.
  32. enddo a1
  33. sele 3
  34. j1=substr(a,4,2)
  35. j2=substr(a,7,2)
  36. j3=substr(a,1,2)
  37. a=j1+'/'+j2+'/'+j3
  38. a=ctod(a)
  39. c=a
  40. sele 3
  41. p=11
  42. q=0
  43. @ 4,0 clear
  44. sele 1
  45. loca for wx1=b
  46. if eof()
  47. clear
  48. @ 4,20 say "╬▐┤╦╡Ñ╬╗,╟δ╤í▒≡╡─╡Ñ╬╗"
  49. wait '        ' to w
  50. a1=.t.
  51. retu
  52. endif
  53. t=wx2
  54. a2=.t.
  55. do while a2
  56. clear
  57. @ 3,0 clear
  58. @ 3,30 say " "+wx2+"┼╔╣ñ╟Θ┐÷"
  59. @ 4,5 say "╚╒╞┌"
  60. @ 5,2 say "╢ε╢¿╚╦╩²"
  61. @ 6,0 say "╥╤┼╔╣ñ╚╦╩²"
  62. @ 7,0 say "╬┤┼╔╣ñ╚╦╩²"
  63. a1=.t.
  64. do while a1
  65. @ 4,p clear
  66. sele 3
  67. sum pg2 to x for pg1=b .and. pg3<=a .and. pg4>=a
  68. d=dtoc(a)
  69. j1=substr(d,7,2)
  70. j2=substr(d,1,2)
  71. j3=substr(d,4,2)
  72. d=j1+'.'+j2+'.'+j3
  73. @ 4,p-1 say " "+d
  74. sele 1
  75. @ 5,p say " "+str(wx3,4)
  76. @ 6,p say " "+str(x,4)
  77. e=wx3-x
  78. @ 7,p say " "+str(e,4)
  79. p=p+10
  80. @ 4,p clear
  81. a=a+1
  82. c=c+1
  83. q=q+1
  84. if q>=7
  85. @ 8,0 clear
  86. wait '╗╣┐┤╞Σ╦ⁿ╚╒╞┌╡─┬≡(y/n)' to w
  87. if w='y'
  88. @ 4,0 clear
  89. q=0
  90. a1=.f.
  91. p=11
  92. a2=.t.
  93. else
  94. a1=.f.
  95. a2=.f.
  96. endif
  97. endif
  98. enddo a1
  99. enddo a2
  100. @ 3,0 clear
  101. wait '╗╣┐┤├┐╕÷╚╦╡─╟Θ┐÷┬≡(y/n) ' to w
  102. if w<>'y' 
  103. close database
  104. a1=.t.
  105. retu 
  106. else
  107. @ 3,0 clear
  108. sele 2
  109. clear
  110. loca for rs11=b
  111. if eof()
  112. @ 4,0 clear 
  113. @ 7,20 say " "+"┤╦╡Ñ╬╗╬▐╚╦,╟δ╗╗▒≡╡─╡Ñ╬╗"   
  114. retu
  115. endif
  116. g=recno()
  117. a1=.t.
  118. do while a1
  119. clear
  120. goto g
  121. @ 0,35 say " "+t+"╕≈╬¼╨▐╚╦╘▒╟Θ┐÷"
  122. @ 1,1 say "╣ñ╫≈╓ñ║┼  ╨╒├√   ╨╘▒≡  ─Ω┴Σ  ╬─╗»╦«╞╜  ╝╝╩⌡╡╚╝╢  ╓░╬±  ì
  123. ╓░│╞  └═┴ª╦«╞╜  ╣ñ╫≈╡τ╗░"
  124. l=2
  125. do while .not. eof()
  126. @ l,1 say " "+rs1
  127. @ l,10 say " "+rs2
  128. @ l,18 say " "+rs3
  129. @ l,24 say " "+str(rs4,2)
  130. @ l,32 say " "+rs5
  131. @ l,42 say " "+rs6
  132. @ l,48 say " "+rs7
  133. @ l,56 say " "+rs8
  134. @ l,64 say " "+rs12
  135. @ l,76 say " "+rs13
  136. cont
  137. l=l+1
  138. if .not. eof()            
  139. if l>=8
  140. wait '░┤ G ╝ⁿ╝╠╨°' to w
  141. clear
  142. l=2
  143. g=recno()
  144. goto bott
  145. skip
  146. a1=.t.
  147. endif
  148. else
  149. a1=.f.
  150. endif
  151. enddo
  152. enddo a1
  153. wait '░┤╚╬╥Γ╝ⁿ╖╡╗╪úí'
  154. close database
  155. a1=.t.
  156. retu
  157.  
  158.  
  159.