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

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. use zj
  6. a='        '
  7. @ 4,10 say "╟δ╩Σ╚δ╜±╠∞╡─╚╒╞┌" get a pict '99.99.99'
  8. read
  9. e=a
  10. j1=substr(a,4,2)
  11. j2=substr(a,7,2)
  12. j3=substr(a,1,2)
  13. a=j1+'/'+j2+'/'+j3
  14. a=ctod(a)
  15. ppp=a
  16. clear
  17. @ 1,0 say "╔Φ▒╕▒α║┼  ╝α▓Γ╡π║┼  ╝α▓Γ╡π▓┐╬╗     ▓╬╩²├√│╞   ╫ε╕▀╓╡    ╫ε╡═╓╡   ì
  18.   ╙ª╝α▓Γ╚╒╞┌"
  19. goto top
  20. l=2
  21. loca for zj5+zj4<=a
  22. do while .not. eof()
  23. @ l,1 say " "+zj1
  24. @ l,11 say " "+zj2
  25. @ l,20 say " "+zj3
  26. @ l,34 say " "+zj8+'   '+str(zj10,6,2)+'     '+str(zj13,6,2)
  27. bb=zj5+zj4
  28. bb=dtoc(bb)
  29. j1=substr(bb,7,2)
  30. j2=substr(bb,1,2)
  31. j3=substr(bb,4,2)
  32. bb=j1+'.'+j2+'.'+j3
  33. @ l,68 say "  "+bb
  34. l=l+1
  35. cont
  36. enddo 
  37. repl all zj5 with zj5+zj4,zj9 with 'y' for zj4+zj5<=a
  38. wait '╟δ╜½╝α▓Γ▒╕╖▌┼╠▓σ╚δú┴╟²╢»╞≈ú¼░┤╚╬╥Γ╝ⁿ╝╠╨°úí'
  39. ww='0'
  40. do while file('a:zj.dbf')
  41. use zj
  42. copy to zj1 for zj5<=a field zj1,zj2,zj11,zj5
  43. use a:zj
  44. appe from zj1
  45. dele file zj1.dbf
  46. ww='1'
  47. exit
  48. enddo 
  49. if ww='0'
  50. use zj 
  51. copy to a:zj for zj5<=a field zj1,zj2,zj11,zj5
  52. endif
  53. wait '┤≥╙í┬≡(Y/N)' to w
  54. if w<>'y'
  55. close database
  56. retu
  57. endif
  58. clear
  59. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  60. set cons off
  61. set device to print 
  62. set print on
  63. set cons off
  64. ? chr(27)+"IJ"
  65. set print off
  66. set cons on
  67. p=1
  68. d=1
  69. a1=.t.
  70. use zj
  71. repl all zj5 with zj5-zj4 for zj9='y'
  72. loca for zj5+zj4<=ppp
  73. do while a1
  74. @ 1,35 say "       "+e+"╙ª╜°╨╨╡─╫┤╠¼╝α▓Γ╧ε─┐"       
  75. @ 2,1 say "             "
  76. @ 3,105 say "╡┌ "+str(p,2)+"╥│"
  77. @ 4,1 say "=================================================================ì
  78. ==========================================================="
  79. @ 5,1 say "|╔Φ▒╕▒α║┼ ì
  80. |╝α▓Γ╡π║┼|╝α▓Γ╡π╬╗╓├  ì
  81. |▓Γ┴┐▓╬╩²├√│╞|╫ε╕▀╓╡|╫ε╡═╓╡|╩╡▓Γ╓╡|╙ª╝α▓Γ╚╒╞┌|       ╝α▓Γ─┌╚▌╝≥╩÷     ì
  82.       |╓╕╡╝╦╡├≈╩Θ┤·║┼|"
  83. @ 6,1 say ì
  84. "|---------|--------|------------|------------|------|------|-----ì
  85. -|----------|------------------------------|--------------|"
  86. l=7
  87. do while .not. eof()
  88. @ prow()+1,1 say "|"+zj1
  89. @ prow(),11 say "|"+zj2
  90. @ prow(),20 say "|"+zj3
  91. bb=zj4+zj5
  92. bb=dtoc(bb)
  93. j1=substr(bb,7,2)
  94. j2=substr(bb,1,2)
  95. j3=substr(bb,4,2)
  96. bb=j1+'.'+j2+'.'+j3
  97. @ prow(),33 say "|  "+zj8+"  |"+str(zj10,6,2)+"|"+str(zj13,6,2)+"|    ì
  98.   |"+bb+"  |"+zj7+"|"+zj14+"        |"
  99. l=l+1
  100. cont
  101. if .not. eof()
  102. if l>=50
  103. @ prow()+1,1 say ì
  104. "==================================================================ì
  105. ============================================================"    
  106. eject
  107. p=p+1
  108. exit
  109. else
  110. @ prow()+1,1 say ì
  111. "|---------|--------|------------|------------|------|------|-----ì
  112. -|----------|------------------------------|--------------|"
  113. l=l+1
  114. endif
  115. else 
  116. @ prow()+1,1 say ì
  117. "=================================================================ì
  118. ==========================================================="
  119. a1=.f.
  120. endif
  121. enddo 
  122. enddo a1
  123. set print on
  124. ? chr(13)
  125. set print off
  126. set device to screen
  127. set cons on
  128. repl all zj5 with zj4+zj5 for zj9='y'
  129. repl all zj9 with ' '
  130. clos data
  131. a1=.t.
  132. retu
  133.  
  134.