home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 25 Years Anniversary
/
CHIP_25Jahre_Jubilaeum.iso
/
downloads
/
400616
/
data1.cab
/
_lohnauskunft-Formulare
/
splitt.lsf
< prev
next >
Wrap
Text File
|
2003-04-01
|
3KB
|
133 lines
Include "DruckNT.int"
Include "Lak_NT.int"
'Descriptions
Description Form_Description as "Splittingtabelle"
Description Form_Code as "Splittingtabelle"
Description Page_Orientation as PAGE_PORTRAIT
SetBodyMargin(145,130,100,270)
SetFooterMargin(155,250,155,100)
Dim hNormal as FontType = CreateFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
Dim hBold as FontType = CreateFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
Dim hMini as FontType = CreateFont("Arial", 8, FONT_NORMAL, COLOR_BLACK)
Dim hTitel as FontType=CreateFont("Arial", 16, FONT_BOLD, COLOR_BLACK)
Dim i as Numeric
Dim NumTmp as Numeric
Dim Datensatz as Bool
Dim ESt as String
Dim SolZ as String
Dim GesBelastg as String
Dim BelastgLetzte1000 as String
Dim Waehrung as String
Dim DiffWaehrg as Numeric
Dim NumJahr as Numeric
NumJahr = GetInt("T",21)
If ( NumJahr <= 2001 ) Then
Waehrung = "DM"
DiffWaehrg = 1000
Else
Waehrung = "EUR"
DiffWaehrg = 500
End If
Function Vordruck()
RemoveAllTabs()
SetTabs("C910")
SelectFont(hTitel)
LF
TL( "\tSplittingtabelle " + FormatNumeric( "%0.0f", NumJahr ) )
RemoveAllTabs()
SelectFont(hNormal)
LF
NumTmp=GetPosY()
DrawLineExt(0,NumTmp,1820,NumTmp)
DrawLineExt(0,0,1820,0)
DrawLineExt(0,2570,1820,2570)
DrawLineExt(0,0,0,2570)
DrawLineExt(550,NumTmp,550,2570)
DrawLineExt(720,NumTmp,720,2570)
DrawLineExt(1060,NumTmp,1060,2570)
DrawLineExt(1310,NumTmp,1310,2570)
DrawLineExt(1520,NumTmp,1520,2570)
DrawLineExt(1820,0,1820,2570)
SetTabs("C275 C635 C890 C1185 C1415 C1670")
LF
TL("\tzu versteuerndes"+"\tZusatz-"+"\tTarifliche"+"\tSolidaritΣts-"+"\tGesamte"+"\tBelastung der")
TL("\tEinkommen"+"\tTabelle?"+"\tEinkommensteuer"+"\tzuschlag"+"\tBelastung"+"\tletzten"+FormatNumeric( "% 0.0f ", DiffWaehrg )
+ Waehrung )
TL("\tin "+Waehrung+"\t"+"\tin "+Waehrung+"\tin "+Waehrung+"\tin %"+"\tin %")
LF
NumTmp=GetPosY()
DrawLineExt(0,NumTmp,1820,NumTmp)
LF
RemoveAllTabs()
SetTabs("R285 R505 C635 R985 R1270 R1460 R1720")
SelectFont(hNormal)
i=1
End Function
Function GetWerte()
ESt=StrAmt("T",2)
If ESt="0,00" then ESt="-" End If
SolZ=StrAmt("T",16)
If SolZ="0,00" then SolZ="-" End If
GesBelastg=StrAmt("T",4)
If GesBelastg="0,00" then GesBelastg="-" End If
BelastgLetzte1000=StrAmt("T",5)
If BelastgLetzte1000="0,00" then BelastgLetzte1000="-" End If
End Function
Function PrintFooter()
SelectFont(hMini)
RemoveAllTabs()
SetTabs("C910 R")
T("Lexware lohnauskunft "+GetProgramVersion()+"\t- " +PAGENUMBER+ " -\t"+FormatDate("%d.%m.%Y",Now()))
End Function
SetEventHandler(EVENT_START_PAGE,Vordruck)
SetEventHandler(EVENT_PRINT_FOOTER,PrintFooter)
Vordruck()
RemoveAllTabs()
SetTabs("R295 R515 C635 R985 R1270 R1460 R1720")
SelectFont(hNormal)
Datensatz=FirstRecord("T")
Dim Zeilenhoehe as Numeric
Zeilenhoehe=GetLineHeight()
While Datensatz Do
GetWerte()
TL("\t"+StrAmt("T",6)+" bis"+"\t"+StrAmt("T",1)+"\t"+StrBool("T",3)+"\t"+ESt+"\t"+SolZ+"\t"+GesBelastg+"\t"+BelastgLetzte1000)
If i=5 AND (Zeilenhoehe<=2570-GetPosY()) Then
LF
i=0
End If
i=i+1
Datensatz=NextRecord("T")
End While