private void Payroll_EmployeeView_Load(object sender, EventArgs e) { FadeTMR.Start(); _currentLbl = OverviewLBL; _currentPnl = OverviewPNL; OverviewPNL.Visible = true; AdjPNL.Visible = false; OverviewPNL.Visible = true; if (!Name.Equals("Archived")) { EmpListGRD.Enabled = true; ArchivePNL.Visible = false; RefreshPayrollList(); } else { EmpListGRD.Enabled = false; ArchivePNL.Visible = true; ArchiveNameLBL.Text = GuardName; LoadDetails(); } if (Name.Equals("Archived")) { BonusAddBTN.Visible = false; ApproveBTN.Visible = false; } }
private void Sched_RequestGuard_Load(object sender, EventArgs e) { LoadClients(); RequestPNL.Hide(); PickPNL.Show(); FadeTMR.Start(); ContractStartDTPKR.MinDate = DateTime.Now; }
public LoginForm() { InitializeComponent(); InitData.RunWorkerAsync(); Opacity = 0; ErrorLBL.Visible = false; FadeTMR.Start(); }
private void About_Load(object sender, EventArgs e) { FadeTMR.Start(); _currentLbl = AboutLBL; _currentPnl = AboutPNL; UsersPNL.Visible = false; }
private void Payroll_ConfigSSS_Load(object sender, EventArgs e) { FadeTMR.Start(); _currentPanel = BasicPagePNL; _currentSubPanel = BasicPNL; _currentLabel = BasicLbl; _curLabelCon = BasicCon; LoadBasicPayPage(); }
private void Clients_Edit_Load(object sender, EventArgs e) { GEditDetailsBTN.Text = Button; if (Button.Equals("UPDATE")) { AddLBL.Text = "Edit details"; PopulateEdit(); } FadeTMR.Start(); }
private void Sched_DismissGuard_Load(object sender, EventArgs e) { LoadPage(); FadeTMR.Start(); IncidentTypeCMBX.SelectedIndex = 1; GuardsPNL.Show(); ReportPNL.Hide(); GuardsLBL.ForeColor = _dark; ReportLBL.ForeColor = _light; DateEffective.MinDate = DateTime.Now; }
private void Sched_ViewDutyDetails_Load(object sender, EventArgs e) { if (Name.Equals("Archived") || Name.Equals("History")) { AddDutyDetailsBTN.Visible = false; EditDaysBTN.Visible = false; PeriodCMBX.Size = new Size(352, 25); } LoadPage(); FadeTMR.Start(); }
private void RViewEmployees_Load(object sender, EventArgs e) { RefreshData(); FadeTMR.Start(); if (Name.Equals("Archived")) { GEditDetailsBTN.Visible = false; } _panel = PersonalPNL; _label = PersonalLBL; PersonalPNL.Visible = true; }
private void Guards_EditEmployees_Load(object sender, EventArgs e) { GEditDetailsBTN.Text = Button; if (Button.Equals("UPDATE")) { PopulateEdit(); AddLBL.Text = "Edit details"; } FadeTMR.Start(); _panel = PersonalPNL; _label = PersonalLBL; PersonalPNL.Visible = true; BirthdateBX.MaxDate = new DateTime(DateTime.Now.Year - 18, DateTime.Now.Month, DateTime.Now.Day); }
private void GuardsReport_Load(object sender, EventArgs e) { FadeTMR.Start(); LoadTable(); switch (Mode) { case 1: NameLBL.Text = "Guards Summary"; break; case 2: NameLBL.Text = "Clients Summary"; break; case 3: NameLBL.Text = "Duty Details Summary"; break; case 4: NameLBL.Text = "Salary Report"; break; case 5: NameLBL.Text = "Payslip Details"; PayslipSaveTo.Visible = true; PayslipPrint.Visible = true; ApproveLBL.Visible = true; ApproveLBL.Text = "Approved by: " + Pay.ApprovedBy; PayslipPanel.Visible = true; PayslipPreview(); break; default: NameLBL.Text = "Summary Report"; break; } }
private void Sched_AddDutyDetail_Load(object sender, EventArgs e) { FadeTMR.Start(); AddBTN.Text = Button; if (Button.Equals("ADD")) { TimeInHrBX.SelectedIndex = 0; TimeInMinBX.SelectedIndex = 0; TimeInAMPMBX.SelectedIndex = 0; TimeOutAMPMBX.SelectedIndex = 0; TimeOutHrBX.SelectedIndex = 0; TimeOutMinBX.SelectedIndex = 0; DateDismissedCheck.Checked = true; DateDismissed.MaxDate = MaxDate; DateDismissed.MinDate = MinDate; DateEffective.MinDate = MinDate; DateEffective.MaxDate = MaxDate; } else { DateDismissed.MaxDate = MaxDate; DateDismissed.MinDate = MinDate; DateEffective.MinDate = MinDate; DateEffective.MaxDate = MaxDate; var dt = Scheduling.GetDutyDetailsDetails(Did); TimeInHrBX.SelectedIndex = int.Parse(dt.Rows[0][0].ToString()) - 1; TimeInMinBX.SelectedIndex = int.Parse(dt.Rows[0][1].ToString()); TimeInAMPMBX.Text = dt.Rows[0][2].ToString(); TimeOutHrBX.SelectedIndex = int.Parse(dt.Rows[0][3].ToString()) - 1; TimeOutMinBX.SelectedIndex = int.Parse(dt.Rows[0][4].ToString()); TimeOutAMPMBX.Text = dt.Rows[0][5].ToString(); DateEffective.Value = DateTime.Parse(dt.Rows[0][6].ToString()); if (DateTime.Parse(dt.Rows[0][7].ToString()).Year != 9999) { DateDismissed.Value = DateTime.Parse(dt.Rows[0][7].ToString()); DateDismissedCheck.Checked = true; } var temp = Scheduling.GetDays(Did).Value; if (temp[0]) { MBTN.PerformClick(); } if (temp[1]) { TBTN.PerformClick(); } if (temp[2]) { WBTN.PerformClick(); } if (temp[3]) { ThBTN.PerformClick(); } if (temp[4]) { FBTN.PerformClick(); } if (temp[5]) { SaBTN.PerformClick(); } if (temp[6]) { SuBTN.PerformClick(); } FormLBL.Text = "Edit Duty Detail"; } }
private void Sched_ConfHolidays_Load(object sender, EventArgs e) { LoadPage(); FadeTMR.Start(); }
private void GuardsArchive_Load(object sender, EventArgs e) { FadeTMR.Start(); RefreshData(); }
private void Payroll_AddAdjustments_Load(object sender, EventArgs e) { FadeTMR.Start(); InitializeData(); PayrollPeriodLBL.Text = Period; }
private void Form_Load(object sender, EventArgs e) { FadeTMR.Start(); }
private void Sched_ViewDisReq_Load(object sender, EventArgs e) { RefreshData(); FadeTMR.Start(); }
private void SchedViewIncidentReport_Load(object sender, EventArgs e) { ClientLBL.Text = Client; LoadData(); FadeTMR.Start(); }
private void Clients_View_Load(object sender, EventArgs e) { RefreshData(); FadeTMR.Start(); }
public void Transparent() { Opacity = 0; FadeTMR.Start(); }
private void Sched_AssignGuards_Load(object sender, EventArgs e) { LoadPage(); FadeTMR.Start(); }
private void SchedViewAssHistory_Load(object sender, EventArgs e) { FadeTMR.Start(); LoadTable(); NameLBL.Text = GuardName; }
private void SAddDutyDays_Load(object sender, EventArgs e) { LoadPage(); FadeTMR.Start(); }