Overtime and the Daily Time Sheet |
|
Another to calculate overtime considers each day on its own.
In this case, a regular work day has 1 to 8 hours. Any period over 8 hours is
considered overtime. As a result, an employee can work one or two days in a week
and get overtime, just like another employee can work 5 or more days a week but
not get overtime.
Practical Learning: Evaluating a Payroll
|
|
- In the empty document, type the following:
Imports System
Imports System.IO
Imports System.Xml
Imports System.Drawing
Imports System.Windows.Forms
Public Class PayrollSummary2
Inherits Form
Private lblStartDate As Label
Private dtpStartDate As DateTimePicker
Private WithEvents txtEmployeeNumber As TextBox
Private lblHourlySalary As Label
Private txtHourlySalary As TextBox
Private lblTimeSheetID As Label
Private txtTimeSheetID As TextBox
Private WithEvents btnFind As Button
Private txtTotalOvertimePayWeek2 As TextBox
Private txtTotalRegularPayWeek2 As TextBox
Private txtTotalOvertimeWeek2 As TextBox
Private txtTotalRegularTimeWeek2 As TextBox
Private txtTotalOvertimePayWeek1 As TextBox
Private txtTotalRegularPayWeek1 As TextBox
Private txtTotalOvertimeWeek1 As TextBox
Private txtTotalRegularTimeWeek1 As TextBox
Private txtTotalTimeWeek2 As TextBox
Private txtTotalTimeWeek1 As TextBox
Private lblDoubleLine As Label
Private lblSmrWk2OvertimePay As Label
Private txtSmrWk2SunOvertimePay As TextBox
Private txtSmrWk2SatOvertimePay As TextBox
Private txtSmrWk2FriOvertimePay As TextBox
Private txtSmrWk2ThuOvertimePay As TextBox
Private txtSmrWk2WedOvertimePay As TextBox
Private txtSmrWk2TueOvertimePay As TextBox
Private txtSmrWk2MonOvertimePay As TextBox
Private lblSmrWk2RegularPay As Label
Private txtSmrWk2SunRegularPay As TextBox
Private txtSmrWk2SatRegularPay As TextBox
Private txtSmrWk2FriRegularPay As TextBox
Private txtSmrWk2ThuRegularPay As TextBox
Private txtSmrWk2WedRegularPay As TextBox
Private txtSmrWk2TueRegularPay As TextBox
Private txtSmrWk2MonRegularPay As TextBox
Private lblSmrWk2Overtime As Label
Private txtSmrWk2SunOvertime As TextBox
Private txtSmrWk2SatOvertime As TextBox
Private txtSmrWk2FriOvertime As TextBox
Private txtSmrWk2ThuOvertime As TextBox
Private txtSmrWk2WedOvertime As TextBox
Private txtSmrWk2TueOvertime As TextBox
Private txtSmrWk2MonOvertime As TextBox
Private lblSmrWk2RegularTime As Label
Private txtSmrWk2SunRegularTime As TextBox
Private txtSmrWk2SatRegularTime As TextBox
Private txtSmrWk2FriRegularTime As TextBox
Private txtSmrWk2ThuRegularTime As TextBox
Private txtSmrWk2WedRegularTime As TextBox
Private txtSmrWk2TueRegularTime As TextBox
Private txtSmrWk2MonRegularTime As TextBox
Private lblSmrWk1OvertimePay As Label
Private txtSmrWk1SunOvertimePay As TextBox
Private txtSmrWk1SatOvertimePay As TextBox
Private txtSmrWk1FriOvertimePay As TextBox
Private txtSmrWk1ThuOvertimePay As TextBox
Private txtSmrWk1WedOvertimePay As TextBox
Private txtSmrWk1TueOvertimePay As TextBox
Private txtSmrWk1MonOvertimePay As TextBox
Private lblSmrWk1RegularPay As Label
Private txtSmrWk1MonRegularPay As TextBox
Private txtSmrWk1TueRegularPay As TextBox
Private txtSmrWk1WedRegularPay As TextBox
Private txtSmrWk1ThuRegularPay As TextBox
Private txtSmrWk1FriRegularPay As TextBox
Private txtSmrWk1SatRegularPay As TextBox
Private txtSmrWk1SunRegularPay As TextBox
Private lblSmrWk1Overtime As Label
Private txtSmrWk1MonOvertime As TextBox
Private txtSmrWk1TueOvertime As TextBox
Private txtSmrWk1WedOvertime As TextBox
Private txtSmrWk1ThuOvertime As TextBox
Private txtSmrWk1FriOvertime As TextBox
Private txtSmrWk1SatOvertime As TextBox
Private txtSmrWk1SunOvertime As TextBox
Private lblSmrWk1RegularTime As Label
Private txtSmrWk1MonRegularTime As TextBox
Private txtSmrWk1TueRegularTime As TextBox
Private txtSmrWk1WedRegularTime As TextBox
Private txtSmrWk1ThuRegularTime As TextBox
Private txtSmrWk1FriRegularTime As TextBox
Private txtSmrWk1SatRegularTime As TextBox
Private txtSmrWk1SunRegularTime As TextBox
Private lblLineWeek2Summary As Label
Private lblLineWeek1Summary As Label
Private lblSummarySunday As Label
Private lblEmployeeNumber As Label
Private txtEmployeeName As TextBox
Private lblTimeSheetWeek2 As Label
Private lblTimeSheetWeek1 As Label
Private txtTSWk2Sunday As TextBox
Private txtTSWk2Saturday As TextBox
Private txtTSWk2Friday As TextBox
Private txtTSWk2Thursday As TextBox
Private txtTSWk2Wednesday As TextBox
Private txtTSWk2Tuesday As TextBox
Private txtTSWk2Monday As TextBox
Private txtTSWk1Monday As TextBox
Private txtTSWk1Tuesday As TextBox
Private txtTSWk1Wednesday As TextBox
Private txtTSWk1Thursday As TextBox
Private txtTSWk1Friday As TextBox
Private txtTSWk1Saturday As TextBox
Private txtTSWk1Sunday As TextBox
Private lblTimeSheetSunday As Label
Private lblTimeSheetSaturday As Label
Private lblTimeSheetFriday As Label
Private lblTimeSheetThursday As Label
Private lblTimeSheetWednesday As Label
Private lblTimeSheetTuesday As Label
Private lblTimeSheetMonday As Label
Private txtGrossSalary As TextBox
Private lblGrossSalary As Label
Private txtOvertimePay As TextBox
Private txtRegularPay As TextBox
Private txtOvertime As TextBox
Private txtRegularTime As TextBox
Private lblOvertime As Label
Private lblRegular As Label
Private lblTime As Label
Private lblPay As Label
Private lblTotals As Label
Private lblDoubleLine1 As Label
Private label2 As Label
Private WithEvents btnClose As Button
Private hourlySalary As Double
Private overtimeSalary As Double
Private week1Monday As Double
Private week1Tuesday As Double
Private week1Wednesday As Double
Private week1Thursday As Double
Private week1Friday As Double
Private week1Saturday As Double
Private week1Sunday As Double
Private week2Monday As Double
Private week2Tuesday As Double
Private week2Wednesday As Double
Private week2Thursday As Double
Private week2Friday As Double
Private week2Saturday As Double
Private week2Sunday As Double
Public Sub New()
InitializeComponent()
End Sub
Private Sub InitializeComponent()
REM Label: Start Date
lblStartDate = New Label()
lblStartDate.AutoSize = True
lblStartDate.Location = New System.Drawing.Point(22, 22)
lblStartDate.TabIndex = 344
lblStartDate.Text = "Start Date:"
REM Date/Time Picker: Start Date
dtpStartDate = New DateTimePicker()
dtpStartDate.Location = New System.Drawing.Point(100, 18)
dtpStartDate.Size = New System.Drawing.Size(200, 20)
dtpStartDate.TabIndex = 346
REM Label: EmployeeNumber
lblEmployeeNumber = New Label()
lblEmployeeNumber.AutoSize = True
lblEmployeeNumber.Location = New System.Drawing.Point(21, 49)
lblEmployeeNumber.TabIndex = 347
lblEmployeeNumber.Text = "Employee #:"
REM Text Box: EmployeeName
txtEmployeeName = New TextBox()
txtEmployeeName.Location = New System.Drawing.Point(170, 46)
txtEmployeeName.Size = New System.Drawing.Size(200, 20)
txtEmployeeName.TabIndex = 376
REM Text Box: Employee Number
txtEmployeeNumber = New TextBox()
txtEmployeeNumber.Location = New System.Drawing.Point(100, 46)
txtEmployeeNumber.Size = New System.Drawing.Size(64, 20)
txtEmployeeNumber.TabIndex = 348
REM Label: Hourly Salary
lblHourlySalary = New Label()
lblHourlySalary.AutoSize = True
lblHourlySalary.Location = New System.Drawing.Point(22, 78)
lblHourlySalary.TabIndex = 353
lblHourlySalary.Text = "Hourly Salary:"
REM Text Box: Hourly Salary
txtHourlySalary = New TextBox()
txtHourlySalary.Location = New System.Drawing.Point(100, 75)
txtHourlySalary.Size = New System.Drawing.Size(64, 20)
txtHourlySalary.TabIndex = 380
txtHourlySalary.Text = "0.00"
txtHourlySalary.TextAlign = HorizontalAlignment.Right
REM Label: TimeSheetID
lblTimeSheetID = New Label()
lblTimeSheetID.AutoSize = True
lblTimeSheetID.Location = New System.Drawing.Point(220, 78)
lblTimeSheetID.TabIndex = 494
lblTimeSheetID.Text = "Time Sheet #:"
REM Text Box: TimeSheetID
txtTimeSheetID = New TextBox()
txtTimeSheetID.Location = New System.Drawing.Point(300, 75)
txtTimeSheetID.Size = New System.Drawing.Size(70, 20)
txtTimeSheetID.TabIndex = 495
REM Button: Find
btnFind = New Button()
btnFind.Location = New System.Drawing.Point(383, 73)
btnFind.Size = New System.Drawing.Size(91, 23)
btnFind.TabIndex = 375
btnFind.Text = "Find"
txtTotalOvertimePayWeek2 = New TextBox()
txtTotalRegularPayWeek2 = New TextBox()
txtTotalOvertimeWeek2 = New TextBox()
txtTotalRegularTimeWeek2 = New TextBox()
txtTotalOvertimePayWeek1 = New TextBox()
txtTotalRegularPayWeek1 = New TextBox()
txtTotalOvertimeWeek1 = New TextBox()
txtTotalRegularTimeWeek1 = New TextBox()
txtTotalTimeWeek2 = New TextBox()
txtTotalTimeWeek1 = New TextBox()
lblDoubleLine = New Label()
lblSmrWk2OvertimePay = New Label()
txtSmrWk2SunOvertimePay = New TextBox()
txtSmrWk2SatOvertimePay = New TextBox()
txtSmrWk2FriOvertimePay = New TextBox()
txtSmrWk2ThuOvertimePay = New TextBox()
txtSmrWk2WedOvertimePay = New TextBox()
txtSmrWk2TueOvertimePay = New TextBox()
txtSmrWk2MonOvertimePay = New TextBox()
lblSmrWk2RegularPay = New Label()
txtSmrWk2SunRegularPay = New TextBox()
txtSmrWk2SatRegularPay = New TextBox()
txtSmrWk2FriRegularPay = New TextBox()
txtSmrWk2ThuRegularPay = New TextBox()
txtSmrWk2WedRegularPay = New TextBox()
txtSmrWk2TueRegularPay = New TextBox()
txtSmrWk2MonRegularPay = New TextBox()
lblSmrWk2Overtime = New Label()
txtSmrWk2SunOvertime = New TextBox()
txtSmrWk2SatOvertime = New TextBox()
txtSmrWk2FriOvertime = New TextBox()
txtSmrWk2ThuOvertime = New TextBox()
txtSmrWk2WedOvertime = New TextBox()
txtSmrWk2TueOvertime = New TextBox()
txtSmrWk2MonOvertime = New TextBox()
lblSmrWk2RegularTime = New Label()
txtSmrWk2SunRegularTime = New TextBox()
txtSmrWk2SatRegularTime = New TextBox()
txtSmrWk2FriRegularTime = New TextBox()
txtSmrWk2ThuRegularTime = New TextBox()
txtSmrWk2WedRegularTime = New TextBox()
txtSmrWk2TueRegularTime = New TextBox()
txtSmrWk2MonRegularTime = New TextBox()
lblSmrWk1OvertimePay = New Label()
txtSmrWk1SunOvertimePay = New TextBox()
txtSmrWk1SatOvertimePay = New TextBox()
txtSmrWk1FriOvertimePay = New TextBox()
txtSmrWk1ThuOvertimePay = New TextBox()
txtSmrWk1WedOvertimePay = New TextBox()
txtSmrWk1TueOvertimePay = New TextBox()
txtSmrWk1MonOvertimePay = New TextBox()
lblSmrWk1RegularPay = New Label()
txtSmrWk1SunRegularPay = New TextBox()
txtSmrWk1SatRegularPay = New TextBox()
txtSmrWk1FriRegularPay = New TextBox()
txtSmrWk1ThuRegularPay = New TextBox()
txtSmrWk1WedRegularPay = New TextBox()
txtSmrWk1TueRegularPay = New TextBox()
txtSmrWk1MonRegularPay = New TextBox()
lblSmrWk1Overtime = New Label()
txtSmrWk1SunOvertime = New TextBox()
txtSmrWk1SatOvertime = New TextBox()
txtSmrWk1FriOvertime = New TextBox()
txtSmrWk1ThuOvertime = New TextBox()
txtSmrWk1WedOvertime = New TextBox()
txtSmrWk1TueOvertime = New TextBox()
txtSmrWk1MonOvertime = New TextBox()
lblSmrWk1RegularTime = New Label()
txtSmrWk1SunRegularTime = New TextBox()
txtSmrWk1SatRegularTime = New TextBox()
txtSmrWk1FriRegularTime = New TextBox()
txtSmrWk1ThuRegularTime = New TextBox()
txtSmrWk1WedRegularTime = New TextBox()
txtSmrWk1TueRegularTime = New TextBox()
txtSmrWk1MonRegularTime = New TextBox()
lblLineWeek2Summary = New Label()
lblLineWeek1Summary = New Label()
lblSummarySunday = New Label()
lblTimeSheetWeek2 = New Label()
lblTimeSheetWeek1 = New Label()
txtTSWk2Sunday = New TextBox()
txtTSWk2Saturday = New TextBox()
txtTSWk2Friday = New TextBox()
txtTSWk2Thursday = New TextBox()
txtTSWk2Wednesday = New TextBox()
txtTSWk2Tuesday = New TextBox()
txtTSWk2Monday = New TextBox()
txtTSWk1Sunday = New TextBox()
txtTSWk1Saturday = New TextBox()
txtTSWk1Friday = New TextBox()
txtTSWk1Thursday = New TextBox()
txtTSWk1Wednesday = New TextBox()
txtTSWk1Tuesday = New TextBox()
txtTSWk1Monday = New TextBox()
lblTimeSheetSunday = New Label()
lblTimeSheetSaturday = New Label()
lblTimeSheetFriday = New Label()
lblTimeSheetThursday = New Label()
lblTimeSheetWednesday = New Label()
lblTimeSheetTuesday = New Label()
lblTimeSheetMonday = New Label()
txtGrossSalary = New TextBox()
lblGrossSalary = New Label()
txtOvertimePay = New TextBox()
txtRegularPay = New TextBox()
txtOvertime = New TextBox()
txtRegularTime = New TextBox()
lblOvertime = New Label()
lblRegular = New Label()
lblPay = New Label()
lblTime = New Label()
lblTotals = New Label()
lblDoubleLine1 = New Label()
label2 = New Label()
REM Text Box: TotalOvertimePayWeek2
txtTotalOvertimePayWeek2.Location = New System.Drawing.Point(507, 447)
txtTotalOvertimePayWeek2.Size = New System.Drawing.Size(51, 20)
txtTotalOvertimePayWeek2.TabIndex = 505
txtTotalOvertimePayWeek2.Text = "0.00"
txtTotalOvertimePayWeek2.TextAlign = HorizontalAlignment.Right
REM Text Box: TotalRegularPayWeek2
txtTotalRegularPayWeek2.Location = New System.Drawing.Point(507, 421)
txtTotalRegularPayWeek2.Size = New System.Drawing.Size(51, 20)
txtTotalRegularPayWeek2.TabIndex = 504
txtTotalRegularPayWeek2.Text = "0.00"
txtTotalRegularPayWeek2.TextAlign = HorizontalAlignment.Right
REM Text Box: Total Overtime Week 2
txtTotalOvertimeWeek2.Location = New System.Drawing.Point(507, 395)
txtTotalOvertimeWeek2.Size = New System.Drawing.Size(51, 20)
txtTotalOvertimeWeek2.TabIndex = 503
txtTotalOvertimeWeek2.Text = "0.00"
txtTotalOvertimeWeek2.TextAlign = HorizontalAlignment.Right
REM Text Box: Total Regular Time Week 2
txtTotalRegularTimeWeek2.Location = New System.Drawing.Point(507, 369)
txtTotalRegularTimeWeek2.Size = New System.Drawing.Size(51, 20)
txtTotalRegularTimeWeek2.TabIndex = 502
txtTotalRegularTimeWeek2.Text = "0.00"
txtTotalRegularTimeWeek2.TextAlign = HorizontalAlignment.Right
REM Text Box: Total Overtime Pay Week 1
txtTotalOvertimePayWeek1.Location = New System.Drawing.Point(507, 274)
txtTotalOvertimePayWeek1.Size = New System.Drawing.Size(51, 20)
txtTotalOvertimePayWeek1.TabIndex = 500
txtTotalOvertimePayWeek1.Text = "0.00"
txtTotalOvertimePayWeek1.TextAlign = HorizontalAlignment.Right
REM Text Box: Total Regular Pay Week 1
txtTotalRegularPayWeek1.Location = New System.Drawing.Point(507, 248)
txtTotalRegularPayWeek1.Size = New System.Drawing.Size(51, 20)
txtTotalRegularPayWeek1.TabIndex = 499
txtTotalRegularPayWeek1.Text = "0.00"
txtTotalRegularPayWeek1.TextAlign = HorizontalAlignment.Right
REM Text Box: Total Overtime Week 1
txtTotalOvertimeWeek1.Location = New System.Drawing.Point(507, 222)
txtTotalOvertimeWeek1.Name = "txtTotalOvertimeWeek1"
txtTotalOvertimeWeek1.Size = New System.Drawing.Size(51, 20)
txtTotalOvertimeWeek1.TabIndex = 498
txtTotalOvertimeWeek1.Text = "0.00"
txtTotalOvertimeWeek1.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: TotalRegularTimeWeek1
REM
txtTotalRegularTimeWeek1.Location = New System.Drawing.Point(507, 196)
txtTotalRegularTimeWeek1.Name = "txtTotalRegularTimeWeek1"
txtTotalRegularTimeWeek1.Size = New System.Drawing.Size(51, 20)
txtTotalRegularTimeWeek1.TabIndex = 497
txtTotalRegularTimeWeek1.Text = "0.00"
txtTotalRegularTimeWeek1.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: TotalTimeWeek2
REM
txtTotalTimeWeek2.Location = New System.Drawing.Point(507, 325)
txtTotalTimeWeek2.Name = "txtTotalTimeWeek2"
txtTotalTimeWeek2.Size = New System.Drawing.Size(51, 20)
txtTotalTimeWeek2.TabIndex = 501
txtTotalTimeWeek2.Text = "0.00"
txtTotalTimeWeek2.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: TotalTimeWeek1
REM
txtTotalTimeWeek1.Location = New System.Drawing.Point(507, 151)
txtTotalTimeWeek1.Name = "txtTotalTimeWeek1"
txtTotalTimeWeek1.Size = New System.Drawing.Size(51, 20)
txtTotalTimeWeek1.TabIndex = 496
txtTotalTimeWeek1.Text = "0.00"
txtTotalTimeWeek1.TextAlign = HorizontalAlignment.Right
REM
REM Label: DoubleLine
REM
lblDoubleLine.AutoSize = True
lblDoubleLine.Location = New System.Drawing.Point(19, 300)
lblDoubleLine.Name = "lblDoubleLine"
lblDoubleLine.Size = New System.Drawing.Size(763, 13)
lblDoubleLine.TabIndex = 434
lblDoubleLine.Text = "==============================================================="
REM
REM Label: SmrWk2OvertimePay
REM
lblSmrWk2OvertimePay.AutoSize = True
lblSmrWk2OvertimePay.Location = New System.Drawing.Point(19, 448)
lblSmrWk2OvertimePay.Name = "lblSmrWk2OvertimePay"
lblSmrWk2OvertimePay.Size = New System.Drawing.Size(73, 13)
lblSmrWk2OvertimePay.TabIndex = 469
lblSmrWk2OvertimePay.Text = "Overtime Pay:"
REM
REM REM Text Box: Summary Week 2 - Sunday OvertimePay
REM
txtSmrWk2SunOvertimePay.Location = New System.Drawing.Point(440, 445)
txtSmrWk2SunOvertimePay.Name = "txtSmrWk2SunOvertimePay"
txtSmrWk2SunOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2SunOvertimePay.TabIndex = 476
txtSmrWk2SunOvertimePay.Text = "0.00"
txtSmrWk2SunOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Saturday OvertimePay
REM
txtSmrWk2SatOvertimePay.Location = New System.Drawing.Point(383, 445)
txtSmrWk2SatOvertimePay.Name = "txtSmrWk2SatOvertimePay"
txtSmrWk2SatOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2SatOvertimePay.TabIndex = 475
txtSmrWk2SatOvertimePay.Text = "0.00"
txtSmrWk2SatOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Friday OvertimePay
REM
txtSmrWk2FriOvertimePay.Location = New System.Drawing.Point(326, 445)
txtSmrWk2FriOvertimePay.Name = "txtSmrWk2FriOvertimePay"
txtSmrWk2FriOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2FriOvertimePay.TabIndex = 474
txtSmrWk2FriOvertimePay.Text = "0.00"
txtSmrWk2FriOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Thursday OvertimePay
REM
txtSmrWk2ThuOvertimePay.Location = New System.Drawing.Point(269, 445)
txtSmrWk2ThuOvertimePay.Name = "txtSmrWk2ThuOvertimePay"
txtSmrWk2ThuOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2ThuOvertimePay.TabIndex = 473
txtSmrWk2ThuOvertimePay.Text = "0.00"
txtSmrWk2ThuOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Wednesday OvertimePay
REM
txtSmrWk2WedOvertimePay.Location = New System.Drawing.Point(212, 445)
txtSmrWk2WedOvertimePay.Name = "txtSmrWk2WedOvertimePay"
txtSmrWk2WedOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2WedOvertimePay.TabIndex = 472
txtSmrWk2WedOvertimePay.Text = "0.00"
txtSmrWk2WedOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Tueday OvertimePay
REM
txtSmrWk2TueOvertimePay.Location = New System.Drawing.Point(155, 445)
txtSmrWk2TueOvertimePay.Name = "txtSmrWk2TueOvertimePay"
txtSmrWk2TueOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2TueOvertimePay.TabIndex = 471
txtSmrWk2TueOvertimePay.Text = "0.00"
txtSmrWk2TueOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Monday OvertimePay
REM
txtSmrWk2MonOvertimePay.Location = New System.Drawing.Point(98, 445)
txtSmrWk2MonOvertimePay.Name = "txtSmrWk2MonOvertimePay"
txtSmrWk2MonOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2MonOvertimePay.TabIndex = 470
txtSmrWk2MonOvertimePay.Text = "0.00"
txtSmrWk2MonOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM Label: SmrWk2RegularPay
REM
lblSmrWk2RegularPay.AutoSize = True
lblSmrWk2RegularPay.Location = New System.Drawing.Point(19, 422)
lblSmrWk2RegularPay.Name = "lblSmrWk2RegularPay"
lblSmrWk2RegularPay.Size = New System.Drawing.Size(68, 13)
lblSmrWk2RegularPay.TabIndex = 461
lblSmrWk2RegularPay.Text = "Regular Pay:"
REM
REM REM Text Box: Summary Week 2 - Sunday RegularPay
REM
txtSmrWk2SunRegularPay.Location = New System.Drawing.Point(440, 419)
txtSmrWk2SunRegularPay.Name = "txtSmrWk2SunRegularPay"
txtSmrWk2SunRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2SunRegularPay.TabIndex = 468
txtSmrWk2SunRegularPay.Text = "0.00"
txtSmrWk2SunRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Saturday RegularPay
REM
txtSmrWk2SatRegularPay.Location = New System.Drawing.Point(383, 419)
txtSmrWk2SatRegularPay.Name = "txtSmrWk2SatRegularPay"
txtSmrWk2SatRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2SatRegularPay.TabIndex = 467
txtSmrWk2SatRegularPay.Text = "0.00"
txtSmrWk2SatRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Friday RegularPay
REM
txtSmrWk2FriRegularPay.Location = New System.Drawing.Point(326, 419)
txtSmrWk2FriRegularPay.Name = "txtSmrWk2FriRegularPay"
txtSmrWk2FriRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2FriRegularPay.TabIndex = 466
txtSmrWk2FriRegularPay.Text = "0.00"
txtSmrWk2FriRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Thursday RegularPay
REM
txtSmrWk2ThuRegularPay.Location = New System.Drawing.Point(269, 419)
txtSmrWk2ThuRegularPay.Name = "txtSmrWk2ThuRegularPay"
txtSmrWk2ThuRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2ThuRegularPay.TabIndex = 465
txtSmrWk2ThuRegularPay.Text = "0.00"
txtSmrWk2ThuRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Wednesday RegularPay
REM
txtSmrWk2WedRegularPay.Location = New System.Drawing.Point(212, 419)
txtSmrWk2WedRegularPay.Name = "txtSmrWk2WedRegularPay"
txtSmrWk2WedRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2WedRegularPay.TabIndex = 464
txtSmrWk2WedRegularPay.Text = "0.00"
txtSmrWk2WedRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Tueday RegularPay
REM
txtSmrWk2TueRegularPay.Location = New System.Drawing.Point(155, 419)
txtSmrWk2TueRegularPay.Name = "txtSmrWk2TueRegularPay"
txtSmrWk2TueRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2TueRegularPay.TabIndex = 463
txtSmrWk2TueRegularPay.Text = "0.00"
txtSmrWk2TueRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Monday RegularPay
REM
txtSmrWk2MonRegularPay.Location = New System.Drawing.Point(98, 419)
txtSmrWk2MonRegularPay.Name = "txtSmrWk2MonRegularPay"
txtSmrWk2MonRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk2MonRegularPay.TabIndex = 462
txtSmrWk2MonRegularPay.Text = "0.00"
txtSmrWk2MonRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM Label: SmrWk2Overtime
REM
lblSmrWk2Overtime.AutoSize = True
lblSmrWk2Overtime.Location = New System.Drawing.Point(19, 396)
lblSmrWk2Overtime.Name = "lblSmrWk2Overtime"
lblSmrWk2Overtime.Size = New System.Drawing.Size(59, 13)
lblSmrWk2Overtime.TabIndex = 453
lblSmrWk2Overtime.Text = "Over Time:"
REM
REM REM Text Box: Summary Week 2 - Sunday Overtime
REM
txtSmrWk2SunOvertime.Location = New System.Drawing.Point(440, 393)
txtSmrWk2SunOvertime.Name = "txtSmrWk2SunOvertime"
txtSmrWk2SunOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2SunOvertime.TabIndex = 460
txtSmrWk2SunOvertime.Text = "0.00"
txtSmrWk2SunOvertime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Saturday Overtime
REM
txtSmrWk2SatOvertime.Location = New System.Drawing.Point(383, 393)
txtSmrWk2SatOvertime.Name = "txtSmrWk2SatOvertime"
txtSmrWk2SatOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2SatOvertime.TabIndex = 459
txtSmrWk2SatOvertime.Text = "0.00"
txtSmrWk2SatOvertime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Friday Overtime
REM
txtSmrWk2FriOvertime.Location = New System.Drawing.Point(326, 393)
txtSmrWk2FriOvertime.Name = "txtSmrWk2FriOvertime"
txtSmrWk2FriOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2FriOvertime.TabIndex = 458
txtSmrWk2FriOvertime.Text = "0.00"
txtSmrWk2FriOvertime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Thursday Overtime
REM
txtSmrWk2ThuOvertime.Location = New System.Drawing.Point(269, 393)
txtSmrWk2ThuOvertime.Name = "txtSmrWk2ThuOvertime"
txtSmrWk2ThuOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2ThuOvertime.TabIndex = 457
txtSmrWk2ThuOvertime.Text = "0.00"
txtSmrWk2ThuOvertime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Wednesday Overtime
REM
txtSmrWk2WedOvertime.Location = New System.Drawing.Point(212, 393)
txtSmrWk2WedOvertime.Name = "txtSmrWk2WedOvertime"
txtSmrWk2WedOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2WedOvertime.TabIndex = 456
txtSmrWk2WedOvertime.Text = "0.00"
txtSmrWk2WedOvertime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Tueday Overtime
REM
txtSmrWk2TueOvertime.Location = New System.Drawing.Point(155, 393)
txtSmrWk2TueOvertime.Name = "txtSmrWk2TueOvertime"
txtSmrWk2TueOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2TueOvertime.TabIndex = 455
txtSmrWk2TueOvertime.Text = "0.00"
txtSmrWk2TueOvertime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Monday Overtime
REM
txtSmrWk2MonOvertime.Location = New System.Drawing.Point(98, 393)
txtSmrWk2MonOvertime.Name = "txtSmrWk2MonOvertime"
txtSmrWk2MonOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2MonOvertime.TabIndex = 454
txtSmrWk2MonOvertime.Text = "0.00"
txtSmrWk2MonOvertime.TextAlign = HorizontalAlignment.Right
REM
REM Label: SmrWk2RegularTime
REM
lblSmrWk2RegularTime.AutoSize = True
lblSmrWk2RegularTime.Location = New System.Drawing.Point(19, 370)
lblSmrWk2RegularTime.Name = "lblSmrWk2RegularTime"
lblSmrWk2RegularTime.Size = New System.Drawing.Size(73, 13)
lblSmrWk2RegularTime.TabIndex = 445
lblSmrWk2RegularTime.Text = "Regular Time:"
REM
REM REM Text Box: Summary Week 2 - Sunday RegularTime
REM
txtSmrWk2SunRegularTime.Location = New System.Drawing.Point(440, 367)
txtSmrWk2SunRegularTime.Name = "txtSmrWk2SunRegularTime"
txtSmrWk2SunRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2SunRegularTime.TabIndex = 452
txtSmrWk2SunRegularTime.Text = "0.00"
txtSmrWk2SunRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Saturday RegularTime
REM
txtSmrWk2SatRegularTime.Location = New System.Drawing.Point(383, 367)
txtSmrWk2SatRegularTime.Name = "txtSmrWk2SatRegularTime"
txtSmrWk2SatRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2SatRegularTime.TabIndex = 451
txtSmrWk2SatRegularTime.Text = "0.00"
txtSmrWk2SatRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Friday RegularTime
REM
txtSmrWk2FriRegularTime.Location = New System.Drawing.Point(326, 367)
txtSmrWk2FriRegularTime.Name = "txtSmrWk2FriRegularTime"
txtSmrWk2FriRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2FriRegularTime.TabIndex = 450
txtSmrWk2FriRegularTime.Text = "0.00"
txtSmrWk2FriRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Thursday RegularTime
REM
txtSmrWk2ThuRegularTime.Location = New System.Drawing.Point(269, 367)
txtSmrWk2ThuRegularTime.Name = "txtSmrWk2ThuRegularTime"
txtSmrWk2ThuRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2ThuRegularTime.TabIndex = 449
txtSmrWk2ThuRegularTime.Text = "0.00"
txtSmrWk2ThuRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Wednesday RegularTime
REM
txtSmrWk2WedRegularTime.Location = New System.Drawing.Point(212, 367)
txtSmrWk2WedRegularTime.Name = "txtSmrWk2WedRegularTime"
txtSmrWk2WedRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2WedRegularTime.TabIndex = 448
txtSmrWk2WedRegularTime.Text = "0.00"
txtSmrWk2WedRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Tueday RegularTime
REM
txtSmrWk2TueRegularTime.Location = New System.Drawing.Point(155, 367)
txtSmrWk2TueRegularTime.Name = "txtSmrWk2TueRegularTime"
txtSmrWk2TueRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2TueRegularTime.TabIndex = 447
txtSmrWk2TueRegularTime.Text = "0.00"
txtSmrWk2TueRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM REM Text Box: Summary Week 2 - Monday RegularTime
REM
txtSmrWk2MonRegularTime.Location = New System.Drawing.Point(98, 367)
txtSmrWk2MonRegularTime.Name = "txtSmrWk2MonRegularTime"
txtSmrWk2MonRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk2MonRegularTime.TabIndex = 446
txtSmrWk2MonRegularTime.Text = "0.00"
txtSmrWk2MonRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM Label: Summary Week 1 - OvertimePay
REM
lblSmrWk1OvertimePay.AutoSize = True
lblSmrWk1OvertimePay.Location = New System.Drawing.Point(19, 275)
lblSmrWk1OvertimePay.Name = "lblSmrWk1OvertimePay"
lblSmrWk1OvertimePay.Size = New System.Drawing.Size(73, 13)
lblSmrWk1OvertimePay.TabIndex = 419
lblSmrWk1OvertimePay.Text = "Overtime Pay:"
REM
REM Text Box: Summary Week 1 - Sunday OvertimePay
REM
txtSmrWk1SunOvertimePay.Location = New System.Drawing.Point(440, 272)
txtSmrWk1SunOvertimePay.Name = "txtSmrWk1SunOvertimePay"
txtSmrWk1SunOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1SunOvertimePay.TabIndex = 428
txtSmrWk1SunOvertimePay.Text = "0.00"
txtSmrWk1SunOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Saturday OvertimePay
REM
txtSmrWk1SatOvertimePay.Location = New System.Drawing.Point(383, 272)
txtSmrWk1SatOvertimePay.Name = "txtSmrWk1SatOvertimePay"
txtSmrWk1SatOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1SatOvertimePay.TabIndex = 425
txtSmrWk1SatOvertimePay.Text = "0.00"
txtSmrWk1SatOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Friday OvertimePay
REM
txtSmrWk1FriOvertimePay.Location = New System.Drawing.Point(326, 272)
txtSmrWk1FriOvertimePay.Name = "txtSmrWk1FriOvertimePay"
txtSmrWk1FriOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1FriOvertimePay.TabIndex = 424
txtSmrWk1FriOvertimePay.Text = "0.00"
txtSmrWk1FriOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1ThuOvertimePay
REM
txtSmrWk1ThuOvertimePay.Location = New System.Drawing.Point(269, 272)
txtSmrWk1ThuOvertimePay.Name = "txtSmrWk1ThuOvertimePay"
txtSmrWk1ThuOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1ThuOvertimePay.TabIndex = 423
txtSmrWk1ThuOvertimePay.Text = "0.00"
txtSmrWk1ThuOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1WedOvertimePay
REM
txtSmrWk1WedOvertimePay.Location = New System.Drawing.Point(212, 272)
txtSmrWk1WedOvertimePay.Name = "txtSmrWk1WedOvertimePay"
txtSmrWk1WedOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1WedOvertimePay.TabIndex = 422
txtSmrWk1WedOvertimePay.Text = "0.00"
txtSmrWk1WedOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1TueOvertimePay
REM
txtSmrWk1TueOvertimePay.Location = New System.Drawing.Point(155, 272)
txtSmrWk1TueOvertimePay.Name = "txtSmrWk1TueOvertimePay"
txtSmrWk1TueOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1TueOvertimePay.TabIndex = 421
txtSmrWk1TueOvertimePay.Text = "0.00"
txtSmrWk1TueOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Monday Overtime Pay
REM
txtSmrWk1MonOvertimePay.Location = New System.Drawing.Point(98, 272)
txtSmrWk1MonOvertimePay.Name = "txtSmrWk1MonOvertimePay"
txtSmrWk1MonOvertimePay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1MonOvertimePay.TabIndex = 420
txtSmrWk1MonOvertimePay.Text = "0.00"
txtSmrWk1MonOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM Label: Summary Week 1 - Regular Pay
REM
lblSmrWk1RegularPay.AutoSize = True
lblSmrWk1RegularPay.Location = New System.Drawing.Point(19, 249)
lblSmrWk1RegularPay.Name = "lblSmrWk1RegularPay"
lblSmrWk1RegularPay.Size = New System.Drawing.Size(68, 13)
lblSmrWk1RegularPay.TabIndex = 412
lblSmrWk1RegularPay.Text = "Regular Pay:"
REM
REM Text Box: Summary Week 1 - Sunday Regular Pay
REM
txtSmrWk1SunRegularPay.Location = New System.Drawing.Point(440, 246)
txtSmrWk1SunRegularPay.Name = "txtSmrWk1SunRegularPay"
txtSmrWk1SunRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1SunRegularPay.TabIndex = 426
txtSmrWk1SunRegularPay.Text = "0.00"
txtSmrWk1SunRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Saturday Regular Pay
REM
txtSmrWk1SatRegularPay.Location = New System.Drawing.Point(383, 246)
txtSmrWk1SatRegularPay.Name = "txtSmrWk1SatRegularPay"
txtSmrWk1SatRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1SatRegularPay.TabIndex = 418
txtSmrWk1SatRegularPay.Text = "0.00"
txtSmrWk1SatRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Friday RegularPay
REM
txtSmrWk1FriRegularPay.Location = New System.Drawing.Point(326, 246)
txtSmrWk1FriRegularPay.Name = "txtSmrWk1FriRegularPay"
txtSmrWk1FriRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1FriRegularPay.TabIndex = 417
txtSmrWk1FriRegularPay.Text = "0.00"
txtSmrWk1FriRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1ThuRegularPay
REM
txtSmrWk1ThuRegularPay.Location = New System.Drawing.Point(269, 246)
txtSmrWk1ThuRegularPay.Name = "txtSmrWk1ThuRegularPay"
txtSmrWk1ThuRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1ThuRegularPay.TabIndex = 416
txtSmrWk1ThuRegularPay.Text = "0.00"
txtSmrWk1ThuRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1WedRegularPay
REM
txtSmrWk1WedRegularPay.Location = New System.Drawing.Point(212, 246)
txtSmrWk1WedRegularPay.Name = "txtSmrWk1WedRegularPay"
txtSmrWk1WedRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1WedRegularPay.TabIndex = 415
txtSmrWk1WedRegularPay.Text = "0.00"
txtSmrWk1WedRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1TueRegularPay
REM
txtSmrWk1TueRegularPay.Location = New System.Drawing.Point(155, 246)
txtSmrWk1TueRegularPay.Name = "txtSmrWk1TueRegularPay"
txtSmrWk1TueRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1TueRegularPay.TabIndex = 414
txtSmrWk1TueRegularPay.Text = "0.00"
txtSmrWk1TueRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Monday RegularPay
REM
txtSmrWk1MonRegularPay.Location = New System.Drawing.Point(98, 246)
txtSmrWk1MonRegularPay.Name = "txtSmrWk1MonRegularPay"
txtSmrWk1MonRegularPay.Size = New System.Drawing.Size(51, 20)
txtSmrWk1MonRegularPay.TabIndex = 413
txtSmrWk1MonRegularPay.Text = "0.00"
txtSmrWk1MonRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM Label: Summary Week 1 - Overtime
REM
lblSmrWk1Overtime.AutoSize = True
lblSmrWk1Overtime.Location = New System.Drawing.Point(19, 223)
lblSmrWk1Overtime.Name = "lblSmrWk1Overtime"
lblSmrWk1Overtime.Size = New System.Drawing.Size(59, 13)
lblSmrWk1Overtime.TabIndex = 404
lblSmrWk1Overtime.Text = "Over Time:"
REM
REM Text Box: Summary Week 1 - Sunday Overtime
REM
txtSmrWk1SunOvertime.Location = New System.Drawing.Point(440, 220)
txtSmrWk1SunOvertime.Name = "txtSmrWk1SunOvertime"
txtSmrWk1SunOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1SunOvertime.TabIndex = 411
txtSmrWk1SunOvertime.Text = "0.00"
txtSmrWk1SunOvertime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Saturday Overtime
REM
txtSmrWk1SatOvertime.Location = New System.Drawing.Point(383, 220)
txtSmrWk1SatOvertime.Name = "txtSmrWk1SatOvertime"
txtSmrWk1SatOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1SatOvertime.TabIndex = 410
txtSmrWk1SatOvertime.Text = "0.00"
txtSmrWk1SatOvertime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Friday Overtime
REM
txtSmrWk1FriOvertime.Location = New System.Drawing.Point(326, 220)
txtSmrWk1FriOvertime.Name = "txtSmrWk1FriOvertime"
txtSmrWk1FriOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1FriOvertime.TabIndex = 409
txtSmrWk1FriOvertime.Text = "0.00"
txtSmrWk1FriOvertime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1ThuOvertime
REM
txtSmrWk1ThuOvertime.Location = New System.Drawing.Point(269, 220)
txtSmrWk1ThuOvertime.Name = "txtSmrWk1ThuOvertime"
txtSmrWk1ThuOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1ThuOvertime.TabIndex = 408
txtSmrWk1ThuOvertime.Text = "0.00"
txtSmrWk1ThuOvertime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1WedOvertime
REM
txtSmrWk1WedOvertime.Location = New System.Drawing.Point(212, 220)
txtSmrWk1WedOvertime.Name = "txtSmrWk1WedOvertime"
txtSmrWk1WedOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1WedOvertime.TabIndex = 407
txtSmrWk1WedOvertime.Text = "0.00"
txtSmrWk1WedOvertime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1TueOvertime
REM
txtSmrWk1TueOvertime.Location = New System.Drawing.Point(155, 220)
txtSmrWk1TueOvertime.Name = "txtSmrWk1TueOvertime"
txtSmrWk1TueOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1TueOvertime.TabIndex = 406
txtSmrWk1TueOvertime.Text = "0.00"
txtSmrWk1TueOvertime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Monday Overtime
REM
txtSmrWk1MonOvertime.Location = New System.Drawing.Point(98, 220)
txtSmrWk1MonOvertime.Name = "txtSmrWk1MonOvertime"
txtSmrWk1MonOvertime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1MonOvertime.TabIndex = 405
txtSmrWk1MonOvertime.Text = "0.00"
txtSmrWk1MonOvertime.TextAlign = HorizontalAlignment.Right
REM
REM Label: Summary Week 1 - RegularTime
REM
lblSmrWk1RegularTime.AutoSize = True
lblSmrWk1RegularTime.Location = New System.Drawing.Point(19, 197)
lblSmrWk1RegularTime.Name = "lblSmrWk1RegularTime"
lblSmrWk1RegularTime.Size = New System.Drawing.Size(73, 13)
lblSmrWk1RegularTime.TabIndex = 394
lblSmrWk1RegularTime.Text = "Regular Time:"
REM
REM Text Box: Summary Week 1 - Sunday RegularTime
REM
txtSmrWk1SunRegularTime.Location = New System.Drawing.Point(440, 194)
txtSmrWk1SunRegularTime.Name = "txtSmrWk1SunRegularTime"
txtSmrWk1SunRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1SunRegularTime.TabIndex = 401
txtSmrWk1SunRegularTime.Text = "0.00"
txtSmrWk1SunRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Saturday RegularTime
REM
txtSmrWk1SatRegularTime.Location = New System.Drawing.Point(383, 194)
txtSmrWk1SatRegularTime.Name = "txtSmrWk1SatRegularTime"
txtSmrWk1SatRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1SatRegularTime.TabIndex = 400
txtSmrWk1SatRegularTime.Text = "0.00"
txtSmrWk1SatRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Friday RegularTime
REM
txtSmrWk1FriRegularTime.Location = New System.Drawing.Point(326, 194)
txtSmrWk1FriRegularTime.Name = "txtSmrWk1FriRegularTime"
txtSmrWk1FriRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1FriRegularTime.TabIndex = 399
txtSmrWk1FriRegularTime.Text = "0.00"
txtSmrWk1FriRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1ThuRegularTime
REM
txtSmrWk1ThuRegularTime.Location = New System.Drawing.Point(269, 194)
txtSmrWk1ThuRegularTime.Name = "txtSmrWk1ThuRegularTime"
txtSmrWk1ThuRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1ThuRegularTime.TabIndex = 398
txtSmrWk1ThuRegularTime.Text = "0.00"
txtSmrWk1ThuRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1WedRegularTime
REM
txtSmrWk1WedRegularTime.Location = New System.Drawing.Point(212, 194)
txtSmrWk1WedRegularTime.Name = "txtSmrWk1WedRegularTime"
txtSmrWk1WedRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1WedRegularTime.TabIndex = 397
txtSmrWk1WedRegularTime.Text = "0.00"
txtSmrWk1WedRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: SmrWk1TueRegularTime
REM
txtSmrWk1TueRegularTime.Location = New System.Drawing.Point(155, 194)
txtSmrWk1TueRegularTime.Name = "txtSmrWk1TueRegularTime"
txtSmrWk1TueRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1TueRegularTime.TabIndex = 396
txtSmrWk1TueRegularTime.Text = "0.00"
txtSmrWk1TueRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Summary Week 1 - Monday RegularTime
REM
txtSmrWk1MonRegularTime.Location = New System.Drawing.Point(98, 194)
txtSmrWk1MonRegularTime.Name = "txtSmrWk1MonRegularTime"
txtSmrWk1MonRegularTime.Size = New System.Drawing.Size(51, 20)
txtSmrWk1MonRegularTime.TabIndex = 395
txtSmrWk1MonRegularTime.Text = "0.00"
txtSmrWk1MonRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM Label: LineWeek2Summary
REM
lblLineWeek2Summary.AutoSize = True
lblLineWeek2Summary.Location = New System.Drawing.Point(20, 348)
lblLineWeek2Summary.Name = "lblLineWeek2Summary"
lblLineWeek2Summary.Size = New System.Drawing.Size(544, 13)
lblLineWeek2Summary.TabIndex = 444
lblLineWeek2Summary.Text = "-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"
REM
REM Label: LineWeek1Summary
REM
lblLineWeek1Summary.AutoSize = True
lblLineWeek1Summary.Location = New System.Drawing.Point(20, 175)
lblLineWeek1Summary.Name = "lblLineWeek1Summary"
lblLineWeek1Summary.Size = New System.Drawing.Size(544, 13)
lblLineWeek1Summary.TabIndex = 370
lblLineWeek1Summary.Text = "-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"
REM Label: SummarySunday
REM
lblSummarySunday.AutoSize = True
lblSummarySunday.Location = New System.Drawing.Point(437, 249)
lblSummarySunday.Name = "lblSummarySunday"
lblSummarySunday.Size = New System.Drawing.Size(43, 13)
lblSummarySunday.TabIndex = 427
lblSummarySunday.Text = "Sunday"
REM
REM Label: TimeSheetWeek2
REM
lblTimeSheetWeek2.AutoSize = True
lblTimeSheetWeek2.Location = New System.Drawing.Point(19, 327)
lblTimeSheetWeek2.Name = "lblTimeSheetWeek2"
lblTimeSheetWeek2.Size = New System.Drawing.Size(48, 13)
lblTimeSheetWeek2.TabIndex = 435
lblTimeSheetWeek2.Text = "Week 2:"
REM
REM Label: TimeSheetWeek1
REM
lblTimeSheetWeek1.AutoSize = True
lblTimeSheetWeek1.Location = New System.Drawing.Point(20, 152)
lblTimeSheetWeek1.Name = "lblTimeSheetWeek1"
lblTimeSheetWeek1.Size = New System.Drawing.Size(48, 13)
lblTimeSheetWeek1.TabIndex = 355
lblTimeSheetWeek1.Text = "Week 1:"
REM
REM Text Box: Time Sheet Week 2 - Sunday
REM
txtTSWk2Sunday.Location = New System.Drawing.Point(440, 323)
txtTSWk2Sunday.Name = "txtTSWk2Sunday"
txtTSWk2Sunday.Size = New System.Drawing.Size(51, 20)
txtTSWk2Sunday.TabIndex = 442
txtTSWk2Sunday.Text = "0.00"
txtTSWk2Sunday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 2 - Saturday
REM
txtTSWk2Saturday.Location = New System.Drawing.Point(383, 323)
txtTSWk2Saturday.Name = "txtTSWk2Saturday"
txtTSWk2Saturday.Size = New System.Drawing.Size(51, 20)
txtTSWk2Saturday.TabIndex = 441
txtTSWk2Saturday.Text = "0.00"
txtTSWk2Saturday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 2 - Friday
REM
txtTSWk2Friday.Location = New System.Drawing.Point(326, 323)
txtTSWk2Friday.Name = "txtTSWk2Friday"
txtTSWk2Friday.Size = New System.Drawing.Size(51, 20)
txtTSWk2Friday.TabIndex = 440
txtTSWk2Friday.Text = "0.00"
txtTSWk2Friday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 2 - Thursday
REM
txtTSWk2Thursday.Location = New System.Drawing.Point(269, 323)
txtTSWk2Thursday.Name = "txtTSWk2Thursday"
txtTSWk2Thursday.Size = New System.Drawing.Size(51, 20)
txtTSWk2Thursday.TabIndex = 439
txtTSWk2Thursday.Text = "0.00"
txtTSWk2Thursday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 2 - Wednesday
REM
txtTSWk2Wednesday.Location = New System.Drawing.Point(212, 323)
txtTSWk2Wednesday.Name = "txtTSWk2Wednesday"
txtTSWk2Wednesday.Size = New System.Drawing.Size(51, 20)
txtTSWk2Wednesday.TabIndex = 438
txtTSWk2Wednesday.Text = "0.00"
txtTSWk2Wednesday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 2 - Tuesday
REM
txtTSWk2Tuesday.Location = New System.Drawing.Point(155, 323)
txtTSWk2Tuesday.Name = "txtTSWk2Tuesday"
txtTSWk2Tuesday.Size = New System.Drawing.Size(51, 20)
txtTSWk2Tuesday.TabIndex = 437
txtTSWk2Tuesday.Text = "0.00"
txtTSWk2Tuesday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 2 - Monday
REM
txtTSWk2Monday.Location = New System.Drawing.Point(98, 323)
txtTSWk2Monday.Name = "txtTSWk2Monday"
txtTSWk2Monday.Size = New System.Drawing.Size(51, 20)
txtTSWk2Monday.TabIndex = 436
txtTSWk2Monday.Text = "0.00"
txtTSWk2Monday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 1 - Sunday
REM
txtTSWk1Sunday.Location = New System.Drawing.Point(440, 149)
txtTSWk1Sunday.Name = "txtTSWk1Sunday"
txtTSWk1Sunday.Size = New System.Drawing.Size(51, 20)
txtTSWk1Sunday.TabIndex = 369
txtTSWk1Sunday.Text = "0.00"
txtTSWk1Sunday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 1 - Saturday
REM
txtTSWk1Saturday.Location = New System.Drawing.Point(383, 149)
txtTSWk1Saturday.Name = "txtTSWk1Saturday"
txtTSWk1Saturday.Size = New System.Drawing.Size(51, 20)
txtTSWk1Saturday.TabIndex = 368
txtTSWk1Saturday.Text = "0.00"
txtTSWk1Saturday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 1 - Friday
REM
txtTSWk1Friday.Location = New System.Drawing.Point(326, 149)
txtTSWk1Friday.Name = "txtTSWk1Friday"
txtTSWk1Friday.Size = New System.Drawing.Size(51, 20)
txtTSWk1Friday.TabIndex = 367
txtTSWk1Friday.Text = "0.00"
txtTSWk1Friday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 1 - Thursday
REM
txtTSWk1Thursday.Location = New System.Drawing.Point(269, 149)
txtTSWk1Thursday.Name = "txtTSWk1Thursday"
txtTSWk1Thursday.Size = New System.Drawing.Size(51, 20)
txtTSWk1Thursday.TabIndex = 366
txtTSWk1Thursday.Text = "0.00"
txtTSWk1Thursday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 1 - Wednesday
REM
txtTSWk1Wednesday.Location = New System.Drawing.Point(212, 149)
txtTSWk1Wednesday.Name = "txtTSWk1Wednesday"
txtTSWk1Wednesday.Size = New System.Drawing.Size(51, 20)
txtTSWk1Wednesday.TabIndex = 365
txtTSWk1Wednesday.Text = "0.00"
txtTSWk1Wednesday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 1 - Tuesday
REM
txtTSWk1Tuesday.Location = New System.Drawing.Point(155, 149)
txtTSWk1Tuesday.Name = "txtTSWk1Tuesday"
txtTSWk1Tuesday.Size = New System.Drawing.Size(51, 20)
txtTSWk1Tuesday.TabIndex = 364
txtTSWk1Tuesday.Text = "0.00"
txtTSWk1Tuesday.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Time Sheet Week 1 - Monday
REM
txtTSWk1Monday.Location = New System.Drawing.Point(98, 149)
txtTSWk1Monday.Name = "txtTSWk1Monday"
txtTSWk1Monday.Size = New System.Drawing.Size(51, 20)
txtTSWk1Monday.TabIndex = 363
txtTSWk1Monday.Text = "0.00"
txtTSWk1Monday.TextAlign = HorizontalAlignment.Right
REM
REM Label: TimeSheetSunday
REM
lblTimeSheetSunday.AutoSize = True
lblTimeSheetSunday.Location = New System.Drawing.Point(437, 130)
lblTimeSheetSunday.Name = "lblTimeSheetSunday"
lblTimeSheetSunday.Size = New System.Drawing.Size(43, 13)
lblTimeSheetSunday.TabIndex = 362
lblTimeSheetSunday.Text = "Sunday"
REM
REM Label: TimeSheetSaturday
REM
lblTimeSheetSaturday.AutoSize = True
lblTimeSheetSaturday.Location = New System.Drawing.Point(382, 130)
lblTimeSheetSaturday.Name = "lblTimeSheetSaturday"
lblTimeSheetSaturday.Size = New System.Drawing.Size(49, 13)
lblTimeSheetSaturday.TabIndex = 361
lblTimeSheetSaturday.Text = "Saturday"
REM
REM Label: TimeSheetFriday
REM
lblTimeSheetFriday.AutoSize = True
lblTimeSheetFriday.Location = New System.Drawing.Point(325, 130)
lblTimeSheetFriday.Name = "lblTimeSheetFriday"
lblTimeSheetFriday.Size = New System.Drawing.Size(35, 13)
lblTimeSheetFriday.TabIndex = 360
lblTimeSheetFriday.Text = "Friday"
REM
REM Label: TimeSheetThursday
REM
lblTimeSheetThursday.AutoSize = True
lblTimeSheetThursday.Location = New System.Drawing.Point(270, 130)
lblTimeSheetThursday.Name = "lblTimeSheetThursday"
lblTimeSheetThursday.Size = New System.Drawing.Size(51, 13)
lblTimeSheetThursday.TabIndex = 359
lblTimeSheetThursday.Text = "Thursday"
REM
REM Label: TimeSheetWednesday
REM
lblTimeSheetWednesday.AutoSize = True
lblTimeSheetWednesday.Location = New System.Drawing.Point(206, 130)
lblTimeSheetWednesday.Name = "lblTimeSheetWednesday"
lblTimeSheetWednesday.Size = New System.Drawing.Size(64, 13)
lblTimeSheetWednesday.TabIndex = 358
lblTimeSheetWednesday.Text = "Wednesday"
REM
REM Label: TimeSheetTuesday
REM
lblTimeSheetTuesday.AutoSize = True
lblTimeSheetTuesday.Location = New System.Drawing.Point(152, 130)
lblTimeSheetTuesday.Name = "lblTimeSheetTuesday"
lblTimeSheetTuesday.Size = New System.Drawing.Size(48, 13)
lblTimeSheetTuesday.TabIndex = 357
lblTimeSheetTuesday.Text = "Tuesday"
REM
REM Label: TimeSheetMonday
REM
lblTimeSheetMonday.AutoSize = True
lblTimeSheetMonday.Location = New System.Drawing.Point(95, 130)
lblTimeSheetMonday.Name = "lblTimeSheetMonday"
lblTimeSheetMonday.Size = New System.Drawing.Size(45, 13)
lblTimeSheetMonday.TabIndex = 356
lblTimeSheetMonday.Text = "Monday"
REM
REM Text Box: GrossSalary
REM
txtGrossSalary.Location = New System.Drawing.Point(664, 406)
txtGrossSalary.Name = "txtGrossSalary"
txtGrossSalary.Size = New System.Drawing.Size(79, 20)
txtGrossSalary.TabIndex = 393
txtGrossSalary.Text = "0.00"
txtGrossSalary.TextAlign = HorizontalAlignment.Right
REM
REM Label: GrossSalary
REM
lblGrossSalary.AutoSize = True
lblGrossSalary.Location = New System.Drawing.Point(589, 409)
lblGrossSalary.Name = "lblGrossSalary"
lblGrossSalary.Size = New System.Drawing.Size(69, 13)
lblGrossSalary.TabIndex = 403
lblGrossSalary.Text = "Gross Salary:"
REM
REM Text Box: OvertimePay
REM
txtOvertimePay.Location = New System.Drawing.Point(721, 376)
txtOvertimePay.Name = "txtOvertimePay"
txtOvertimePay.Size = New System.Drawing.Size(51, 20)
txtOvertimePay.TabIndex = 392
txtOvertimePay.Text = "0.00"
txtOvertimePay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: RegularPay
REM
txtRegularPay.Location = New System.Drawing.Point(721, 350)
txtRegularPay.Name = "txtRegularPay"
txtRegularPay.Size = New System.Drawing.Size(51, 20)
txtRegularPay.TabIndex = 390
txtRegularPay.Text = "0.00"
txtRegularPay.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: Overtime
REM
txtOvertime.Location = New System.Drawing.Point(664, 376)
txtOvertime.Name = "txtOvertime"
txtOvertime.Size = New System.Drawing.Size(51, 20)
txtOvertime.TabIndex = 391
txtOvertime.Text = "0.00"
txtOvertime.TextAlign = HorizontalAlignment.Right
REM
REM Text Box: RegularTime
REM
txtRegularTime.Location = New System.Drawing.Point(664, 350)
txtRegularTime.Name = "txtRegularTime"
txtRegularTime.Size = New System.Drawing.Size(51, 20)
txtRegularTime.TabIndex = 389
txtRegularTime.Text = "0.00"
txtRegularTime.TextAlign = HorizontalAlignment.Right
REM
REM Label: Overtime
REM
lblOvertime.AutoSize = True
lblOvertime.Location = New System.Drawing.Point(589, 379)
lblOvertime.Name = "lblOvertime"
lblOvertime.Size = New System.Drawing.Size(52, 13)
lblOvertime.TabIndex = 402
lblOvertime.Text = "Overtime:"
REM
REM Label: Regular
REM
lblRegular.AutoSize = True
lblRegular.Location = New System.Drawing.Point(589, 353)
lblRegular.Name = "lblRegular"
lblRegular.Size = New System.Drawing.Size(47, 13)
lblRegular.TabIndex = 388
lblRegular.Text = "Regular:"
REM
REM Label: Pay
REM
lblPay.AutoSize = True
lblPay.Location = New System.Drawing.Point(720, 332)
lblPay.Name = "lblPay"
lblPay.Size = New System.Drawing.Size(25, 13)
lblPay.TabIndex = 387
lblPay.Text = "Pay"
REM
REM Label: Time
REM
lblTime.AutoSize = True
lblTime.Location = New System.Drawing.Point(661, 332)
lblTime.Name = "lblTime"
lblTime.Size = New System.Drawing.Size(30, 13)
lblTime.TabIndex = 386
lblTime.Text = "Time"
REM
REM Label: Totals
REM
lblTotals.AutoSize = True
lblTotals.Location = New System.Drawing.Point(510, 130)
lblTotals.TabIndex = 385
lblTotals.Text = "Total"
Controls.Add(lblTotals)
REM Label: Double Line 1
lblDoubleLine1.AutoSize = True
lblDoubleLine1.Location = New System.Drawing.Point(22, 107)
lblDoubleLine1.TabIndex = 508
lblDoubleLine1.Text = "============================================="
Controls.Add(lblDoubleLine1)
REM label2
label2.AutoSize = True
label2.Location = New System.Drawing.Point(19, 476)
label2.Name = "label2"
label2.Size = New System.Drawing.Size(763, 13)
label2.TabIndex = 509
label2.Text = "==============================================================="
Controls.Add(label2)
REM Button: Close
btnClose = New Button()
btnClose.Location = New System.Drawing.Point(664, 444)
btnClose.Size = New System.Drawing.Size(108, 23)
btnClose.TabIndex = 373
btnClose.Text = "Close"
Controls.Add(btnClose)
REM Form: Payroll Summary 2
ClientSize = New System.Drawing.Size(797, 501)
Controls.Add(lblStartDate)
Controls.Add(dtpStartDate)
Controls.Add(txtEmployeeNumber)
Controls.Add(lblHourlySalary)
Controls.Add(txtHourlySalary)
Controls.Add(lblTimeSheetID)
Controls.Add(txtTimeSheetID)
Controls.Add(btnFind)
Controls.Add(txtTotalOvertimePayWeek2)
Controls.Add(txtTotalRegularPayWeek2)
Controls.Add(txtTotalOvertimeWeek2)
Controls.Add(txtTotalRegularTimeWeek2)
Controls.Add(txtTotalOvertimePayWeek1)
Controls.Add(txtTotalRegularPayWeek1)
Controls.Add(txtTotalOvertimeWeek1)
Controls.Add(txtTotalRegularTimeWeek1)
Controls.Add(txtTotalTimeWeek2)
Controls.Add(txtTotalTimeWeek1)
Controls.Add(lblDoubleLine)
Controls.Add(lblSmrWk2OvertimePay)
Controls.Add(txtSmrWk2SunOvertimePay)
Controls.Add(txtSmrWk2SatOvertimePay)
Controls.Add(txtSmrWk2FriOvertimePay)
Controls.Add(txtSmrWk2ThuOvertimePay)
Controls.Add(txtSmrWk2WedOvertimePay)
Controls.Add(txtSmrWk2TueOvertimePay)
Controls.Add(txtSmrWk2MonOvertimePay)
Controls.Add(lblSmrWk2RegularPay)
Controls.Add(txtSmrWk2SunRegularPay)
Controls.Add(txtSmrWk2SatRegularPay)
Controls.Add(txtSmrWk2FriRegularPay)
Controls.Add(txtSmrWk2ThuRegularPay)
Controls.Add(txtSmrWk2WedRegularPay)
Controls.Add(txtSmrWk2TueRegularPay)
Controls.Add(txtSmrWk2MonRegularPay)
Controls.Add(lblSmrWk2Overtime)
Controls.Add(txtSmrWk2SunOvertime)
Controls.Add(txtSmrWk2SatOvertime)
Controls.Add(txtSmrWk2FriOvertime)
Controls.Add(txtSmrWk2ThuOvertime)
Controls.Add(txtSmrWk2WedOvertime)
Controls.Add(txtSmrWk2TueOvertime)
Controls.Add(txtSmrWk2MonOvertime)
Controls.Add(lblSmrWk2RegularTime)
Controls.Add(txtSmrWk2SunRegularTime)
Controls.Add(txtSmrWk2SatRegularTime)
Controls.Add(txtSmrWk2FriRegularTime)
Controls.Add(txtSmrWk2ThuRegularTime)
Controls.Add(txtSmrWk2WedRegularTime)
Controls.Add(txtSmrWk2TueRegularTime)
Controls.Add(txtSmrWk2MonRegularTime)
Controls.Add(lblSmrWk1OvertimePay)
Controls.Add(txtSmrWk1SunOvertimePay)
Controls.Add(txtSmrWk1SatOvertimePay)
Controls.Add(txtSmrWk1FriOvertimePay)
Controls.Add(txtSmrWk1ThuOvertimePay)
Controls.Add(txtSmrWk1WedOvertimePay)
Controls.Add(txtSmrWk1TueOvertimePay)
Controls.Add(txtSmrWk1MonOvertimePay)
Controls.Add(lblSmrWk1RegularPay)
Controls.Add(txtSmrWk1SunRegularPay)
Controls.Add(txtSmrWk1SatRegularPay)
Controls.Add(txtSmrWk1FriRegularPay)
Controls.Add(txtSmrWk1ThuRegularPay)
Controls.Add(txtSmrWk1WedRegularPay)
Controls.Add(txtSmrWk1TueRegularPay)
Controls.Add(txtSmrWk1MonRegularPay)
Controls.Add(lblSmrWk1Overtime)
Controls.Add(txtSmrWk1SunOvertime)
Controls.Add(txtSmrWk1SatOvertime)
Controls.Add(txtSmrWk1FriOvertime)
Controls.Add(txtSmrWk1ThuOvertime)
Controls.Add(txtSmrWk1WedOvertime)
Controls.Add(txtSmrWk1TueOvertime)
Controls.Add(txtSmrWk1MonOvertime)
Controls.Add(lblSmrWk1RegularTime)
Controls.Add(txtSmrWk1SunRegularTime)
Controls.Add(txtSmrWk1SatRegularTime)
Controls.Add(txtSmrWk1FriRegularTime)
Controls.Add(txtSmrWk1ThuRegularTime)
Controls.Add(txtSmrWk1WedRegularTime)
Controls.Add(txtSmrWk1TueRegularTime)
Controls.Add(txtSmrWk1MonRegularTime)
Controls.Add(lblLineWeek2Summary)
Controls.Add(lblLineWeek1Summary)
Controls.Add(lblSummarySunday)
Controls.Add(lblEmployeeNumber)
Controls.Add(txtEmployeeName)
Controls.Add(lblTimeSheetWeek2)
Controls.Add(lblTimeSheetWeek1)
Controls.Add(txtTSWk2Sunday)
Controls.Add(txtTSWk2Saturday)
Controls.Add(txtTSWk2Friday)
Controls.Add(txtTSWk2Thursday)
Controls.Add(txtTSWk2Wednesday)
Controls.Add(txtTSWk2Tuesday)
Controls.Add(txtTSWk2Monday)
Controls.Add(txtTSWk1Sunday)
Controls.Add(txtTSWk1Saturday)
Controls.Add(txtTSWk1Friday)
Controls.Add(txtTSWk1Thursday)
Controls.Add(txtTSWk1Wednesday)
Controls.Add(txtTSWk1Tuesday)
Controls.Add(txtTSWk1Monday)
Controls.Add(lblTimeSheetSunday)
Controls.Add(lblTimeSheetSaturday)
Controls.Add(lblTimeSheetFriday)
Controls.Add(lblTimeSheetThursday)
Controls.Add(lblTimeSheetWednesday)
Controls.Add(lblTimeSheetTuesday)
Controls.Add(lblTimeSheetMonday)
Controls.Add(txtGrossSalary)
Controls.Add(lblGrossSalary)
Controls.Add(txtOvertimePay)
Controls.Add(txtRegularPay)
Controls.Add(txtOvertime)
Controls.Add(txtRegularTime)
Controls.Add(lblOvertime)
Controls.Add(lblRegular)
Controls.Add(lblPay)
Controls.Add(lblTime)
MaximizeBox = False
StartPosition = FormStartPosition.CenterScreen
Text = "Fun Department Store - Payroll Summary"
End Sub
Private Sub ResetForm()
hourlySalary = 0.0
overtimeSalary = 0.0
week1Monday = 0.0
week1Tuesday = 0.0
week1Wednesday = 0.0
week1Thursday = 0.0
week1Friday = 0.0
week1Saturday = 0.0
week1Sunday = 0.0
week2Monday = 0.0
week2Tuesday = 0.0
week2Wednesday = 0.0
week2Thursday = 0.0
week2Friday = 0.0
week2Saturday = 0.0
week2Sunday = 0.0
txtEmployeeNumber.Text = ""
txtEmployeeName.Text = ""
txtHourlySalary.Text = ""
txtTSWk1Monday.Text = "0.00"
txtTSWk1Tuesday.Text = "0.00"
txtTSWk1Wednesday.Text = "0.00"
txtTSWk1Thursday.Text = "0.00"
txtTSWk1Friday.Text = "0.00"
txtTSWk1Saturday.Text = "0.00"
txtTSWk1Sunday.Text = "0.00"
txtTotalTimeWeek1.Text = "0.00"
txtTotalRegularTimeWeek1.Text = "0.00"
txtTotalOvertimeWeek1.Text = "0.00"
txtTotalRegularPayWeek1.Text = "0.00"
txtTotalOvertimePayWeek1.Text = "0.00"
txtSmrWk1MonRegularTime.Text = "0.00"
txtSmrWk1MonOvertime.Text = "0.00"
txtSmrWk1MonRegularPay.Text = "0.00"
txtSmrWk1MonOvertimePay.Text = "0.00"
txtSmrWk1TueRegularTime.Text = "0.00"
txtSmrWk1TueOvertime.Text = "0.00"
txtSmrWk1TueRegularPay.Text = "0.00"
txtSmrWk1TueOvertimePay.Text = "0.00"
txtSmrWk1WedRegularTime.Text = "0.00"
txtSmrWk1WedOvertime.Text = "0.00"
txtSmrWk1WedRegularPay.Text = "0.00"
txtSmrWk1WedOvertimePay.Text = "0.00"
txtSmrWk1ThuRegularTime.Text = "0.00"
txtSmrWk1ThuOvertime.Text = "0.00"
txtSmrWk1ThuRegularPay.Text = "0.00"
txtSmrWk1ThuOvertimePay.Text = "0.00"
txtSmrWk1FriRegularTime.Text = "0.00"
txtSmrWk1FriOvertime.Text = "0.00"
txtSmrWk1FriRegularPay.Text = "0.00"
txtSmrWk1FriOvertimePay.Text = "0.00"
txtSmrWk1SatRegularTime.Text = "0.00"
txtSmrWk1SatOvertime.Text = "0.00"
txtSmrWk1SatRegularPay.Text = "0.00"
txtSmrWk1SatOvertimePay.Text = "0.00"
txtSmrWk1SunRegularTime.Text = "0.00"
txtSmrWk1SunOvertime.Text = "0.00"
txtSmrWk1SunRegularPay.Text = "0.00"
txtSmrWk1SunOvertimePay.Text = "0.00"
txtTSWk2Monday.Text = "0.00"
txtTSWk2Tuesday.Text = "0.00"
txtTSWk2Wednesday.Text = "0.00"
txtTSWk2Thursday.Text = "0.00"
txtTSWk2Friday.Text = "0.00"
txtTSWk2Saturday.Text = "0.00"
txtTSWk2Sunday.Text = "0.00"
txtTotalTimeWeek2.Text = "0.00"
txtTotalRegularTimeWeek2.Text = "0.00"
txtTotalOvertimeWeek2.Text = "0.00"
txtTotalRegularPayWeek2.Text = "0.00"
txtTotalOvertimePayWeek2.Text = "0.00"
txtSmrWk2MonRegularTime.Text = "0.00"
txtSmrWk2MonOvertime.Text = "0.00"
txtSmrWk2MonRegularPay.Text = "0.00"
txtSmrWk2MonOvertimePay.Text = "0.00"
txtSmrWk2TueRegularTime.Text = "0.00"
txtSmrWk2TueOvertime.Text = "0.00"
txtSmrWk2TueRegularPay.Text = "0.00"
txtSmrWk2TueOvertimePay.Text = "0.00"
txtSmrWk2WedRegularTime.Text = "0.00"
txtSmrWk2WedOvertime.Text = "0.00"
txtSmrWk2WedRegularPay.Text = "0.00"
txtSmrWk2WedOvertimePay.Text = "0.00"
txtSmrWk2ThuRegularTime.Text = "0.00"
txtSmrWk2ThuOvertime.Text = "0.00"
txtSmrWk2ThuRegularPay.Text = "0.00"
txtSmrWk2ThuOvertimePay.Text = "0.00"
txtSmrWk2FriRegularTime.Text = "0.00"
txtSmrWk2FriOvertime.Text = "0.00"
txtSmrWk2FriRegularPay.Text = "0.00"
txtSmrWk2FriOvertimePay.Text = "0.00"
txtSmrWk2SatRegularTime.Text = "0.00"
txtSmrWk2SatOvertime.Text = "0.00"
txtSmrWk2SatRegularPay.Text = "0.00"
txtSmrWk2SatOvertimePay.Text = "0.00"
txtSmrWk2SunRegularTime.Text = "0.00"
txtSmrWk2SunOvertime.Text = "0.00"
txtSmrWk2SunRegularPay.Text = "0.00"
txtSmrWk2SunOvertimePay.Text = "0.00"
txtRegularTime.Text = "0.00"
txtOvertime.Text = "0.00"
txtRegularPay.Text = "0.00"
txtOvertimePay.Text = "0.00"
txtGrossSalary.Text = "0.00"
End Sub
Private Sub PayrollSummaryLoad(ByVal sender As Object, ByVal e As EventArgs) Handles me.load
ResetForm()
End Sub
Private Sub txtEmployeeNumberLeave(ByVal sender As Object, ByVal e As EventArgs) Handles txtEmployeeNumber.Leave
Dim employeeFound = False
Dim xdEmployees As XmlDocument = New XmlDocument()
Dim strEmployeesFile As String = "C:\Fun Department Store - Payroll\Employees.xml"
If String.IsNullOrEmpty(txtEmployeeNumber.Text) Then
Exit Sub
End If
If File.Exists(strEmployeesFile) Then
Using fsEmployees As FileStream = New FileStream(strEmployeesFile, FileMode.Open, FileAccess.Read)
xdEmployees.Load(fsEmployees)
Dim xnlEmployees As XmlNodeList = xdEmployees.GetElementsByTagName("EmployeeNumber")
For Each xnEmployee As XmlNode In xnlEmployees
If xnEmployee.InnerText = txtEmployeeNumber.Text Then
txtEmployeeName.Text = xnEmployee.NextSibling.InnerText & " " & xnEmployee.NextSibling.NextSibling.InnerText
txtHourlySalary.Text = xnEmployee.NextSibling.NextSibling.NextSibling.InnerText
employeeFound = True
End If
Next
If employeeFound = False Then
msgbox("There is no staff member with that employee number.",
MsgBoxStyle.OKOnly Or MsgBoxStyle.Information,
"FunDS - Employees Time Sheets")
ResetForm()
Exit Sub
End If
End Using
End If
End Sub
Private Sub btnFindClick(ByVal sender As Object, ByVal e As EventArgs) Handles btnFind.Click
Dim timeSheetFound = False
Dim xdTimeSheets As XmlDocument = New XmlDocument()
Dim strTimeSheetsFile = "C:\Fun Department Store10\TimeSheets.xml"
If String.IsNullOrEmpty(txtEmployeeNumber.Text) Then
Exit Sub
End If
If File.Exists(strTimeSheetsFile) Then
Using fsTimeSheets As FileStream = New FileStream(strTimeSheetsFile, FileMode.Open, FileAccess.Read)
xdTimeSheets.Load(fsTimeSheets)
Dim xnlTimeSheets As XmlNodeList = xdTimeSheets.DocumentElement.SelectNodes("/TimeSheets/TimeSheet/EmployeeNumber[.='" & txtEmployeeNumber.Text & "']")
For Each xnTimeSheet As XmlNode In xnlTimeSheets
If xnTimeSheet.NextSibling.InnerText = dtpStartDate.Value.ToShortDateString() Then
txtTimeSheetID.Text = xnTimeSheet.PreviousSibling.InnerText
txtTSWk1Monday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.InnerText))
txtTSWk1Tuesday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk1Wednesday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk1Thursday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk1Friday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk1Saturday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk1Sunday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk2Monday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk2Tuesday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk2Wednesday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk2Thursday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk2Friday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk2Saturday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
txtTSWk2Sunday.Text = FormatNumber(CDbl(xnTimeSheet.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.NextSibling.InnerText))
timeSheetFound = True
ProcessTimeSheet()
End If
Next
If timeSheetFound = False Then
msgbox("There is no time sheet for that start date and that employee number.",
MsgBoxStyle.OKOnly Or MsgBoxStyle.Information,
"FunDS - Employees Time Sheets")
ResetForm()
End If
End Using
End If
End Sub
Public Function GetWeek1MondaySummary() As Tuple(Of Double, Double, Double, Double)
week1Monday = CDbl(txtTSWk1Monday.Text)
Dim regTime As Double = 0.0
Dim overTime As Double = 0.0
If week1Monday <= 8.0 Then
regTime = week1Monday
Else
regTime = 8.0
End If
If week1Monday <= 8.0 Then
overTime = 0.0
Else
overTime = week1Monday - 8.0
End If
Dim regPay As Double = regTime * hourlySalary
Dim overPay As Double = overTime * overtimeSalary
Return New Tuple(Of Double, Double, Double, Double)(regTime, overTime, regPay, overPay)
End Function
Public Function GetWeek1TuesdaySummary() As Tuple(Of Double, Double, Double, Double)
week1Tuesday = CDbl(txtTSWk1Tuesday.Text)
Dim regTime = 0.0
Dim overtime = 0.0
If week1Tuesday <= 8.0 Then
regTime = week1Tuesday
Else
regTime = 8.0
End If
If week1Tuesday <= 8.0 Then
overtime = 0.0
Else
overtime = week1Tuesday - 8.0
End If
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regTime * hourlySalary, overtime * overtimeSalary)
End Function
Public Function GetWeek1WednesdaySummary() As Tuple(Of Double, Double, Double, Double)
week1Wednesday = CDbl(txtTSWk1Wednesday.Text)
Dim regTime As Double = 0.0
Dim overtime = 0.0
If week1Wednesday <= 8.0 Then
regTime = week1Wednesday
overtime = 0.0
Else
regTime = 8.0
overtime = week1Wednesday - 8.0
End If
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regTime * hourlySalary, overtime * overtimeSalary)
End Function
Public Function GetWeek1ThursdaySummary() As Tuple(Of Double, Double, Double, Double)
week1Thursday = CDbl(txtTSWk1Thursday.Text)
Dim regTime = 0.0
Dim overtime = 0.0
Dim regPay = 0.0
Dim overPay = 0.0
If week1Thursday <= 8.0 Then
regTime = week1Thursday
Else
regTime = 8.0
End If
If week1Thursday <= 8.0 Then overtime = 0.0 Else overtime = week1Thursday - 8.0
If week1Thursday <= 8.0 Then regPay = week1Thursday * hourlySalary Else regPay = 8.0 * hourlySalary
If week1Thursday <= 8.0 Then overPay = 0.0 Else overPay = (week1Thursday - 8.0) * overtimeSalary
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regPay, overPay)
End Function
Public Function GetWeek1FridaySummary() As Tuple(Of Double, Double, Double, Double)
week1Friday = CDbl(txtTSWk1Friday.Text)
Dim regTime = 0.0, overtime = 0.0, regPay = 0.0, overPay = 0.0
If week1Friday <= 8.0 Then regTime = week1Friday Else regTime = 8.0
If week1Friday <= 8.0 Then overtime = 0.0 Else overtime = week1Friday - 8.0
If week1Friday <= 8.0 Then regPay = week1Friday * hourlySalary Else regPay = 8.0 * hourlySalary
If week1Friday <= 8.0 Then overPay = 0.0 Else overPay = (week1Friday - 8.0) * overtimeSalary
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regPay, overPay)
End Function
Public Function GetWeek1SaturdaySummary() As Tuple(Of Double, Double, Double, Double)
week1Saturday = CDbl(txtTSWk1Saturday.Text)
Dim regTime = 0.0, overtime = 0.0, regPay = 0.0, overPay = 0.0
If week1Saturday <= 8.0 Then regTime = week1Saturday Else regTime = 8.0
If week1Saturday <= 8.0 Then overtime = 0.0 Else overtime = week1Saturday - 8.0
If week1Saturday <= 8.0 Then regPay = week1Saturday * hourlySalary Else regPay = 8.0 * hourlySalary
If week1Saturday <= 8.0 Then overPay = 0.0 Else overPay = overtime * overtimeSalary
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regPay, overPay)
End Function
Public Function GetWeek1SundaySummary() As Tuple(Of Double, Double, Double, Double)
week1Sunday = CDbl(txtTSWk1Sunday.Text)
Dim regTime = 0.0, overtime = 0.0, regPay = 0.0, overPay = 0.0
If week1Sunday <= 8.0 Then
regTime = week1Sunday
overtime = 0.0
regPay = week1Sunday * hourlySalary
overPay = 0.0
Else
regTime = 8.0
overtime = week1Sunday - 8.0
regPay = 8.0 * hourlySalary
overPay = (week1Sunday - 8.0) * overtimeSalary
End If
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regPay, overPay)
End Function
Public Function GetWeek2MondaySummary() As Tuple(Of Double, Double, Double, Double)
week2Monday = CDbl(txtTSWk2Monday.Text)
Dim regTime = 0.0, overtime = 0.0, regPay = 0.0, overPay = 0.0
If week2Monday <= 8.0 Then
regTime = week2Monday
overtime = 0.0
regPay = week2Monday
overPay = 0.0
Else
regTime = 8.0
overtime = week2Monday - 8.0
regPay = 8.0 * hourlySalary
overPay = (week2Monday - 8.0) * overtimeSalary
End If
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regPay, overPay)
End Function
Public Function GetWeek2TuesdaySummary() As Tuple(Of Double, Double, Double, Double)
week2Tuesday = CDbl(txtTSWk2Tuesday.Text)
Dim regTime = 0.0, overtime = 0.0, regPay = 0.0, overPay = 0.0
If week2Tuesday <= 8.0 Then
regTime = week2Tuesday
overtime = 0.0
regPay = week2Tuesday * hourlySalary
overPay = 0.0
Else
regTime = 8.0
overtime = week2Tuesday - 8.0
regPay = 8.0 * hourlySalary
overPay = (week2Tuesday - 8.0) * overtimeSalary
End If
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regPay, overPay)
End Function
Public Function GetWeek2WednesdaySummary() As Tuple(Of Double, Double, Double, Double)
week2Wednesday = CDbl(txtTSWk2Wednesday.Text)
Dim regTime = 0.0, overtime = 0.0, regPay = 0.0, overPay = 0.0
If week2Wednesday <= 8.0 Then
regTime = week2Wednesday
overtime = 0.0
regPay = week2Wednesday * hourlySalary
overPay = 0.0
Else
regTime = 8.0
overtime = week2Wednesday - 8.0
regPay = 8.0 * hourlySalary
overPay = (week2Wednesday - 8.0) * overtimeSalary
End If
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regPay, overPay)
End Function
Public Function GetWeek2ThursdaySummary() As Tuple(Of Double, Double, Double, Double)
week2Thursday = CDbl(txtTSWk2Thursday.Text)
Dim regTime = 0.0, overtime = 0.0, regPay = 0.0, overPay = 0.0
If week2Thursday <= 8.0 Then
regTime = week2Thursday
overtime = 0.0
regPay = week2Thursday * hourlySalary
overPay = 0.0
Else
regTime = 8.0
overtime = week2Thursday - 8.0
regPay = 8.0 * hourlySalary
overPay = (week2Thursday - 8.0) * overtimeSalary
End If
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regPay, overPay)
End Function
Public Function GetWeek2FridaySummary() As Tuple(Of Double, Double, Double, Double)
week2Friday = CDbl(txtTSWk2Friday.Text)
Dim regTime = 0.0, overtime = 0.0, regPay = 0.0, overPay = 0.0
If week2Friday <= 8.0 Then
regTime = week2Friday
overtime = 0.0
regPay = week2Friday * hourlySalary
overPay = 0.0
Else
regTime = 8.0
overtime = week2Friday - 8.0
regPay = 8.0 * hourlySalary
overPay = (week2Friday - 8.0) * overtimeSalary
End If
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regPay, overPay)
End Function
Public Function GetWeek2SaturdaySummary() As Tuple(Of Double, Double, Double, Double)
week2Saturday = CDbl(txtTSWk2Saturday.Text)
Dim regTime = 0.0, overtime = 0.0, regPay = 0.0, overPay = 0.0
If week2Saturday <= 8.0 Then
regTime = week2Saturday
overtime = 0.0
regPay = week2Saturday * hourlySalary
overPay = 0.0
Else
regTime = 8.0
overtime = week2Saturday - 8.0
regPay = 8.0 * hourlySalary
overPay = (week2Saturday - 8.0) * overtimeSalary
End If
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regPay, overPay)
End Function
Public Function GetWeek2SundaySummary() As Tuple(Of Double, Double, Double, Double)
week2Sunday = CDbl(txtTSWk2Sunday.Text)
Dim regTime = 0.0, overtime = 0.0, regPay = 0.0, overPay = 0.0
If week2Sunday <= 8.0 Then
regTime = week2Sunday
overtime = 0.0
regPay = week2Sunday * hourlySalary
overPay = 0.0
Else
regTime = 8.0
overtime = week2Sunday - 8.0
regPay = 8.0 * hourlySalary
overPay = (week2Sunday - 8.0) * overtimeSalary
End If
Return New Tuple(Of Double, Double, Double, Double)(regTime, overtime, regPay, overPay)
End Function
Public Function CalculateTotalTimeWorked() As Double
Return week1Monday + week1Tuesday + week1Wednesday + week1Thursday + week1Friday + week1Saturday + week1Sunday + week2Monday + week2Tuesday + week2Wednesday + week2Thursday + week2Friday + week2Saturday + week2Sunday
End Function
Public Function GetTimePaySummary() As Tuple(Of Double, Double, Double, Double)
Dim totalRegularTime = 0.0
Dim totalOvertime = 0.0
Dim totalRegularPay = 0.0
Dim totalOvertimePay = 0.0
Dim w1Mon As Tuple(Of Double, Double, Double, Double) = GetWeek1MondaySummary()
Dim w1Tue As Tuple(Of Double, Double, Double, Double) = GetWeek1TuesdaySummary()
Dim w1Wed As Tuple(Of Double, Double, Double, Double) = GetWeek1WednesdaySummary()
Dim w1Thu As Tuple(Of Double, Double, Double, Double) = GetWeek1ThursdaySummary()
Dim w1Fri As Tuple(Of Double, Double, Double, Double) = GetWeek1FridaySummary()
Dim w1Sat As Tuple(Of Double, Double, Double, Double) = GetWeek1SaturdaySummary()
Dim w1Sun As Tuple(Of Double, Double, Double, Double) = GetWeek1SundaySummary()
Dim w2Mon As Tuple(Of Double, Double, Double, Double) = GetWeek2MondaySummary()
Dim w2Tue As Tuple(Of Double, Double, Double, Double) = GetWeek2TuesdaySummary()
Dim w2Wed As Tuple(Of Double, Double, Double, Double) = GetWeek2WednesdaySummary()
Dim w2Thu As Tuple(Of Double, Double, Double, Double) = GetWeek2ThursdaySummary()
Dim w2Fri As Tuple(Of Double, Double, Double, Double) = GetWeek2FridaySummary()
Dim w2Sat As Tuple(Of Double, Double, Double, Double) = GetWeek2SaturdaySummary()
Dim w2Sun As Tuple(Of Double, Double, Double, Double) = GetWeek2SundaySummary()
totalRegularTime = w1Mon.Item1 + w1Tue.Item1 + w1Wed.Item1 + w1Thu.Item1 + w1Fri.Item1 + w1Sat.Item1 + w1Sun.Item1 + w2Mon.Item1 + w2Tue.Item1 + w2Wed.Item1 + w2Thu.Item1 + w2Fri.Item1 + w2Sat.Item1 + w2Sun.Item1
totalOvertime = w1Mon.Item2 + w1Tue.Item2 + w1Wed.Item2 + w1Thu.Item2 + w1Fri.Item2 + w1Sat.Item2 + w1Sun.Item2 + w2Mon.Item2 + w2Tue.Item2 + w2Wed.Item2 + w2Thu.Item2 + w2Fri.Item2 + w2Sat.Item2 + w2Sun.Item2
totalRegularPay = w1Mon.Item3 + w1Tue.Item3 + w1Wed.Item3 + w1Thu.Item3 + w1Fri.Item3 + w1Sat.Item3 + w1Sun.Item3 + w2Mon.Item3 + w2Tue.Item3 + w2Wed.Item3 + w2Thu.Item3 + w2Fri.Item3 + w2Sat.Item3 + w2Sun.Item3
totalOvertimePay = w1Mon.Item4 + w1Tue.Item4 + w1Wed.Item4 + w1Thu.Item4 + w1Fri.Item4 + w1Sat.Item4 + w1Sun.Item4 + w2Mon.Item4 + w2Tue.Item4 + w2Wed.Item4 + w2Thu.Item4 + w2Fri.Item4 + w2Sat.Item4 + w2Sun.Item4
Return New Tuple(Of Double, Double, Double, Double)(totalRegularTime, totalOvertime, totalRegularPay, totalOvertimePay)
End Function
Public Function CalculateGrossSalary() As Double
Dim grossSalary As Tuple(Of Double, Double, Double, Double) = GetTimePaySummary()
Return grossSalary.Item3 + grossSalary.Item4
End Function
Private Function GetWorkDaySummary(ByVal timeWorked As Double, ByVal hourlySalary As Double) As Tuple(Of Double, Double, Double, Double)
Dim regTime = 0.0
Dim overTime = 0.0
Dim overtimeSalary = hourlySalary * 1.5
If timeWorked <= 8.0 Then
regTime = timeWorked
Else
regTime = 8.0
End If
If timeWorked <= 8.0 Then
overTime = 0.0
Else
overTime = timeWorked - 8.0
End If
Dim regPay = regTime * hourlySalary
Dim overPay = overTime * overtimeSalary
Return New Tuple(Of Double, Double, Double, Double)(regTime, overTime, regPay, overPay)
End Function
Private Sub ProcessTimeSheet()
Dim wk1MondaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk1Monday.Text), CDbl(txtHourlySalary.Text))
Dim wk1TuesdaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk1Tuesday.Text), CDbl(txtHourlySalary.Text))
Dim wk1WednesdaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk1Wednesday.Text), CDbl(txtHourlySalary.Text))
Dim wk1ThursdaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk1Thursday.Text), CDbl(txtHourlySalary.Text))
Dim wk1FridaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk1Friday.Text), CDbl(txtHourlySalary.Text))
Dim wk1SaturdaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk1Saturday.Text), CDbl(txtHourlySalary.Text))
Dim wk1SundaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk1Sunday.Text), CDbl(txtHourlySalary.Text))
Dim wk2MondaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk2Monday.Text), CDbl(txtHourlySalary.Text))
Dim wk2TuesdaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk2Tuesday.Text), CDbl(txtHourlySalary.Text))
Dim wk2WednesdaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk2Wednesday.Text), CDbl(txtHourlySalary.Text))
Dim wk2ThursdaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk2Thursday.Text), CDbl(txtHourlySalary.Text))
Dim wk2FridaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk2Friday.Text), CDbl(txtHourlySalary.Text))
Dim wk2SaturdaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk2Saturday.Text), CDbl(txtHourlySalary.Text))
Dim wk2SundaySummary As Tuple(Of Double, Double, Double, Double) = GetWorkDaySummary(CDbl(txtTSWk2Sunday.Text), CDbl(txtHourlySalary.Text))
txtTotalTimeWeek1.Text = FormatNumber(CDbl(txtTSWk1Monday.Text) + CDbl(txtTSWk1Tuesday.Text) + CDbl(txtTSWk1Wednesday.Text) + CDbl(txtTSWk1Thursday.Text) + CDbl(txtTSWk1Friday.Text) + CDbl(txtTSWk1Saturday.Text) + CDbl(txtTSWk1Sunday.Text))
txtTotalRegularTimeWeek1.Text = FormatNumber(wk1MondaySummary.Item1 + wk1TuesdaySummary.Item1 + wk1WednesdaySummary.Item1 + wk1ThursdaySummary.Item1 + wk1FridaySummary.Item1 + wk1SaturdaySummary.Item1 + wk1SundaySummary.Item1)
txtTotalOvertimeWeek1.Text = FormatNumber(wk1MondaySummary.Item2 + wk1TuesdaySummary.Item2 + wk1WednesdaySummary.Item2 + wk1ThursdaySummary.Item2 + wk1FridaySummary.Item2 + wk1SaturdaySummary.Item2 + wk1SundaySummary.Item2)
txtTotalRegularPayWeek1.Text = FormatNumber(wk1MondaySummary.Item3 + wk1TuesdaySummary.Item3 + wk1WednesdaySummary.Item3 + wk1ThursdaySummary.Item3 + wk1FridaySummary.Item3 + wk1SaturdaySummary.Item3 + wk1SundaySummary.Item3)
txtTotalOvertimePayWeek1.Text = FormatNumber(wk1MondaySummary.Item4 + wk1TuesdaySummary.Item4 + wk1WednesdaySummary.Item4 + wk1ThursdaySummary.Item4 + wk1FridaySummary.Item4 + wk1SaturdaySummary.Item4 + wk1SundaySummary.Item4)
txtTotalTimeWeek2.Text = FormatNumber(CDbl(txtTSWk2Monday.Text) + CDbl(txtTSWk2Tuesday.Text) + CDbl(txtTSWk2Wednesday.Text) + CDbl(txtTSWk2Thursday.Text) + CDbl(txtTSWk2Friday.Text) + CDbl(txtTSWk2Saturday.Text) + CDbl(txtTSWk2Sunday.Text))
txtTotalRegularTimeWeek2.Text = FormatNumber(wk2MondaySummary.Item1 + wk2TuesdaySummary.Item1 + wk2WednesdaySummary.Item1 + wk2ThursdaySummary.Item1 + wk2FridaySummary.Item1 + wk2SaturdaySummary.Item1 + wk2SundaySummary.Item1)
txtTotalOvertimeWeek2.Text = FormatNumber(wk2MondaySummary.Item2 + wk2TuesdaySummary.Item2 + wk2WednesdaySummary.Item2 + wk2ThursdaySummary.Item2 + wk2FridaySummary.Item2 + wk2SaturdaySummary.Item2 + wk2SundaySummary.Item2)
txtTotalRegularPayWeek2.Text = FormatNumber(wk2MondaySummary.Item3 + wk2TuesdaySummary.Item3 + wk2WednesdaySummary.Item3 + wk2ThursdaySummary.Item3 + wk2FridaySummary.Item3 + wk2SaturdaySummary.Item3 + wk2SundaySummary.Item3)
txtTotalOvertimePayWeek2.Text = FormatNumber(wk2MondaySummary.Item4 + wk2TuesdaySummary.Item4 + wk2WednesdaySummary.Item4 + wk2ThursdaySummary.Item4 + wk2FridaySummary.Item4 + wk2SaturdaySummary.Item4 + wk2SundaySummary.Item4)
Dim totalRegularTime = wk1MondaySummary.Item1 + wk1TuesdaySummary.Item1 + wk1WednesdaySummary.Item1 + wk1ThursdaySummary.Item1 + wk1FridaySummary.Item1 + wk1SaturdaySummary.Item1 + wk1SundaySummary.Item1 + wk2MondaySummary.Item1 + wk2TuesdaySummary.Item1 + wk2WednesdaySummary.Item1 + wk2ThursdaySummary.Item1 + wk2FridaySummary.Item1 + wk2SaturdaySummary.Item1 + wk2SundaySummary.Item1
Dim totalOvertime = wk1MondaySummary.Item2 + wk1TuesdaySummary.Item2 + wk1WednesdaySummary.Item2 + wk1ThursdaySummary.Item2 + wk1FridaySummary.Item2 + wk1SaturdaySummary.Item2 + wk1SundaySummary.Item2 + wk2MondaySummary.Item2 + wk2TuesdaySummary.Item2 + wk2WednesdaySummary.Item2 + wk2ThursdaySummary.Item2 + wk2FridaySummary.Item2 + wk2SaturdaySummary.Item2 + wk2SundaySummary.Item2
Dim totalRegularPay = wk1MondaySummary.Item3 + wk1TuesdaySummary.Item3 + wk1WednesdaySummary.Item3 + wk1ThursdaySummary.Item3 + wk1FridaySummary.Item3 + wk1SaturdaySummary.Item3 + wk1SundaySummary.Item3 + wk2MondaySummary.Item3 + wk2TuesdaySummary.Item3 + wk2WednesdaySummary.Item3 + wk2ThursdaySummary.Item3 + wk2FridaySummary.Item3 + wk2SaturdaySummary.Item3 + wk2SundaySummary.Item3
Dim totalOvertimePay = wk1MondaySummary.Item4 + wk1TuesdaySummary.Item4 + wk1WednesdaySummary.Item4 + wk1ThursdaySummary.Item4 + wk1FridaySummary.Item4 + wk1SaturdaySummary.Item4 + wk1SundaySummary.Item4 + wk2MondaySummary.Item4 + wk2TuesdaySummary.Item4 + wk2WednesdaySummary.Item4 + wk2ThursdaySummary.Item4 + wk2FridaySummary.Item4 + wk2SaturdaySummary.Item4 + wk2SundaySummary.Item4
txtSmrWk1MonRegularTime.Text = FormatNumber(wk1MondaySummary.Item1)
txtSmrWk1MonOvertime.Text = FormatNumber(wk1MondaySummary.Item2)
txtSmrWk1MonRegularPay.Text = FormatNumber(wk1MondaySummary.Item3)
txtSmrWk1MonOvertimePay.Text = FormatNumber(wk1MondaySummary.Item4)
txtSmrWk1TueRegularTime.Text = FormatNumber(wk1TuesdaySummary.Item1)
txtSmrWk1TueOvertime.Text = FormatNumber(wk1TuesdaySummary.Item2)
txtSmrWk1TueRegularPay.Text = FormatNumber(wk1TuesdaySummary.Item3)
txtSmrWk1TueOvertimePay.Text = FormatNumber(wk1TuesdaySummary.Item4)
txtSmrWk1WedRegularTime.Text = FormatNumber(wk1WednesdaySummary.Item1)
txtSmrWk1WedOvertime.Text = FormatNumber(wk1WednesdaySummary.Item2)
txtSmrWk1WedRegularPay.Text = FormatNumber(wk1WednesdaySummary.Item3)
txtSmrWk1WedOvertimePay.Text = FormatNumber(wk1WednesdaySummary.Item4)
txtSmrWk1ThuRegularTime.Text = FormatNumber(wk1ThursdaySummary.Item1)
txtSmrWk1ThuOvertime.Text = FormatNumber(wk1ThursdaySummary.Item2)
txtSmrWk1ThuRegularPay.Text = FormatNumber(wk1ThursdaySummary.Item3)
txtSmrWk1ThuOvertimePay.Text = FormatNumber(wk1ThursdaySummary.Item4)
txtSmrWk1FriRegularTime.Text = FormatNumber(wk1FridaySummary.Item1)
txtSmrWk1FriOvertime.Text = FormatNumber(wk1FridaySummary.Item2)
txtSmrWk1FriRegularPay.Text = FormatNumber(wk1FridaySummary.Item3)
txtSmrWk1FriOvertimePay.Text = FormatNumber(wk1FridaySummary.Item4)
txtSmrWk1SatRegularTime.Text = FormatNumber(wk1SaturdaySummary.Item1)
txtSmrWk1SatOvertime.Text = FormatNumber(wk1SaturdaySummary.Item2)
txtSmrWk1SatRegularPay.Text = FormatNumber(wk1SaturdaySummary.Item3)
txtSmrWk1SatOvertimePay.Text = FormatNumber(wk1SaturdaySummary.Item4)
txtSmrWk1SunRegularTime.Text = FormatNumber(wk1SundaySummary.Item1)
txtSmrWk1SunOvertime.Text = FormatNumber(wk1SundaySummary.Item2)
txtSmrWk1SunRegularPay.Text = FormatNumber(wk1SundaySummary.Item3)
txtSmrWk1SunOvertimePay.Text = FormatNumber(wk1SundaySummary.Item4)
txtSmrWk2MonRegularTime.Text = FormatNumber(wk2MondaySummary.Item1)
txtSmrWk2MonOvertime.Text = FormatNumber(wk2MondaySummary.Item2)
txtSmrWk2MonRegularPay.Text = FormatNumber(wk2MondaySummary.Item3)
txtSmrWk2MonOvertimePay.Text = FormatNumber(wk2MondaySummary.Item4)
txtSmrWk2TueRegularTime.Text = FormatNumber(wk2TuesdaySummary.Item1)
txtSmrWk2TueOvertime.Text = FormatNumber(wk2TuesdaySummary.Item2)
txtSmrWk2TueRegularPay.Text = FormatNumber(wk2TuesdaySummary.Item3)
txtSmrWk2TueOvertimePay.Text = FormatNumber(wk2TuesdaySummary.Item4)
txtSmrWk2WedRegularTime.Text = FormatNumber(wk2WednesdaySummary.Item1)
txtSmrWk2WedOvertime.Text = FormatNumber(wk2WednesdaySummary.Item2)
txtSmrWk2WedRegularPay.Text = FormatNumber(wk2WednesdaySummary.Item3)
txtSmrWk2WedOvertimePay.Text = FormatNumber(wk2WednesdaySummary.Item4)
txtSmrWk2ThuRegularTime.Text = FormatNumber(wk2ThursdaySummary.Item1)
txtSmrWk2ThuOvertime.Text = FormatNumber(wk2ThursdaySummary.Item2)
txtSmrWk2ThuRegularPay.Text = FormatNumber(wk2ThursdaySummary.Item3)
txtSmrWk2ThuOvertimePay.Text = FormatNumber(wk2ThursdaySummary.Item4)
txtSmrWk2FriRegularTime.Text = FormatNumber(wk2FridaySummary.Item1)
txtSmrWk2FriOvertime.Text = FormatNumber(wk2FridaySummary.Item2)
txtSmrWk2FriRegularPay.Text = FormatNumber(wk2FridaySummary.Item3)
txtSmrWk2FriOvertimePay.Text = FormatNumber(wk2FridaySummary.Item4)
txtSmrWk2SatRegularTime.Text = FormatNumber(wk2SaturdaySummary.Item1)
txtSmrWk2SatOvertime.Text = FormatNumber(wk2SaturdaySummary.Item2)
txtSmrWk2SatRegularPay.Text = FormatNumber(wk2SaturdaySummary.Item3)
txtSmrWk2SatOvertimePay.Text = FormatNumber(wk2SaturdaySummary.Item4)
txtSmrWk2SunRegularTime.Text = FormatNumber(wk2SundaySummary.Item1)
txtSmrWk2SunOvertime.Text = FormatNumber(wk2SundaySummary.Item2)
txtSmrWk2SunRegularPay.Text = FormatNumber(wk2SundaySummary.Item3)
txtSmrWk2SunOvertimePay.Text = FormatNumber(wk2SundaySummary.Item4)
Dim totalTimeWorked = CDbl(txtTSWk1Monday.Text) + CDbl(txtTSWk1Tuesday.Text) + CDbl(txtTSWk1Wednesday.Text) + CDbl(txtTSWk1Thursday.Text) + CDbl(txtTSWk1Friday.Text) + CDbl(txtTSWk1Saturday.Text) + CDbl(txtTSWk1Sunday.Text) + CDbl(txtTSWk2Monday.Text) + CDbl(txtTSWk2Tuesday.Text) + CDbl(txtTSWk2Wednesday.Text) + CDbl(txtTSWk2Thursday.Text) + CDbl(txtTSWk2Friday.Text) + CDbl(txtTSWk2Saturday.Text) + CDbl(txtTSWk2Sunday.Text)
Dim grossSalary = wk1MondaySummary.Item3 + wk1MondaySummary.Item4 + wk1TuesdaySummary.Item3 + wk1TuesdaySummary.Item4 + wk1WednesdaySummary.Item3 + wk1WednesdaySummary.Item4 + wk1ThursdaySummary.Item3 + wk1ThursdaySummary.Item4 + wk1FridaySummary.Item3 + wk1FridaySummary.Item4 + wk1SaturdaySummary.Item3 + wk1SaturdaySummary.Item4 + wk1SundaySummary.Item3 + wk1SundaySummary.Item4 + wk2MondaySummary.Item3 + wk2MondaySummary.Item4 + wk2TuesdaySummary.Item3 + wk2TuesdaySummary.Item4 + wk2WednesdaySummary.Item3 + wk2WednesdaySummary.Item4 + wk2ThursdaySummary.Item3 + wk2ThursdaySummary.Item4 + wk2FridaySummary.Item3 + wk2FridaySummary.Item4 + wk2SaturdaySummary.Item3 + wk2SaturdaySummary.Item4 + wk2SundaySummary.Item3 + wk2SundaySummary.Item4
txtRegularTime.Text = FormatNumber(totalRegularTime)
txtOvertime.Text = FormatNumber(totalOvertime)
txtRegularPay.Text = FormatNumber(totalRegularPay)
txtOvertimePay.Text = FormatNumber(totalOvertimePay)
txtGrossSalary.Text = FormatNumber(grossSalary)
End Sub
Private Sub btnCloseClick(ByVal sender As Object, ByVal e As EventArgs) Handles btnclose.Click
Close()
End Sub
End Class
- On the main menu, click File -> New
- When asked whether you want to save, click Save (or Yes)
- Set the Save As Type to All Files
- Set the File Name to PayrollEvaluation2.vb and press Enter
- In the empty document, type:
Imports System
Imports System.IO
Imports System.Xml
Imports System.Drawing
Imports System.Windows.Forms
Public Class PayrollSystem
Inherits Form
Private WithEvents btnEmployeesTimeSheet As Button
Private WithEvents btnPayrollSummary1 As Button
Private WithEvents btnPayrollSummary2 As Button
Private WithEvents btnEmployees As Button
Private WithEvents btnClose As Button
Public Sub New()
InitializeComponent()
End Sub
Private Sub InitializeComponent()
REM Button: Employees Time Sheet
btnEmployeesTimeSheet = New Button()
btnEmployeesTimeSheet.Font = New System.Drawing.Font("Palatino Linotype", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0)
btnEmployeesTimeSheet.Location = New System.Drawing.Point(23, 27)
btnEmployeesTimeSheet.Size = New System.Drawing.Size(817, 67)
btnEmployeesTimeSheet.Text = "Employees Time Sheet ..."
Controls.Add(btnEmployeesTimeSheet)
REM Button: Payroll Summary 1
btnPayrollSummary1 = New Button()
btnPayrollSummary1.Font = New System.Drawing.Font("Palatino Linotype", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0)
btnPayrollSummary1.Location = New System.Drawing.Point(23, 114)
btnPayrollSummary1.Size = New System.Drawing.Size(400, 67)
btnPayrollSummary1.TabIndex = 9
btnPayrollSummary1.Text = "Payroll System 1 ..."
Controls.Add(btnPayrollSummary1)
REM Button: Employees
btnEmployees = New Button()
btnEmployees.Font = New System.Drawing.Font("Palatino Linotype", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0)
btnEmployees.Location = New System.Drawing.Point(23, 204)
btnEmployees.Size = New System.Drawing.Size(400, 67)
btnEmployees.TabIndex = 10
btnEmployees.Text = "Employees ..."
Controls.Add(btnEmployees)
REM Button: PayrollSummary2
btnPayrollSummary2 = New Button()
btnPayrollSummary2.Font = New System.Drawing.Font("Palatino Linotype", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0)
btnPayrollSummary2.Location = New System.Drawing.Point(440, 114)
btnPayrollSummary2.Size = New System.Drawing.Size(400, 67)
btnPayrollSummary2.TabIndex = 12
btnPayrollSummary2.Text = "Payroll System 2 ..."
Controls.Add(btnPayrollSummary2)
REM Button: Close
btnClose = New Button()
btnClose.Font = New System.Drawing.Font("Palatino Linotype", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0)
btnClose.Location = New System.Drawing.Point(440, 204)
btnClose.Size = New System.Drawing.Size(400, 67)
btnClose.Text = "Close"
Controls.Add(btnClose)
REM Form: Payroll System
ClientSize = New System.Drawing.Size(863, 298)
MaximizeBox = False
StartPosition = FormStartPosition.CenterScreen
Text = "Fun Department Store - Payroll System"
End Sub
Private Sub PayrollSystemLoad(ByVal sender As Object, ByVal e As EventArgs) Handles me.load
Directory.CreateDirectory("C:\Fun Department Store - Payroll")
End Sub
Private Sub btnEmployeesTimeSheetClick(ByVal sender As Object, ByVal e As EventArgs) Handles btnEmployeesTimeSheet.Click
Dim ts As TimeSheet = New TimeSheet()
ts.ShowDialog()
End Sub
Private Sub btnPayrollSummary1Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnPayrollSummary1.Click
Dim ps As PayrollSummary1 = New PayrollSummary1()
ps.Show()
End Sub
Private Sub btnPayrollSummary2Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnPayrollSummary2.Click
Dim ps As PayrollSummary2 = New PayrollSummary2()
ps.Show()
End Sub
Private Sub btnEmployeesClick(ByVal sender As Object, ByVal e As EventArgs) Handles btnEmployees.Click
Dim clerks As Employees = New Employees()
clerks.Show()
End Sub
Private Sub btnCloseClick(ByVal sender As Object, ByVal e As EventArgs) Handles btnclose.Click
Close()
End Sub
<STAThread>
Public Shared Function Main() As Integer
Application.EnableVisualStyles()
Application.SetCompatibleTextRenderingDefault(False)
Application.Run(New PayrollSystem())
Return 0
End Function
End Class
- On the main menu, click File -> New
- When asked whether you want to save, click Save (or Yes)
- Set the Save As Type to All Files
- Set the File Name to TimeSheetCalculations.cs and press Enter
- If you want to build the application, start the Command Prompt (Start ->
(All) Programs -> Accessories -> Command Prompt)
- Type CD\ and press Enter
- Type CD TimeSheetCalculations and press Enter
- Type C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc /t:winexe
TimeSheetCaculations.cs Employee.cs Employees.cs TimeSheet.cs
PayrollSummary1.cs PayrollSummary2.cs and press Enter
- If you want to execute the application, type PayrollSystem and press Enter
|
|