home *** CD-ROM | disk | FTP | other *** search
- clear
- set talk off
- set device to screen
- close database
- if t='2'
- set cons off
- dele file sx.dbf
- use bjh
- copy to eb for bjh5<>0 field ì
- bjh1,bjh5,bjh12
- set cons on
- endif
- a=' '
- @ 4,10 say '╟δ╩Σ╚δ╜╪╓╣╚╒╞┌' get a pict '99.99.99'
- read
- clear
- @ 4,20 say "╒²╘┌╝╞╦πú¼╟δ╔╘║≥úí"
- j1=substr(a,4,2)
- j2=substr(a,7,2)
- j3=substr(a,1,2)
- a=j1+'/'+j2+'/'+j3
- a=ctod(a)
- sele 1
- use eb
- sele 2
- use xs
- sele 5
- use de
- sele 6
- use sb index sb1
- sele 7
- use jh index jh1
- dele all for jh2='4'
- pack
- sele 1
- do while .not. eof()
- e=bjh5
- c=bjh12
- b=1
- p1=1
- do while c+e<=a
- f=c+e
- c=month(f)
- if p1=1
- p=bjh1
- sele 6
- seek p
- a1=sb13
- a2=sb14
- a3=sb4
- qq=sb24
- sele 2
- loca for xs16=qq .and. xs17='4'
- b1=xs1
- b2=xs2
- b3=xs3
- b4=xs4
- b5=xs5
- b6=xs6
- b7=xs7
- b8=xs8
- b9=xs9
- b10=xs10
- b11=xs11
- b12=xs12
- b13=xs13
- b14=xs14
- b15=xs15
- sele 5
- loca for de1=a3
- x1=a1*b1
- x2=a2*b2
- x3=de5*b3
- x4=de6*b4
- x5=de7*b5
- x6=de8*b6
- x7=de11*b7
- x8=a1*b8+a2*b10+de5*b11+de6*b12+de7*b13+de8*b14+de11*b15
- if a1<=a2
- p11=a1
- a1=a2
- a2=p11
- endif
- x9=b9*a1
- p1=2
- endif
- sele 7
- j1=year(a)
- j2=year(f)
- j1=j1-1
- loca for jh1=p .and. jh3=c
- if j2>j1
- if eof()
- appe blank
- repl jh1 with p,jh2 with '4',jh3 with c,jh4 with x1,jh5 with ì
- x2,jh6 with x3,jh7 with x4,jh8 with x5,jh9 with x6,jh10 with x7
- repl jh11 with x8,jh12 with x9
- endif
- endif
- c=f
- enddo
- sele 1
- skip
- enddo
- close database
- set cons on
- retu
-
-