protected void btnSearch_Click(object sender, EventArgs e) { try { List <ATTGroupPersonSearch> lstPersonSearch; lstPersonSearch = BLLGroupPersonSearch.GetGroupPersonWithEmployee(GetFilter(), "5, 3"); Session["PopupPersonSearch"] = lstPersonSearch; this.grdEmployee.DataSource = lstPersonSearch; this.grdEmployee.DataBind(); } catch (Exception ex) { this.lblStatusMessage.Text = "Error Status"; this.lblStatusMessage.Text = ex.Message; this.programmaticModalPopup.Show(); } }
protected void btnSearch_Click(object sender, EventArgs e) { try { List <ATTGroupPersonSearch> lstPersonSearch; lstPersonSearch = BLLGroupPersonSearch.GetEmployeeWithPosting(GetFilter(), this.ApplicationString); //Session["PopupPersonSearch"] = lstPersonSearch; this.grdEmployee.DataSource = lstPersonSearch; this.grdEmployee.DataBind(); this.grdEmployee.SelectedIndex = -1; } catch (Exception ex) { this.lblStatusMessage.Text = "Error Status"; this.lblStatusMessage.Text = ex.Message; this.programmaticModalPopup.Show(); } }
protected void btnSearchGeneral_Click(object sender, EventArgs e) { try { List <ATTGroupPersonSearch> lstPersonSearch; lstPersonSearch = BLLGroupPersonSearch.GetEmployeeWithPosting(GetFilterGeneral(), "5, 3"); lstPersonSearch.RemoveAll ( delegate(ATTGroupPersonSearch s) { return(s.PersonID == this.User.PID); } ); double empID; foreach (GridViewRow row in this.grdChannelPerson.Rows) { empID = double.Parse(row.Cells[8].Text); lstPersonSearch.RemoveAll ( delegate(ATTGroupPersonSearch s) { return(s.PersonID == empID); } ); } //Session["PopupPersonSearch"] = lstPersonSearch; this.grdSEmployee.DataSource = lstPersonSearch; this.grdSEmployee.DataBind(); } catch (Exception ex) { this.lblStatusMessage.Text = "Error Status"; this.lblStatusMessage.Text = ex.Message; this.programmaticModalPopup.Show(); } }