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

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. sele 1
  6. use cr
  7. sele 2
  8. use bj index bj1
  9. sele 3
  10. use dw index dw1 
  11. a='         '
  12. c='        '
  13. d='        '
  14. @ 4,10 say "╟δ╩Σ╚δ╔Φ▒╕▒α║┼" get a
  15. @ 5,10 say "╞≡╩╝╚╒╞┌" get c pict 'xx.xx.xx'
  16. @ 6,10 say "╓╒╓╣╚╒╞┌" get d pict 'xx.xx.xx'
  17. read
  18. p1=c
  19. p2=d
  20. j1=substr(c,4,2)
  21. j2=substr(c,7,2)
  22. j3=substr(c,1,2)
  23. c=j1+'/'+j2+'/'+j3
  24. c=ctod(c)
  25. j1=substr(d,4,2)
  26. j2=substr(d,7,2)
  27. j3=substr(d,1,2)
  28. d=j1+'/'+j2+'/'+j3
  29. d=ctod(d)
  30. sele 1
  31. q=0 
  32. loca for l5=a .and. l10='c' .and. l2>=c .and. l2<=d
  33. if eof()
  34. clear
  35. @ 4,15 say "┤╦╜╫╢╬├╗╖ó╔·│÷┐Γú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí"
  36. wait '  ' 
  37. clos data
  38. retu
  39. endif
  40. a1=.t.
  41. do while a1
  42. clear
  43. @ 1,1 say "▒╕╝■▒α║┼  ▒╕╝■├√│╞          ┴∞╙├╚╒╞┌     ┴∞╙├╩²┴┐  ╡Ñ╝█   ì
  44.   ╛¡╩╓╚╦"
  45. l=2
  46. m=0
  47. do while .not. eof()
  48. @ l,1 say " "+l1
  49. f=l1
  50. sele 2
  51. seek f
  52. @ l,11 say " "+b2
  53. sele 1
  54. e=dtoc(l2)
  55. j1=substr(e,7,2)
  56. j2=substr(e,1,2)
  57. j3=substr(e,4,2)
  58. e=j1+'.'+j2+'.'+j3
  59. @ l,28 say " "+e
  60. @ l,38 say " "+str(l3,8,2)
  61. @ l,48 say " "+str(l4,8,2)
  62. q=q+l3*l4
  63. @ l,58 say " "+l9
  64. l=l+1
  65. cont
  66. if .not. eof()
  67. if l>=8
  68. wait '░┤╚╬╥Γ╝ⁿ╝╠╨°' to w
  69. l=2
  70. exit
  71. endif
  72. else
  73. a1=.f.
  74. endif
  75. enddo
  76. enddo a1
  77. @ l,1 say "*********:╫▄╝█╬¬:"+str(q,10,2)
  78. wait '┤≥╙í┬≡(Y/N)' to w
  79. if w<>'y'
  80. close database
  81. a1=.t.
  82. retu
  83. endif
  84. clear
  85. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  86. set cons off
  87. set device to print 
  88. set print on
  89. ? chr(27)+"IJ"
  90. set print off
  91. sele 1
  92. loca for l5=a .and. l10='c' .and. l2>=c .and. l2<=d
  93. p=1
  94. a1=.t.
  95. do while a1
  96. @ prow()+1,25 say " "+p1+"---"+p2+"╞┌╝Σ:"+a+"╔Φ▒╕┴∞╙├▒╕╝■╟Θ┐÷"
  97. @ prow()+1,1 say "                  "
  98. @ prow()+1,80 say "╡┌"+str(p,2)+"╥│"
  99. @ prow()+1,1 say ì
  100. "=================================================================ì
  101. ============================="
  102. @ prow()+1,1 say "|▒╕╝■▒α║┼ |▒╕╝■├√│╞        ì
  103. |┴∞╙├╚╒╞┌|┴∞╙├╩²┴┐|╡Ñ╝█    |┴∞╙├╡Ñ╬╗        |╠ß╗⌡╡Ñ║┼    |╛¡╩╓╚╦  |"
  104. @ prow()+1,1 say ì
  105. "|---------|----------------|--------|--------|--------|----------ì
  106. ------|------------|--------|"
  107. l=6
  108. do while .not. eof()
  109. @ prow()+1,1 say "|"+l1
  110. f=l1
  111. sele 2
  112. seek f
  113. @ prow(),11 say "|"+b2
  114. sele 1
  115. e=dtoc(l2)
  116. j1=substr(e,7,2)
  117. j2=substr(e,1,2)
  118. j3=substr(e,4,2)
  119. e=j1+'.'+j2+'.'+j3
  120. @ prow(),28 say "|"+e
  121. @ prow(),37 say "|"+str(l3,8,2)
  122. @ prow(),46 say "|"+str(l4,8,2)
  123. f=l6
  124. sele 3
  125. seek f
  126. @ prow(),55 say "|"+dw2
  127. sele 1
  128. @ prow(),72 say "|"+l8
  129. @ prow(),85 say "|"+l9+"|"
  130. l=l+1
  131. cont
  132. if .not. eof()
  133. if l>=50 
  134. @ prow()+1,1 say ì
  135. "=================================================================ì
  136. ============================"
  137. p=p+1
  138. ejec
  139. exit
  140. else
  141. @ prow()+1,1 say ì
  142. "|---------|----------------|--------|--------|--------|----------ì
  143. ------|------------|--------|"
  144. l=l+1
  145. endif
  146. else
  147. @ prow()+1,1 say ì
  148. "=================================================================ì
  149. =============================" 
  150. @ prow()+1,1 say "******╫▄╝█╬¬:"+str(q,10,2)
  151. a1=.f.
  152. endif
  153. enddo 
  154. enddo a1
  155. set print on
  156. ? chr(13)
  157. set print off
  158. set device to screen
  159. a1=.t.
  160. close database
  161. set cons on
  162. retu
  163.  
  164.