private void GetEmployeeAttendence()
        {
            EMPOYEE_BLL _employeedetailsbll = new EMPOYEE_BLL();

            try
            {
                string id = ((SessionUser)Session["SessionUser"]).EID;
                HRM_PersonalInformations _employeeDetailsr = _employeedetailsbll.GetEmployeeDetails(id);
                string   status = "All";
                DateTime Date   = DateTime.Now;
                // string StartDate = startdate.ToString("MM/dd/yyyy");
                string StartDate = Date.AddMonths(-1).ToString("MM/dd/yyyy");

                string endDate          = Date.AddDays(-1).ToString("MM/dd/yyyy");
                var    _employeeAttends = _employeedetailsbll.GetEmployeeAttend(id, status, StartDate, endDate);
                if (_employeeAttends != null)
                {
                    lblTotalPresent.Text = _employeeAttends.TotalPresent.ToString();
                    lblTotalAbsent.Text  = _employeeAttends.TotalAbsent.ToString();
                    lblTotalLate.Text    = _employeeAttends.TotalLate.ToString();
                    lblTotalLeave.Text   = _employeeAttends.TotalLeave.ToString();
                    lblTOtlaOt.Text      = _employeeAttends.TotalOT.ToString();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
        private void GetEmployeeDetails()
        {
            EMPOYEE_BLL _employeedetailsbll = new EMPOYEE_BLL();

            try
            {
                string id = ((SessionUser)Session["SessionUser"]).EID;
                HRM_PersonalInformations _employeeDetailsr = _employeedetailsbll.GetEmployeeDetails(id);
                if (_employeeDetailsr != null)
                {
                    lblServiceAge.Text = ServiceDays(_employeeDetailsr);
                    DateTime join = Convert.ToDateTime(_employeeDetailsr.JoiningDate);
                    lblJoinDate.Text = join.ToString("MM/dd/yyyy");

                    DateTime DOB = Convert.ToDateTime(_employeeDetailsr.DateOfBrith);
                    lblDOB.Text = DOB.ToString("MM/dd/yyyy");

                    lblBloodGroup.Text = _employeeDetailsr.BloodGroup.ToString();
                    lblFather.Text     = _employeeDetailsr.FatherName.ToString();
                    lblMother.Text     = _employeeDetailsr.MotherName.ToString();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }