home *** CD-ROM | disk | FTP | other *** search
- clear
- set talk off
- set device to screen
- close database
- a2=.t.
- do while a2
- k1=' '
- k2=' '
- k3=' '
- p3=' '
- a1=.t.
- do while a1
- clear
- @ 1,1 say "╔Φ▒╕▒α║┼" get k1
- @ 2,1 say "▒¿╖╧╚╒╞┌" get k2 pict 'xx.xx.xx'
- read
- a6=.t.
- do while a6
- @ 3,1 clear
- @ 3,1 say "╔Φ▒╕└α╩⌠" get p3
- read
- if p3='h'
- use dm
- a='l'
- do ts.prg
- loop
- endif
- exit
- enddo a6
- @ 4,1 say "▒¿╖╧╚Ñ╧≥" get k3
- read
- wait '╩Σ╚δ╡─╩²╛▌╒²╚╖┬≡(y/n) ' to w
- if w<>'y'
- a6=.f.
- a1=.t.
- else
- a1=.f.
- endif
- enddo a1
- j1=substr(k2,4,2)
- j2=substr(k2,7,2)
- j3=substr(k2,1,2)
- k2=j1+'/'+j2+'/'+j3
- k2=ctod(k2)
- use sb index sb1
- seek k1
- if eof()
- clear
- wait ' ╬▐┤╦╔Φ▒╕ú¼░┤╚╬╥Γ╝ⁿ╖╡╗╪úí'
- clos data
- a1=.t.
- retu
- endif
- j1=sb1
- j2=sb3
- j3=sb4
- j4=sb5
- j5=sb6
- j6=sb7
- j7=sb15
- j8=sb18
- j9=sb17
- j10=sb12
- j11=sb26
- j12=sb24
- j13=sb28
- j15=(k2-j10)/365
- dele all for sb1=k1
- pack
- use bfs
- appe blank
- repl bfs1 with j1,bfs2 with j2,bfs3 with j3,bfs4 with j4,bfs5 with ì
- j5,bfs6 with j6,bfs7 with j7,bfs8 with j8,bfs9 with j9,bfs10 with ì
- j10,bfs12 with k2,bfs13 with j11,bfs14 with k3,bfs11 with j15
- use tj
- loca for tj1=j13 .and. tj2=j12
- repl tj3 with tj3-1
- use sm
- dele all for sm1=k1
- pack
- use bjh
- dele all for bjh1=k1
- pack
- do case
- case p3='2'
- use yl
- dele all for yl1=k1
- pack
- use yan
- dele all for yan1=k1
- pack
- case p3='3'
- use dq
- dele all for dq1=k1
- pack
- case p3='4'
- use dx
- dele all dx7=k1
- pack
- case w='5'
- use gd
- dele all for gd1=k1
- pack
- endcase
- clear
- wait '╗╣╙╨▒≡╡─▒¿╖╧╔Φ▒╕┬≡(y/n) ' to w
- if w='y'
- a2=.t.
- else
- a2=.f.
- endif
- enddo a2
- use sb index sb1
- repl all sb32 with ' ' for sb32='y'
- a2=.t.
- a1=.t.
- clos data
- retu
-
-
-