-
Notifications
You must be signed in to change notification settings - Fork 1
/
frmMainMenu.vb
executable file
·168 lines (130 loc) · 6.78 KB
/
frmMainMenu.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
Public Class frmMainMenu
Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutToolStripMenuItem.Click
frmAboutBox1.Show()
End Sub
Private Sub NotePadToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NotePadToolStripMenuItem.Click
Try
System.Diagnostics.Process.Start("Notepad.exe")
Catch ex As Exception
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
Private Sub main_form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ToolStripStatusLabel4.Text = Now
ToolStripStatusLabel2.Text = frmlogin.UserName.Text
End Sub
Private Sub SystemInfoToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SystemInfoToolStripMenuItem.Click
frmSystemInfo.Show()
End Sub
Private Sub CalculatorToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalculatorToolStripMenuItem.Click
Try
System.Diagnostics.Process.Start("Calc.exe")
Catch ex As Exception
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
Private Sub EmployeeToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EmployeeToolStripMenuItem.Click
Me.Hide()
frmEmployeesRecord.Show()
End Sub
Private Sub EmployeeAttendanceToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EmployeeAttendanceToolStripMenuItem.Click
Me.Hide()
frmEmployeeAttendanceRecord.Show()
End Sub
Private Sub AttendanceToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AttendanceToolStripMenuItem.Click
Me.Hide()
frmAttendance.Show()
frmAttendance.Reset()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Timer1.Start()
ToolStripStatusLabel4.Text = Now
End Sub
Private Sub OverTimeToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OverTimeToolStripMenuItem.Click
Me.Hide()
frmSearchByOverTime.Show()
End Sub
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Me.Hide()
frmEmployeeAttendanceRecord.Show()
End Sub
Private Sub AdvanceToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AdvanceToolStripMenuItem.Click
Me.Hide()
frmAdvance.Show()
frmAdvance.Reset()
End Sub
Private Sub PaymentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PaymentToolStripMenuItem.Click
Me.Hide()
frmEmployeePayment.Show()
frmEmployeePayment.Reset()
End Sub
Private Sub RegistrationToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RegistrationToolStripMenuItem.Click
Me.Hide()
frmEmployee_registration.Show()
frmEmployee_registration.Reset()
End Sub
Private Sub AdvanceEntryToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AdvanceEntryToolStripMenuItem.Click
Me.Hide()
frmAdvanceEntryRecord.Show()
End Sub
Private Sub EmployeePaymentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EmployeePaymentToolStripMenuItem.Click
Me.Hide()
frmEmployeePaymentRecord1.Show()
End Sub
Private Sub DeductionEntryToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DeductionEntryToolStripMenuItem.Click
Me.Hide()
frmDeductionEntryRecord.Show()
End Sub
Private Sub EmployeesToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EmployeesToolStripMenuItem.Click
Me.Hide()
frmEmployeeReport.Show()
End Sub
Private Sub AdvancePaymentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AdvancePaymentToolStripMenuItem.Click
Me.Hide()
frmAdvanceEntryReport.Show()
End Sub
Private Sub AttendanceToolStripMenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AttendanceToolStripMenuItem2.Click
Me.Hide()
frmAttendance.Show()
frmAttendance.Reset()
End Sub
Private Sub EmployeeToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EmployeeToolStripMenuItem1.Click
Me.Hide()
frmEmployee_registration.Show()
frmEmployee_registration.Reset()
End Sub
Private Sub AdvanceEntryToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AdvanceEntryToolStripMenuItem1.Click
Me.Hide()
frmAdvance.Show()
frmAdvance.Reset()
End Sub
Private Sub PaymentToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PaymentToolStripMenuItem1.Click
Me.Hide()
frmEmployeePayment.Show()
frmEmployeePayment.Reset()
End Sub
Private Sub OvertimeToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OvertimeToolStripMenuItem1.Click
Me.Hide()
frmOverTimeReport.Show()
End Sub
Private Sub EmployeePaymentToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EmployeePaymentToolStripMenuItem1.Click
Me.Hide()
frmEmployeePaymentReport.Show()
End Sub
Private Sub LogoutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LogoutToolStripMenuItem.Click
Me.Hide()
frmlogin.UserName.Text = ""
frmlogin.Password.Text = ""
frmlogin.ProgressBar1.Visible = False
frmlogin.Show()
frmlogin.UserName.Focus()
End Sub
Private Sub AttendanceToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AttendanceToolStripMenuItem1.Click
Me.Hide()
frmAttendanceReport.Show()
End Sub
Private Sub SalarySlipsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SalarySlipsToolStripMenuItem.Click
Me.Hide()
frmSalarySlipsReport.Show()
End Sub
End Class