home *** CD-ROM | disk | FTP | other *** search
- clear
- set talk off
- clos data
- set device to screen
- a=' '
- b=' '
- @ 4,20 say "╟δ╩Σ╚δ╞≡╩╝╚╒╞┌" get a pict '99.99.99'
- @ 5,20 say "╓╒╓╣╚╒╞┌" get b pict '99.99.99'
- read
- pp=a
- dd=b
- clear
- @ 4,20 say "╒²╘┌╝╞╦πú¼╟δ╔╘║≥úí"
- set cons off
- j1=substr(a,4,2)
- j2=substr(a,7,2)
- j3=substr(a,1,2)
- a=j1+'/'+j2+'/'+j3
- a=ctod(a)
- j1=substr(b,4,2)
- j2=substr(b,7,2)
- j3=substr(b,1,2)
- b=j1+'/'+j2+'/'+j3
- b=ctod(b)
- dele file www.ndx
- dele file hz.dbf
- use cr
- index on l1 to www
- total for l2>=a .and. L2<=b .and. l10=c on l1 to hz fields l3
- sele 1
- use hz
- sele 2
- use bj index bj1
- if c='c'
- d='│÷┐Γ'
- else
- d='╚δ┐Γ'
- endif
- sele 1
- if eof() .and. bof()
- set cons on
- @ 4,0 clear
- wait ' ┤╦╞┌╝Σ╬▐'+d+'╗ε╢»ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí'
- clos data
- retu
- endif
- set cons on
- a1=.t.
- do while a1
- clear
- @ 1,1 say "▒╕╝■▒α║┼ ▒╕╝■├√│╞ ╡Ñ╝█ "+d+"╩²┴┐"
- l=2
- do while .not. eof()
- sele 1
- a=l1
- sele 2
- seek a
- a=b2
- sele 1
- @ l,1 say l1+' '+a+' '+str(l4,8,2)+' '+str(l3,8,2)
- skip
- l=l+1
- if l>=9 .and. .not. eof()
- wait '░┤ú╥╝ⁿ╖╡╗╪ú¼░┤╞Σ╦ⁿ╝ⁿ╝╠╨°úí' to w
- if w='r'
- clos data
- retu
- endif
- exit
- endif
- enddo
- if eof()
- exit
- endif
- enddo
- wait '┤≥╙í┬≡ú¿ú┘ú»ú╬ú⌐' to w
- if w<>'y'
- wait '┤µ╡╡╖±ú¿ú┘ú»ú╬ú⌐' to w
- pp=2
- if w='y'
- clos data
- do while .not. file('a:hz.dbf')
- copy file hz.dbf to a:hz.dbf
- pp=1
- enddo
- if pp<>1
- use a:hz
- appe from hz
- endif
- endif
- clos data
- retu
- endif
- clear
- @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
- set cons off
- set device to print
- set print on
- ? chr(27)+"IJ"
- set print off
- sele 1
- goto top
- p=1
- a1=.t.
- do while a1
- @ prow()+1,5 say pp+'---'+dd+"╝Σ"+"╕≈▒╕╝■"+d+"╟Θ┐÷╗π╫▄"
- @ prow()+1,1 say " "
- @ prow()+1,40 say "╡┌"+str(p,2)+"╥│"
- @ prow()+1,1 say ì
- "=============================================="
- @ prow()+1,1 say "|▒╕╝■▒α║┼ | ▒╕╝■├√│╞ | ╡Ñ╝█ | ╩²┴┐ |"
- @ prow()+1,1 say "|---------|----------------|--------|--------|"
- l=1
- do while .not. eof()
- sele 1
- a=l1
- sele 2
- seek a
- a=b2
- sele 1
- @ prow()+1,1 say "|"+l1+"|"+a+"|"+str(l4,8,2)+"|"+str(l3,8,2)+"|"
- l=l+1
- skip
- if .not. eof()
- if l>=10
- ejec
- p=p+1
- @ prow()+1,1 say "=============================================="
- exit
- else
- @ prow()+1,1 say "|---------|----------------|--------|--------|"
- l=l+1
- endif
- else
- @ prow()+1,1 say "=============================================="
- endif
- enddo
- if eof()
- exit
- endif
- enddo
- set print on
- ? chr(13)
- set print off
- set cons on
- set device to screen
- wait '┤µ╡╡╖±ú¿ú┘ú»ú╬ú⌐' to w
- clos data
- if w<>'y'
- retu
- endif
- pp=1
- do while .not. file('a:hz.dbf')
- copy file hz.dbf to a:hz.dbf
- pp=2
- enddo
- if pp<>2
- use a:hz
- appe from hz
- endif
- clos data
- retu
-
-