home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Taifun Collection
/
Taifun_Collection_Vol_1.iso
/
richter
/
8659
/
8659.mhs
/
RICHTER.DTP
/
KFZ
/
KFZ6.SC
< prev
next >
Wrap
Text File
|
1991-12-22
|
2KB
|
104 lines
; Kfz6
AppLib = "Kfz2"
if (not isfile(AppLib + ".lib")) then
Createlib AppLib
endif
proc Kfz6S1()
private opResult
Readlib "Kfzutl" ReportTable
opResult = ReportTable("Lager1", "Lager1", "1", "Printer", "")
Release Procs ReportTable
return opResult
endproc
Writelib AppLib Kfz6S1
Release Procs Kfz6S1
proc Kfz6S3()
private opResult
Readlib "Kfzutl" ReportTable
opResult = ReportTable("Auftrag", "Auftrag", "3", "Printer", "")
Release Procs ReportTable
return opResult
endproc
Writelib AppLib Kfz6S3
Release Procs Kfz6S3
proc Kfz6Menu()
private x, escape
x = "Lagerbestand"
while (TRUE)
Clear
ShowMenu
"Lagerbestand": "Lagerbestand drucken",
"Bestelliste": "Bestelliste drucken",
"Adressen": "Kundenadressen drucken",
"Auftrag": "Rechnungen und Kostenvoranschläge drucken",
"Leistungen": "Dienstleistungskatalog drucken, Leistungstab. für Aufträge"
Default x
To x
switch
case x = "Lagerbestand":
ReadLib "Kfz2" Kfz6S1
escape = Kfz6S1()
escape = not escape
Release Procs Kfz6S1
case x = "Bestelliste":
Play "Besteld"
x = "Bestelliste"
escape = FALSE
case x = "Adressen":
ReadLib "Kfz2" Kfz6S3
escape = Kfz6S3()
escape = not escape
Release Procs Kfz6S3
case x = "Auftrag":
ReadLib "Kfz3" Kfz9Menu
escape = Kfz9Menu()
escape = not escape
Release Procs Kfz9Menu
case x = "Leistungen":
ReadLib "Kfz4" Kfz12Menu
escape = Kfz12Menu()
escape = not escape
Release Procs Kfz12Menu
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 Kfz6Menu
Release Procs Kfz6Menu