protected void BindGrid()
 {
     TimeSpan relaxationTime = new TimeSpan();
     relaxationTime = TimeSpan.Parse(ddlRelaxation.SelectedValue.ToString());
     ManageReports objManageReports = new ManageReports();
     var data = objManageReports.GetDataForMonthlyLateReport(Convert.ToInt32(ddlDepartments.SelectedValue.ToString()), Calendar1.SelectedDate.Date, Calendar2.SelectedDate.Date, relaxationTime);
     grid_lateComers.DataSource = data;
     grid_lateComers.DataBind();
 }
 protected void btn_report_Click(object sender, EventArgs e)
 {
     btnExport.Visible = true;
     ManageReports objManageReports = new ManageReports();
     TimeSpan relaxationTime = new TimeSpan();
     relaxationTime = TimeSpan.Parse(ddlRelaxation.SelectedValue.ToString());
     var data = objManageReports.GetDataForMonthlyLateReport(Convert.ToInt32(ddlDepartments.SelectedValue.ToString()), Calendar1.SelectedDate.Date, Calendar1.SelectedDate.Date, relaxationTime);
     grid_lateComers.DataSource = data;
     grid_lateComers.DataBind();
 }