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

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. c=p100       
  6. j1=substr(c,4,2)
  7. j2=substr(c,7,2)
  8. j3=substr(c,1,2)
  9. c=j1+'/'+j2+'/'+j3
  10. c=ctod(c)
  11. use yl
  12. loca for yl31+yl26<=c .or. yl32+yl27<=c .or. yl33+yl28<=c
  13. if eof() 
  14. clear
  15. @ 4,18 say "╬▐╙ª╝∞╤Θ╡─╤╣┴ª╚▌╞≈ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí"
  16. wait '  '     
  17. retu
  18. endif
  19. a1=.t.
  20. do while a1
  21. clear
  22. @ 1,1 say "╚▌╞≈▒α║┼  ╚▌╞≈├√│╞   ╚▌╞≈└α▒≡  ╔╧┤╬╝∞╤Θ╚╒╞┌  ╝∞╤Θ╓▄╞┌  ì
  23. ╝∞╤Θ└α▒≡"
  24. l=2
  25. do while .not. eof()
  26. @ l,1 say " "+yl1
  27. @ l,9 say " "+yl2
  28. @ l,24 say " "+yl3
  29. do case 
  30. case yl33+yl28<c
  31. a=dtoc(yl33)
  32. j1=substr(a,7,2)
  33. j2=substr(a,1,2)
  34. j3=substr(a,4,2)
  35. a=j1+'.'+j2+'.'+j3
  36. @ l,32 say " "+a
  37. @ l,45 say " "+str(yl28,4)
  38. @ l,55 say " "+"╚½├µ╝∞╤Θ"
  39. case yl32+yl27<c
  40. a=dtoc(yl32)
  41. j1=substr(a,7,2)
  42. j2=substr(a,1,2)
  43. j3=substr(a,4,2)
  44. a=j1+'.'+j2+'.'+j3
  45. @ l,32 say " "+a
  46. @ l,45 say " "+str(yl27,4)
  47. @ l,55 say " "+"─┌▓┐╝∞╤Θ"
  48. case yl31+yl26<c
  49. a=dtoc(yl31)
  50. j1=substr(a,7,2)
  51. j2=substr(a,1,2)
  52. j3=substr(a,4,2)
  53. a=j1+'.'+j2+'.'+j3
  54. @ l,32 say " "+a
  55. @ l,45 say " "+str(yl26,4)
  56. @ l,55 say " "+"═Γ▓┐╝∞╤Θ"
  57. endcase 
  58. l=l+1
  59. cont
  60. if .not. eof()
  61. if l>=8
  62. wait '░┤╚╬╥Γ╝ⁿ╝╠╨°' to w
  63. exit
  64. a1=.t.
  65. endif
  66. else
  67. a1=.f.
  68. endif
  69. enddo
  70. enddo a1
  71. wait '┤≥╙í┬≡(Y/N)' to w
  72. if w<>'y'
  73. a1=.t.
  74. retu
  75. endif
  76. set device to print
  77. set print on
  78. set cons off
  79. ? chr(27)+"IJ"
  80. set print off
  81. set cons on
  82. loca for yl31+yl26<=c .or. yl32+yl27<=c .or. yl33+yl28<=c
  83. p=1
  84. a1=.t.
  85. do while a1
  86. clear
  87. @ prow()+1,40 say "╙ª╝∞╤Θ╡─╚▌╞≈"
  88. @ prow()+1,1 say "                       "
  89. @ prow()+1,90 say "╡┌"+str(p,2)+"╥│"
  90. @ prow()+1,1 say ì
  91. "==================================================================ì
  92. ===================================="
  93. @ prow()+1,1 say "|╚▌╞≈▒α║┼ |╚▌╞≈├√│╞    |╚▌╞≈└α▒≡|╤╣┴ª Mpa|╬┬╢╚ C|╜Θ╓╩  ì
  94.       |╔╧┤╬╝∞╤Θ╚╒╞┌|╝∞╤Θ╓▄╞┌|╝∞╤Θ└α▒≡|╣²╞┌╠∞╩²|"
  95. @ prow()+1,1 say ì
  96. "|---------|------------|--------|--------|------|------------|--------ì
  97. ----|--------|--------|--------|"
  98. l=7
  99. do while .not. eof()
  100. @ prow()+1,1 say "|"+yl1
  101. @ prow(),11 say "|"+yl2
  102. @ prow(),24 say "|"+yl3
  103. @ prow(),33 say "|"+str(yl21,3)
  104. @ prow(),42 say "|"+str(yl22,3)
  105. @ prow(),49 say "|"+yl23
  106. do case 
  107. case yl33+yl28<=c
  108. a=dtoc(yl33)
  109. j1=substr(a,7,2)
  110. j2=substr(a,1,2)
  111. j3=substr(a,4,2)
  112. a=j1+'.'+j2+'.'+j3
  113. @ prow(),62 say "|"+a
  114. @ prow(),75 say "|"+str(yl28,4)
  115. @ prow(),84 say "|"+"╚½├µ╝∞╤Θ"
  116. a=c-(yl33+yl28)
  117. @ prow(),92 say "|"+str(a,4)+"    |"
  118. case yl32+yl27<=c
  119. a=dtoc(yl32)
  120. j1=substr(a,7,2)
  121. j2=substr(a,1,2)
  122. j3=substr(a,4,2)
  123. a=j1+'.'+j2+'.'+j3
  124. @ prow(),62 say "|"+a
  125. @ prow(),75 say "|"+str(yl27,3)
  126. @ prow(),84 say "|"+"─┌▓┐╝∞╤Θ"
  127. a=c-(yl27+yl32)
  128. @ prow(),93 say "|"+str(a,4)+"    |"
  129. case yl31+yl26<=c
  130. a=dtoc(yl31)
  131. j1=substr(a,7,2)
  132. j2=substr(a,1,2)
  133. j3=substr(a,4,2)
  134. a=j1+'.'+j2+'.'+j3
  135. @ prow(),62 say "|"+a
  136. @ prow(),75 say "|"+str(yl26,3)
  137. @ prow(),84 say "|"+"═Γ▓┐╝∞╤Θ"
  138. a=c-(yl26+yl31)
  139. @ prow(),93 say "|"+str(a,4)+"    |"
  140. endcase 
  141. cont
  142. l=l+1
  143. if .not. eof()
  144. if l>=50
  145. @ prow()+1,1 say ì
  146. "==================================================================ì
  147. =================================="
  148. ejec
  149. a1=.t.
  150. p=p+1 
  151. exit
  152. else
  153. @ prow()+1,1 say ì
  154. "|---------|------------|--------|--------|------|------------|----ì
  155. --------|--------|--------|--------|"
  156. l=l+1
  157. endif
  158. else
  159. @ prow()+1,1 say ì
  160. "==================================================================ì
  161. ===================================="    
  162. a1=.f.
  163. endif
  164. enddo 
  165. enddo a1
  166. set print on
  167. ? chr(13)
  168. set print off
  169. set device to screen
  170. a1=.t.
  171. close database
  172. retu
  173.  
  174.