home *** CD-ROM | disk | FTP | other *** search
- clear
- set talk off
- close database
- sele 1
- use sg
- sele 2
- use yin
- set device to screen
- k1=' '
- k2=' '
- @ 4,10 say "╟δ╩Σ╚δ╞≡╩╝╚╒╞┌" get k1 pict '99.99.99'
- @ 5,10 say "╓╒╓╣╚╒╞┌" get k2 pict "99.99.99"
- read
- d1=k1
- d2=k2
- 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)
- set device to print
- set print on
- set cons off
- ? chr(27)+"IJ"
- set print off
- set cons on
- j1=0
- j2=0
- j3=0
- j4=0
- j5=0
- j6=0
- t1=0
- t2=0
- t3=0
- t4=0
- t5=0
- t6=0
- p1=0
- p2=0
- p3=0
- p4=0
- p5=0
- p6=0
- @ 2,40 say " "+d1+"---"+d2+"╔Φ▒╕╩┬╣╩═│╝╞▒¿▒φ"
- @ 3,1 say " "
- @ 4,1 say ì
- "=================================================================ì
- ================================================"
- @ 5,1 say "| | | | ╩┬╣╩╦≡╩º ì
- |"
- @ 6,1 say "|╩┬╣╩╘¡╥≥ ì
- |╩┬╣╩└α▒≡|╩┬╣╩┤╬╩²|--------------|----------------------|------------|------------|------ì
- ------|"
- @ 7,1 say "| | | ì
- |═ú╗·╠¿╩▒(╨í╩▒)|╞Σ╓╨╙░╧∞╔·▓·╩▒╝Σ(╨í╩▒)|╓▒╜╙╦≡╩º(╘¬)|╝Σ╜╙╦≡╩º(╘¬)|╨▐└φ╖╤╙├(╘¬)|"
- @ 8,1 say ì
- "|----------------|--------|--------|--------------|------------------ì
- ----|------------|------------|------------|"
- sele 2
- do while .not. eof()
- a=yin1
- b=yin2
- sele 1
- sum sg6,sg7,sg9,sg10,sg11 to x1,x2,x3,x4,x5 for sg3='3' .and. ì
- sg2>=k1 .and. sg2<=k2 .and. sg4=a
- t1=x1+t1
- t2=x2+t2
- t3=t3+x3
- t4=t4+x4
- t5=t5+x5
- count to x6 for sg3='3' .and. sg2>=k1 .and. sg2<=k2 .and. sg4=a
- t6=t6+x6
- @ prow()+1,1 say "| |╥╗░π |"+str(x6,4)
- @ prow(),36 say "|"+str(x1,6,2)
- @ prow(),51 say "|"+str(x2,6,2)
- @ prow(),74 say "|"+str(x3,10,2)
- @ prow(),87 say "|"+str(x4,10,2)
- @ prow(),100 say "|"+str(x5,10,2)+" |"
- @ prow()+1,1 say "| ì
- |--------|--------|--------------|----------------------|---------ì
- ---|------------|------------|"
- sum sg6,sg7,sg9,sg10,sg11 to y1,y2,y3,y4,y5 for sg3='2' .and. ì
- sg4=a .and. sg2>=k1 .and. sg2<=k2
- count to y6 for sg3='2' .and. sg4=a .and. sg2>=k1 .and. sg2<=k2
- j1=j1+y1
- j2=j2+y2
- j3=j3+y3
- j4=j4+y4
- j5=j5+y5
- j6=j6+y6
- @ prow()+1,1 say "|"+b+"|╓╪┤≤ |"+str(y6,4)
- @ prow(),36 say "|"+str(y1,6,2)
- @ prow(),51 say "|"+str(y2,6,2)
- @ prow(),74 say "|"+str(y3,10,2)
- @ prow(),87 say "|"+str(y4,10,2)
- @ prow(),100 say "|"+str(y5,10,2)+" |"
- @ prow()+1,1 say "| ì
- |--------|--------|--------------|----------------------|---------ì
- ---|------------|------------|"
- sum sg6,sg7,sg9,sg10,sg11 to z1,z2,z3,z4,z5 for sg3='1' .and.ì
- sg4=a .and. sg2>=k1 .and. sg2<=k2
- count to z6 for sg3='1' .and. sg4=a .and. sg2>=k1 .and. sg2<=k2
- p1=p1+z1
- p2=p2+z2
- p3=p3+z3
- p4=p4+z4
- p5=p5+z5
- p6=p6+z6
- @ prow()+1,1 say "| |╠╪┤≤ |"+str(z6,4)
- @ prow(),36 say "|"+str(z1,6,2)
- @ prow(),51 say "|"+str(z2,6,2)
- @ prow(),74 say "|"+str(z3,10,2)
- @ prow(),87 say "|"+str(z4,10,2)
- @ prow(),100 say "|"+str(z5,10,2)+" |"
- sele 2
- skip
- if .not. eof()
- @ prow()+1,1 say ì
- "|----------------|--------|--------|--------------|------------------ì
- ----|------------|------------|------------|"
- else
- @ prow()+1,1 say ì
- "|----------------|--------|--------|--------------|--------------ì
- --------|------------|------------|------------|"
- @ prow()+1,1 say "| |╥╗░π |"+str(t6,4)
- @ prow(),36 say "|"+str(t1,6,2)
- @ prow(),51 say "|"+str(t2,6,2)
- @ prow(),74 say "|"+str(t3,10,2)
- @ prow(),87 say "|"+str(t4,10,2)
- @ prow(),100 say "|"+str(t5,10,2)+" |"
- @ prow()+1,1 say "| ì
- |--------|--------|--------------|----------------------|---------ì
- ---|------------|------------|"
- @ prow()+1,1 say "|║╧╝╞ |╓╪┤≤ |"+str(j6,4)
- @ prow(),36 say "|"+str(j1,6,2)
- @ prow(),51 say "|"+str(j2,6,2)
- @ prow(),74 say "|"+str(j3,10,2)
- @ prow(),87 say "|"+str(t4,10,2)
- @ prow(),100 say "|"+str(t5,10,2)+" |"
- @ prow()+1,1 say "| ì
- |--------|--------|--------------|----------------------|---------ì
- ---|------------|------------|"
- @ prow()+1,1 say "| |╠╪┤≤ |"+str(p6,4)
- @ prow(),36 say "|"+str(p1,6,2)
- @ prow(),51 say "|"+str(p2,6,2)
- @ prow(),74 say "|"+str(p3,10,2)
- @ prow(),87 say "|"+str(p4,10,2)
- @ prow(),100 say "|"+str(p5,10,2)+" |"
- @ prow()+1,1 say ì
- "=================================================================ì
- ================================================"
- endif
- enddo
- set print on
- ? chr(13)
- set print off
- set device to screen
- retu
-
-
-