protected void btnSearch_Click(object sender, EventArgs e)
 {            
     AllBookingsSearchtbl abs = new AllBookingsSearchtbl();
     abs.AgentID = Convert.ToInt32(ddlAgent.SelectedValue);
     abs.AgentBookingID = ddlAgentBookingID.SelectedItem.Text;
     abs.SupplierID = Convert.ToInt32(ddlStaff.SelectedValue);
     abs.FromDate = txtFDate.Text;
     abs.ToDate = txtTDate.Text;
     abs.SupBookingID = ddlBID.SelectedItem.Text;
     abs.Status = 0;
     abs.Staff = ddlStaff.SelectedValue;
     //List<Booking> lstAllBookings = new List<Booking>();
     //lstAllBookings = objAllBookingsBL.GetAllBookingsSearchWithSearch(abs).ToList();
     lstBok = objAllBookingsBL.GetAllBookingsSearchWithSearch(abs).ToList();
     gdvAllBookings.DataSource = lstBok;
     gdvAllBookings.DataBind();
 }
Пример #2
0
 public IEnumerable <Booking> GetAllBookingsSearchWithSearch(AllBookingsSearchtbl abs)
 {
     return(objAllBookingsDA.AllBookingsSearch(1, abs));
 }