home *** CD-ROM | disk | FTP | other *** search
- clear
- set talk off
- set device to screen
- close database
- sele 1
- use sb index sb1
- sele 2
- use dgm
- sele 3
- use xl
- sele 4
- use dw
- k1=' '
- k2=' '
- @ 4,10 say "╟δ╩Σ╚δ╞≡╩╝╚╒╞┌" get k1 pict 'xx.xx.xx'
- @ 5,10 say "╓╒╓╣╚╒╞┌" get k2 pict 'xx.xx.xx'
- read
- j1=substr(k1,4,2)
- j2=substr(k1,7,2)
- j3=substr(k1,1,2)
- k1=j1+'/'+j2+'/'+j3
- k1=ctod(k1)
- j1=substr(k2,4,2)
- j2=substr(k2,7,2)
- j3=substr(k2,1,2)
- k2=j1+'/'+j2+'/'+j3
- k2=ctod(k2)
- clear
- set device to print
- set print on
- set cons off
- ? chr(27)+"IJ"
- set print off
- set cons on
- @ 1,30 say "╕≈╡Ñ╬╗╨╣┬⌐╟Θ┐÷"
- @ 2,1 say " "
- @ 3,1 say ì
- "=================================================================ì
- ============="
- @ 4,1 say "| |╛▓├▄╖Γ╡π╩²|╛▓╨╣┬⌐╡π╩²|╛▓╨╣┬⌐┬╩ ì
- %.|╥¬╟≤╡─╛▓╨╣┬⌐┬╩ %.|│¼▓ε╟Θ┐÷ %.|"
- @ 5,1 say "|╡Ñ ì
- ╬╗| -------- | -------- | --------- | --------------- | --------- |"
- @ 6,1 say "| |╢»├▄╖Γ╡π╩²|╢»├▄╨╣┬⌐╩²|╢»╨╣┬⌐┬╩ ì
- %.|╥¬╟≤╡─╢»╨╣┬⌐┬╩ %.|│¼▓ε╟Θ┐÷ %.|"
- @ 7,1 say ì
- "|------------|----------|----------|-----------|-----------------|---ì
- --------|"
- sele 4
- do while .not. eof()
- a=dw1
- sele 1
- sum sb35,sb36 to x1,y1 for sb28=a
- sele 2
- loca for dgm1=a
- x2=dgm2
- x=dgm3
- y=dgm4
- x1=x1+x2
- sele 3
- sum xl3,xl4 to x2,y2 for xl2=a .and. xl1>=k1 .and. xl1<=k2
- sele 4
- k3=dw2
- @ prow()+1,1 say "| "
- @ prow(),14 say "|"+str(x1,4)
- @ prow(),25 say "|"+str(x2,4)
- a=x2/x1*1000
- @ prow(),36 say "|"+str(a,8,3)
- @ prow(),48 say "|"+str(x,5,2)
- a=a-x
- @ prow(),66 say "|"+str(a,8,3)+" |"
- @ prow()+1,1 say "|"+k3
- @ prow(),14 say ì
- "| -------- | -------- | --------- | --------------- | --------- |"
- @ prow()+1,1 say "| "
- @ prow(),14 say "|"+str(y1,4)
- @ prow(),25 say "|"+str(y2,4)
- a=y2/y1*1000
- @ prow(),36 say "|"+str(a,8,3)
- @ prow(),48 say "|"+str(y,5,2)
- a=a-y
- @ prow(),66 say "|"+str(a,8,3)+" |"
- sele 4
- skip
- if .not. eof()
- @ prow()+1,1 say ì
- "|------------|----------|----------|-----------|-----------------|-ì
- ----------|"
- else
- @ prow()+1,1 say ì
- "=================================================================ì
- ============="
- endif
- enddo
- set print on
- ? chr(13)
- set print off
- set device to screen
- a1=.t.
- retu