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

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. use yjh
  6. a='     '
  7. @ 4,10 say "╟δ╩Σ╚δ─Ω╖▌,╘┬╖▌" get a pict '99.99'
  8. read
  9. j1=substr(a,4,2)
  10. j2='01'
  11. j3=substr(a,1,2)
  12. b=j1+'/'+j2+'/'+j3
  13. b=ctod(b)
  14. t=month(b)
  15. if t>=1 .and. t<=7
  16. t1=t/2
  17. t2=int(t1)
  18. if t1-t2<>0
  19. c=b+30
  20. else
  21. c=b+29
  22. endif
  23. else
  24. t1=t/2
  25. t2=int(t1)
  26. if t1-t2<>0
  27. c=b+29
  28. else
  29. c=b+30
  30. endif
  31. endif
  32. if t=2
  33. c=b+27
  34. endif
  35. loca for y3>=b .and. y3<=c
  36. if eof()
  37. clear
  38. @ 4,10 say "▒╛╘┬╖▌├╗╙╨╙ª╗╗╙═╡─╔Φ▒╕"
  39. @ 7,1 clear
  40. wait '     ░┤╚╬╥Γ╝ⁿ╖╡╗╪' to w
  41. retu
  42. endif
  43. a1=.t.
  44. do while a1
  45. clear
  46. @ 1,1 say "╔Φ▒╕▒α║┼  ╚≤╗¼╡π▒α║┼   ╚≤╗¼╡π▓┐╬╗           ╗╗╙═╩▒╝Σ  ╗¼╙═├√│╞    ì
  47. ╗╗╙═┴┐(Kg)"
  48. l=2
  49. do while .not. eof()
  50. @ l,1 say " "+y1
  51. @ l,12 say " "+y2 
  52. @ l,24 say " "+y6 
  53. e=dtoc(y3)
  54. j1=substr(e,7,2)
  55. j2=substr(e,1,2)
  56. j3=substr(e,4,2)
  57. e=j1+'.'+j2+'.'+j3
  58. @ l,44 say " "+e
  59. @ l,56 say " "+y4
  60. @ l,67 say " "+str(y5,6,2)
  61. l=l+1
  62. cont
  63. if .not. eof()
  64. if l>=8
  65. wait '░┤╚╬╥Γ╝ⁿ╝╠╨°' to w
  66. exit
  67. endif
  68. else
  69. a1=.f.
  70. endif
  71. enddo
  72. enddo a1
  73. wait '┤≥╙í┬≡(Y/N)' to w
  74. if w<>'y'
  75. close database
  76. a1=.t.
  77. retu
  78. endif
  79. close database
  80. set device to print 
  81. set print on
  82. set cons off
  83. ? chr(27)+"IJ"
  84. set print off
  85. set cons on
  86. sele 1
  87. use sb index sb1
  88. sele 2
  89. use yjh
  90. loca for y3>=b .and. y3<=c
  91. p=1
  92. a1=.t.
  93. do while a1
  94. @ prow()+1,30 say "  "+a+"  ╔Φ▒╕╗╗╙═╝╞╗«"
  95. @ prow()+1,30 say "  "+"~~~~~~~~~~~~~~~~~~"
  96. @ prow()+1,1 say "                                                  ì
  97.                                                    "
  98. @ prow()+1,90 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 "|"+y1
  110. a=y1
  111. sele 1
  112. seek a
  113. @ prow(),11 say "|"+sb3
  114. @ prow(),28 say "|"+sb29
  115. sele 2
  116. @ prow(),41 say "|"+y1
  117. @ prow(),52 say "|"+y6
  118. @ prow(),69 say "|"+y4
  119. e=dtoc(y3)
  120. j1=substr(e,7,2)
  121. j2=substr(e,1,2)
  122. j3=substr(e,4,2)
  123. e=j1+'.'+j2+'.'+j3
  124. @ prow(),80 say "|"+e
  125. @ prow(),91 say "|"+str(y5,6,2)+"  |"
  126. l=l+1
  127. cont
  128. if .not. eof()
  129. if l>=50
  130. @ prow()+1,1 say ì
  131. "=================================================================ì
  132. =================================="
  133. p=p+1
  134. ejec
  135. exit
  136. else
  137. @ prow()+1,1 say ì
  138. "|---------|----------------|------------|----------|-------------ì
  139. ---|----------|----------|--------|"
  140. l=l+1
  141. endif
  142. else
  143. @ prow()+1,1 say ì
  144. "=================================================================ì
  145. ==================================="
  146. a1=.f.
  147. endif
  148. enddo 
  149. enddo a1
  150. set print on
  151. ? chr(13)
  152. set print off
  153. set device to screen
  154. a1=.t.
  155. retu
  156.  
  157.