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

  1. clear
  2. set talk off
  3. close database
  4. set device to screen
  5. sele 1
  6. use sb 
  7. set index to sb1
  8. sele 2
  9. use yh
  10. set index to yh2
  11. sele 3
  12. use yhf
  13. clear 
  14. @ 1,1 say "╔Φ▒╕▒α║┼  ╔Φ▒╕├√│╞     ╚≤╗¼╡π▒α║┼    ╚≤╗¼╡π▓┐╬╗  ì
  15.   ╗¼╙═├√│╞  ╗╗╙═╚╒╞┌  ╗╗╙═╩²┴┐"
  16. l=2
  17. do while .not. eof()
  18. a=yhf1
  19. b=yhf2
  20. c=dtoc(yhf3)
  21. if c='  /  /  '
  22. sele 1
  23. seek a
  24. d=sb12 
  25. f=sb3
  26. g=sb4
  27. sele 2
  28. loca for g=yh1 .and. b=yh2     
  29. if .not. eof()
  30. e=d+yh12
  31. @ l,1 say " "+a
  32. @ l,11 say " "+f
  33. @ l,28 say " "+b
  34. @ l,38 say " "+yh3
  35. t=month(e)
  36. if 4<=t .and. t<=9
  37. @ l,55 say " "+yh5
  38. else
  39. @ l,55 say " "+yh6
  40. endif
  41. e=dtoc(e)
  42. j1=substr(e,7,2)
  43. j2=substr(e,1,2)
  44. j3=substr(e,4,2)
  45. e=j1+'.'+j2+'.'+j3
  46. @ l,61 say " "+e
  47. @ l,72 say " "+str(yh13,3)
  48. l=l+1
  49. endif
  50. else
  51. c=ctod(c)
  52. sele 1
  53. seek a
  54. f=sb3
  55. g=sb4
  56. sele 2
  57. loca for g=yh1 .and. b=yh2
  58. if .not. eof()
  59. e=c+yh12
  60. @ l,1 say " "+a
  61. @ l,11 say " "+f  
  62. @ l,28 say " "+b
  63. @ l,38 say " "+yh3
  64. t=month(e)
  65. if 4<=t .and. t<=9
  66. @ l,55 say " "+yh5
  67. else
  68. @ l,55 say " "+yh6
  69. endif
  70. e=dtoc(e)
  71. j1=substr(e,7,2)
  72. j2=substr(e,1,2)
  73. j3=substr(e,4,2)
  74. e=j1+'.'+j2+'.'+j3
  75. @ l,61 say " "+e
  76. @ l,72 say " "+str(yh13,3)
  77. l=l+1
  78. endif
  79. endif
  80. sele 3
  81. skip
  82. enddo
  83. wait '   ┤≥╙í┬≡(y/n) ' to w
  84. if w='y'
  85. set device to print 
  86. set print on
  87. set cons off
  88. ? chr(27)+"IJ"
  89. set print off
  90. set cons on
  91. @ 1,1 say "                                       ╔Φ▒╕╗╗╙═╝╞╗«▒φ"
  92. @ 2,1 say "                 "
  93. @ 3,1 say ì
  94. "=================================================================ì
  95. ======================================="   
  96. @ 4,1 say "|╔Φ▒╕▒α║┼ |╔Φ▒╕├√│╞        |╚≤╗¼╡π▒α║┼|╚≤╗¼╡π▓┐╬╗      ì
  97. |╣µ╢¿╙├╙═├√│╞|╣µ╢¿┤·╙├╙═  |╗╗╙═╚╒╞┌|╗╗╙═╩²┴┐(Kg)|"
  98. @ 5,1 say ì
  99. "|---------|----------------|----------|----------------|---------ì
  100. ---|------------|--------|------------|"
  101. sele 3
  102. goto top
  103. do while .not. eof()
  104. q=1
  105. a=yhf1
  106. b=yhf2
  107. c=dtoc(yhf3)
  108. if c='  /  /  '
  109. sele 1
  110. seek a
  111. d=sb12
  112. f=sb3
  113. g=sb4
  114. sele 2
  115. loca for g=yh1 .and. b=yh2
  116. if .not. eof()
  117. e=d+yh12
  118. p=2
  119. @ prow()+1,1 say "|"+a
  120. @ prow(),11 say "|"+f
  121. @ prow(),28 say "|"+b
  122. @ prow(),39 say "|"+yh3
  123. t=month(e)
  124. if 4<=t .and. t<=9
  125. @ prow(),56 say "|"+yh5
  126. @ prow(),69 say "|"+yh7
  127. else
  128. @ prow(),56 say "|"+yh6
  129. @ prow(),69 say "|"+yh8
  130. endif
  131. e=dtoc(e)
  132. j1=substr(e,7,2)
  133. j2=substr(e,1,2)
  134. j3=substr(e,4,2)
  135. e=j1+'.'+j2+'.'+j3
  136. @ prow(),82 say "|"+e
  137. @ prow(),91 say "|"+str(yh13,3)+"         |"
  138. endif
  139. else
  140. sele 1
  141. seek a
  142. f=sb3
  143. g=sb4
  144. sele 2
  145. loca for g=yh1 .and. b=yh2
  146. if .not. eof()
  147. c=ctod(c)
  148. e=c+yh12
  149. p=2
  150. @ prow()+1,1 say "|"+a
  151. @ prow(),11 say "|"+f
  152. @ prow(),28 say "|"+b
  153. @ prow(),38 say "|"+yh3
  154. t=month(e)
  155. if 4<=t .and. t<=9
  156. @ prow(),56 say "|"+yh5
  157. @ prow(),69 say "|"+yh7
  158. else
  159. @ prow(),56 say "|"+yh6
  160. @ prow(),69 say "|"+yh8
  161. endif
  162. e=dtoc(e)
  163. j1=substr(e,7,2)
  164. j2=substr(e,1,2)
  165. j3=substr(e,4,2)
  166. e=j1+'.'+j2+'.'+j3
  167. @ prow(),82 say "|"+e
  168. @ prow(),91 say "|"+str(yh13,3)+"         |"
  169. endif
  170. endif
  171. sele 3
  172. skip
  173. if .not. eof()            
  174. if p=2
  175. @ prow()+1,1 say ì
  176. "|---------|----------------|----------|----------------|---------ì
  177. ---|------------|--------|------------|"
  178. p=1
  179. endif
  180. else
  181. @ prow()+1,1 say ì
  182. "=================================================================ì
  183. ======================================="
  184. endif
  185. enddo
  186. set print on
  187. ? chr(13)
  188. set print off
  189. endif
  190. set device to screen
  191. a1=.t.
  192. retu
  193.  
  194.  
  195.  
  196.