Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 private void Sched_RequestGuard_Load(object sender, EventArgs e)
 {
     LoadClients();
     RequestPNL.Hide();
     PickPNL.Show();
     FadeTMR.Start();
     ContractStartDTPKR.MinDate = DateTime.Now;
 }
Ejemplo n.º 3
0
 public LoginForm()
 {
     InitializeComponent();
     InitData.RunWorkerAsync();
     Opacity          = 0;
     ErrorLBL.Visible = false;
     FadeTMR.Start();
 }
Ejemplo n.º 4
0
        private void About_Load(object sender, EventArgs e)
        {
            FadeTMR.Start();
            _currentLbl = AboutLBL;
            _currentPnl = AboutPNL;

            UsersPNL.Visible = false;
        }
Ejemplo n.º 5
0
 private void Payroll_ConfigSSS_Load(object sender, EventArgs e)
 {
     FadeTMR.Start();
     _currentPanel    = BasicPagePNL;
     _currentSubPanel = BasicPNL;
     _currentLabel    = BasicLbl;
     _curLabelCon     = BasicCon;
     LoadBasicPayPage();
 }
Ejemplo n.º 6
0
 private void Clients_Edit_Load(object sender, EventArgs e)
 {
     GEditDetailsBTN.Text = Button;
     if (Button.Equals("UPDATE"))
     {
         AddLBL.Text = "Edit details";
         PopulateEdit();
     }
     FadeTMR.Start();
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 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();
 }
Ejemplo n.º 9
0
        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;
        }
Ejemplo n.º 10
0
 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);
 }
Ejemplo n.º 11
0
        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;
            }
        }
Ejemplo n.º 12
0
        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";
            }
        }
Ejemplo n.º 13
0
 private void Sched_ConfHolidays_Load(object sender, EventArgs e)
 {
     LoadPage();
     FadeTMR.Start();
 }
Ejemplo n.º 14
0
 private void GuardsArchive_Load(object sender, EventArgs e)
 {
     FadeTMR.Start();
     RefreshData();
 }
Ejemplo n.º 15
0
 private void Payroll_AddAdjustments_Load(object sender, EventArgs e)
 {
     FadeTMR.Start();
     InitializeData();
     PayrollPeriodLBL.Text = Period;
 }
Ejemplo n.º 16
0
 private void Form_Load(object sender, EventArgs e)
 {
     FadeTMR.Start();
 }
Ejemplo n.º 17
0
 private void Sched_ViewDisReq_Load(object sender, EventArgs e)
 {
     RefreshData();
     FadeTMR.Start();
 }
Ejemplo n.º 18
0
 private void SchedViewIncidentReport_Load(object sender, EventArgs e) {
     ClientLBL.Text = Client;
     LoadData();
     FadeTMR.Start();
 }
Ejemplo n.º 19
0
 private void Clients_View_Load(object sender, EventArgs e)
 {
     RefreshData();
     FadeTMR.Start();
 }
Ejemplo n.º 20
0
 public void Transparent()
 {
     Opacity = 0;
     FadeTMR.Start();
 }
Ejemplo n.º 21
0
 private void Sched_AssignGuards_Load(object sender, EventArgs e)
 {
     LoadPage();
     FadeTMR.Start();
 }
Ejemplo n.º 22
0
 private void SchedViewAssHistory_Load(object sender, EventArgs e)
 {
     FadeTMR.Start();
     LoadTable();
     NameLBL.Text = GuardName;
 }
Ejemplo n.º 23
0
 private void SAddDutyDays_Load(object sender, EventArgs e)
 {
     LoadPage();
     FadeTMR.Start();
 }