private void button3_Click(object sender, EventArgs e)
        {
            Manage_Leave ml = new Manage_Leave();

            this.Close();
            ml.Show();
        }
示例#2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (dataGridView1.CurrentRow.Index != -1)
     {
         ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient();
         client.setLeaveStatus(Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value), "Approved");
         MessageBox.Show("Employee will be notified.");
         Manage_Leave me = new Manage_Leave();
         this.Close();
         me.Show();
     }
 }
示例#3
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (dataGridView1.CurrentRow.Index != -1)
     {
         if (dataGridView1.CurrentRow.Cells[7].Value.ToString() == "Waiting")
         {
             ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient();
             client.setLeaveStatus(Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value), "Rejected");
             MessageBox.Show("Employee will be notified.");
             Manage_Leave me = new Manage_Leave();
             this.Close();
             me.Show();
         }
         else
         {
             MessageBox.Show("Already the request is completed.");
         }
     }
 }