home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 25 Years Anniversary
/
CHIP_25Jahre_Jubilaeum.iso
/
downloads
/
400616
/
data1.cab
/
_lohnauskunft-Formulare-Standard
/
verglch.lsf
< prev
next >
Wrap
Text File
|
2003-04-01
|
7KB
|
227 lines
Include "DruckNT.int"
Include "Lak_NT.int"
'Descriptions
Description Form_Description as "Vergleichsberechnung"
Description Form_Code as "Vergleichsberechnung"
Description Page_Orientation as PAGE_PORTRAIT
SetBodyMargin(135,80,105,200)
'SetFooterMargin(145, 230, 130, 50)
'ZΣhlvariablen
dim i as Numeric=0
dim j as Numeric=2
dim k as Numeric=1
Dim n as Numeric
Dim gerade as Bool=FALSE
'Schriftgr÷▀en
Dim TopGross as FontType=CreateFont("Arial", 14, FONT_BOLD, COLOR_BLACK)
Dim TopNormal as FontType=CreateFont("Arial", 12, FONT_BOLD, COLOR_BLACK)
Dim Normal as FontType=CreateFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
Dim NormalBold as FontType=CreateFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
'Farben
Const COLOR_GREY_LIGHT as 15790320
Const COLOR_GREY_DARK as 13158600
Function OnPrintFooter()
SetFont("Arial",8,FONT_NORMAL,COLOR_BLACK)
SetTabs("L1 C R")
T("\tLexware lohnauskunft " +GetProgramVersion()+"\t"+"\t"+FormatDate("%d.%m.%Y",Now()))
' DrawBitmap(700, GetPosY()+5,22,23,"copyright.bmp")
RemoveAllTabs()
End Function
Function BorderWidth(id as CellType, left as Numeric, top as Numeric, right as Numeric, bottom as Numeric)
SetCellBorder(id, CELL_BORDER_LEFT,left ,PEN_SOLID, COLOR_BLACK)
SetCellBorder(id, CELL_BORDER_TOP, top,PEN_SOLID, COLOR_BLACK)
SetCellBorder(id, CELL_BORDER_RIGHT, right,PEN_SOLID, COLOR_BLACK)
SetCellBorder(id, CELL_BORDER_BOTTOM,bottom ,PEN_SOLID, COLOR_BLACK)
End Function
Dim cVergleich as CellType=CreateCell(0,0, CELL_TYPE_DYNHORZ+CELL_TYPE_DYNVERT+CELL_TYPE_VERT)
Dim cVergleichTop as CellType=CreateCellEx(cVergleich,1850, 80, CELL_TYPE_DYNHORZ, "Vergleichsberechnung",
TopGross, CELL_TEXT_LEFT, COLOR_GREY_DARK, hSolidPen, hSolidPen, hSolidPen, hSolidPen, hNullPen, 30,15,0,0)
BorderWidth(cVergleichTop, 3, 3, 3, 3)
DrawCell(cVergleichTop,TRUE)
Dim cZeile as CellType=CreateCellEx(cVergleich, 1850, 60, CELL_TYPE_HORZ+CELL_TYPE_DYNVERT, "",
Normal, CELL_TEXT_LEFT, COLOR_WHITE, hSolidPen, hSolidPen , hSolidPen, hSolidPen, hNullPen, 15,20,0,0)
Function Cell( index as Numeric) as CellType
Cell=GetCellByIndex(cZeile, index)
End Function
BorderWidth(cZeile,3,1,3,0)
Dim Ergebnis as CellType=CreateCellEx(cZeile, 540 , 60, CELL_TYPE_DYNVERT, "", Normal, CELL_TEXT_LEFT, COLOR_TRANSPARENT,
hNullPen, hNullPen, hSolidPen, hNullPen, hNullPen, 15, 10 , 0 ,10 )
Dim Name1 as CellType=(CreateCellEx(cZeile, 425 , 60,CELL_TYPE_DYNVERT, "", Normal, CELL_TEXT_RIGHT, COLOR_TRANSPARENT,
hNullPen, hNullPen, hSolidPen, hNullPen, hNullPen,0 , 10 ,15 ,10 ))
Dim Name2 as CellType=(CreateCellEx(cZeile, 425 , 60,CELL_TYPE_DYNVERT, "", Normal, CELL_TEXT_RIGHT, COLOR_TRANSPARENT,
hNullPen, hNullPen, hSolidPen, hNullPen, hNullPen, 0, 10 , 15 ,10 ))
Dim Differenz as CellType=(CreateCellEx(cZeile, 270 , 60,CELL_TYPE_DYNVERT, "", Normal,CELL_TEXT_RIGHT, COLOR_TRANSPARENT,
hNullPen, hNullPen, hSolidPen, hNullPen, hNullPen, 0, 10 ,15 ,10))
Dim Waehrung as CellType=(CreateCellEx(cZeile, 190 , 60,CELL_TYPE_DYNVERT, "", Normal,CELL_TEXT_CENTER, COLOR_TRANSPARENT,
hNullPen, hNullPen, hSolidPen, hNullPen, hNullPen, 0, 10 ,0 ,10))
While k<5 Do
BorderWidth(Cell(k),0,0,2,0)
k=k+1
End While
While i<=41 Do
If i=0 Then
SetCellBackground(cZeile, COLOR_GREY_LIGHT)
k=1
While k<=5 Do
SelectCellFont(Cell(k), NormalBold)
k=k+1
End While
SetCellBorder(cZeile, CELL_BORDER_TOP, 0,PEN_SOLID, COLOR_BLACK)
End If
If i=1 OR i=22 Then
SetCellBackground(cZeile, COLOR_GREY_DARK)
k=1
While k<=5 Do
SelectCellFont(Cell(k),NormalBold)
k=k+1
End While
SelectCellFont(cZeile, NormalBold)
SetCellBorder(cZeile, CELL_BORDER_TOP, 3,PEN_SOLID, COLOR_BLACK)
End If
If i=41 Then
SetCellBorder(cZeile, CELL_BORDER_BOTTOM, 3,PEN_SOLID, COLOR_BLACK)
End If
If i>1 AND i<22 AND gerade=TRUE Then
SetCellBackground(cZeile, COLOR_GREY_LIGHT)
End If
If i>22 AND gerade=FALSE Then
SetCellBackground(cZeile, COLOR_GREY_LIGHT)
End If
If (0<i AND i<=28) OR i>=36 Then
SetCellText(Cell(1), Get("V",100+i))
If i=2 Then SetCellText(Cell(1), "Jahr - Monat") End If
If i=14 Then SetCellText(Cell(1), "╓ffentlicher Dienst") End If
Else
If i=29 Then
SetCellText(Cell(1), "pauschale Lohnsteuer")
End If
If i=30 Then
SetCellText(Cell(1), "pauschaler SolidaritΣtszuschlag")
End If
If i=31 Then
SetCellText(Cell(1), "pauschale Kirchensteuer")
End If
If i=32 Then
SetCellText(Cell(1), "Krankenversicherung")
End If
If i=33 Then
SetCellText(Cell(1), "Pflegeversicherung")
End If
If i=34 Then
SetCellText(Cell(1), "Rentenversicherung")
End If
If i=35 Then
SetCellText(Cell(1), "Arbeitslosenversicherung")
End If
End If
If i=38 Then
SetCellText(Cell(1), "gesetzliche Abzⁿge")
End If
If i<=4 OR (7<=i AND i<=14) OR i=22 Then
If i<>0 Then
j=2
While j<=4 Do
SetCellText(Cell(j), StrStr("V",j*100+i))
j=j+1
End While
If StrStr("V",200+i)<>StrStr("V",300+i) Then
SetCellAlign(Cell(4), CELL_TEXT_CENTER)
End If
SetCellText(Cell(5), "")
Else
SetCellText(Cell(2), StrStr("V",2))
SetCellText(Cell(3), StrStr("V",3))
SetCellText(Cell(4), "Differenz")
SetCellText(Cell(5), "WΣhrung")
End If
Else
j=2
While j<=4 Do
If i<>5 Then
SetCellText(Cell(j), StrAmt("V",j*100+i))
Else
SetCellText(Cell(j), FormatNumeric("%.1f", GetNumeric("V",j*100+i)))
End If
j=j+1
End While
If StrAmt("V",200+i)=StrAmt("V",300+i) Then
SetCellText(Cell(4), "")
End If
If i<>5 Then
SetCellText(Cell(5), StrStr("V",1))
Else
SetCellText(Cell(5), "")
End If
End If
DrawCell(cZeile, TRUE)
SetCellAlign(Cell(4), CELL_TEXT_RIGHT)
SetCellBackground(cZeile, COLOR_WHITE)
SelectCellFont(cZeile, Normal)
SetCellBorder(cZeile, CELL_BORDER_TOP, 1,PEN_SOLID, COLOR_BLACK)
k=1
While k<=5 Do
SelectCellFont(Cell(k), Normal)
k=k+1
End While
i=i+1
IF gerade=TRUE Then
gerade=FALSE
Else
gerade=TRUE
End If
End While
Dim NumTmp as Numeric
NumTmp=GetPosY()
SetFont("Arial",8,FONT_NORMAL,COLOR_BLACK)
If NumTmp<2690-GetLineHeight()-15 Then
SetPos(20,NumTmp+10)
T("Lexware lohnauskunft "+GetProgramVersion())
RemoveAllTabs()
SetTabs("R-30")
T("\t"+FormatDate("%d.%m.%Y",Now()))
RemoveAllTabs()
Else
SetPos(1150,30)
T("Lexware lohnauskunft "+GetProgramVersion())
SetPos(1670,30)
T("\t"+FormatDate("%d.%m.%Y",Now()))
End If