private void btnLoadAdvance_Click(object sender, EventArgs e)
        {
            StaffProfiles.staff_id           = staff_id;
            StaffProfiles.staff_name         = txt_staff_name.Text;
            SystemConst.staff_advance_action = "Payroll";
            frmstaffAdvance ad = new frmstaffAdvance();

            ad.ShowDialog();
        }
예제 #2
0
 private void btnAdvance_Click(object sender, EventArgs e)
 {
     if (lblstaffid.Text == ".")
     {
         MessageBox.Show("Please select a staff member to add advance details", "Advance", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else
     {
         StaffProfiles.staff_id           = lblstaffid.Text;
         StaffProfiles.staff_name         = txt_staff_name.Text;
         SystemConst.staff_advance_action = "Profiles";
         frmstaffAdvance ad = new frmstaffAdvance();
         ad.ShowDialog();
     }
 }