home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Taifun Collection
/
Taifun_Collection_Vol_1.iso
/
richter
/
8659
/
8659.mhs
/
RICHTER.DTP
/
KFZ
/
KFZ8.SC
< prev
next >
Wrap
Text File
|
1991-12-22
|
3KB
|
132 lines
; Kfz8
AppLib = "Kfz3"
if (not isfile(AppLib + ".lib")) then
Createlib AppLib
endif
proc Kfz8S1()
private opResult, tbl, rt, EscEnter, rechseh
Play "Kfzq1" ; put query on workspace
if (ApplicErrorRetVal) then
ClearAll
return FALSE
endif
Readlib "Kfzutl" EnterVal
; holt einen Wert für die Variable rechseh
rechseh = EnterVal("Auftragsnummer für Rechnung sehen: ", "S", "", 0)
Release Procs EnterVal
if (EscEnter) then
ClearAll
return FALSE
endif
Readlib "Kfzutl" QueryDoIt
rt = QueryDoIt()
Release Procs QueryDoIt
if (not rt) then
return FALSE
endif
Readlib "Kfzutl" ReportTable
opResult = ReportTable("Antwort", "Reart", "1", "Screen", "")
Release Procs ReportTable
return opResult
endproc
Writelib AppLib Kfz8S1
Release Procs Kfz8S1
proc Kfz8S2()
private opResult, tbl, rt, EscEnter, koseh
Play "Kfzq2" ; put query on workspace
if (ApplicErrorRetVal) then
ClearAll
return FALSE
endif
Readlib "Kfzutl" EnterVal
; holt einen Wert für die Variable koseh
koseh = EnterVal("Auftragsnummer für Kostenvoranschlag sehen: ", "S", "", 0)
Release Procs EnterVal
if (EscEnter) then
ClearAll
return FALSE
endif
Readlib "Kfzutl" QueryDoIt
rt = QueryDoIt()
Release Procs QueryDoIt
if (not rt) then
return FALSE
endif
Readlib "Kfzutl" ReportTable
opResult = ReportTable("Antwort", "Reart", "2", "Screen", "")
Release Procs ReportTable
return opResult
endproc
Writelib AppLib Kfz8S2
Release Procs Kfz8S2
proc Kfz8Menu()
private x, escape
x = "Rechnung sehen"
while (TRUE)
Clear
ShowMenu
"Rechnung sehen": "Rechnung sehen Option",
"Kostenvoran. sehen": "Kostenvoran. sehen Option"
Default x
To x
switch
case x = "Rechnung sehen":
ReadLib "Kfz3" Kfz8S1
escape = Kfz8S1()
escape = not escape
Release Procs Kfz8S1
case x = "Kostenvoran. sehen":
ReadLib "Kfz3" Kfz8S2
escape = Kfz8S2()
escape = not escape
Release Procs Kfz8S2
case x = "Esc":
return FALSE
endswitch
; Wert von ErrorProc zurücksetzen
ErrorProc = "ApplicErrorProc"
ApplicErrorRetVal = FALSE
if (not escape) then
return TRUE
endif
endwhile
endproc
Writelib AppLib Kfz8Menu
Release Procs Kfz8Menu