private void login_Click(object sender, EventArgs e) { ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient(); client.applyLeave(id, textBox1.Text.ToString(), comboBox1.Text.ToString(), dateTimePicker1.Value, dateTimePicker1.Value, textBox6.Text.ToString()); MessageBox.Show("Applied For Leave.Wait for the Approval.."); Employee_Leave_List ed = new Employee_Leave_List(id); this.Close(); ed.Show(); }
private void button3_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow.Index != -1) { ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient(); client.deleteEmployee(Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value)); Manage_Employee me = new Manage_Employee(); this.Close(); me.Show(); } }
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(); } }
private void login_Click(object sender, EventArgs e) { ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient(); if (login.Text == "SAVE") { client.addEmployee(textBox1.Text.ToString(), textBox2.Text.ToString(), textBox3.Text.ToString(), textBox4.Text.ToString(), textBox5.Text.ToString(), textBox6.Text.ToString(), dateTimePicker1.Value, comboBox1.Text.ToString(), comboBox2.Text.ToString(), textBox8.Text.ToString(), comboBox3.Text.ToString(), textBox7.Text.ToString()); } else { client.updateEmployee(v1, textBox1.Text.ToString(), textBox2.Text.ToString(), textBox3.Text.ToString(), textBox4.Text.ToString(), textBox5.Text.ToString(), textBox6.Text.ToString(), dateTimePicker1.Value, comboBox1.Text.ToString(), comboBox2.Text.ToString(), textBox8.Text.ToString(), comboBox3.Text.ToString(), textBox7.Text.ToString()); } Manage_Employee me = new Manage_Employee(); Close(); me.Show(); }
private void login_Click(object sender, EventArgs e) { ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient(); if (login.Text == "SAVE") { client.addProject(textBox1.Text.ToString(), textBox2.Text.ToString(), textBox3.Text.ToString(), Convert.ToInt32(comboBox1.Text.ToString()), comboBox2.Text.ToString(), textBox4.Text.ToString()); } else { client.updateProject(v1, textBox1.Text.ToString(), textBox2.Text.ToString(), textBox3.Text.ToString(), Convert.ToInt32(comboBox1.Text.ToString()), comboBox2.Text.ToString(), textBox4.Text.ToString()); } Manage_Project mp = new Manage_Project(); this.Close(); mp.Show(); }
private void login_Click(object sender, EventArgs e) { ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient(); var id = client.loginEmployee(textBox1.Text.ToString(), password.Text.ToString()); if (id == 0) { MessageBox.Show("Invalid Credentials.Try Again.."); } else { MessageBox.Show("Logged In Successfully.."); Employee_Dashboard ed = new Employee_Dashboard(id); this.Close(); ed.Show(); } }
private void Show_Employee_Details_Load(object sender, EventArgs e) { ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient(); ServiceReference1.Employee1 emp = new ServiceReference1.Employee1(); emp = client.showDetails(id); textBox1.Text = emp.Fname; textBox2.Text = emp.Lname; textBox3.Text = emp.ContactNo_1; textBox4.Text = emp.ContactNo_2; textBox5.Text = emp.Email; textBox6.Text = emp.Address; dateTimePicker1.Value = emp.DOB; textBox10.Text = emp.Gender; textBox11.Text = emp.Designation; textBox8.Text = emp.AdharCard; textBox12.Text = emp.EmployeeType; textBox7.Text = emp.WorkExperience; }
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."); } } }
private void HR_Dashbard_Load(object sender, EventArgs e) { ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient(); label3.Text = client.totalEmployee().ToString(); }