Ejemplo n.º 1
0
        private void Submit_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                attendanceEntity.AttendanceID       = int.Parse(txtAId.Text);
                attendanceEntity.EmployeeID         = int.Parse(txtEmpId.Text);
                attendanceEntity.StatusOfAttendance = cmbSAType.Text;

                if (attendanceBLL.ApproveRejectAttendanceBLL(attendanceEntity) == true)
                {
                    MessageBox.Show("Pending Attendace Updated succesfully");
                    LoadGrid();
                }
                else
                {
                    MessageBox.Show("Pending Attendace Not Updated.");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            LoadGrid();
        }