Ejemplo n.º 1
0
        private void Returned_Fill()
        {
            Business.Rental_BAL Obj_Return   = new Business.Rental_BAL();
            List <Returned>     Obj_Returned = Obj_Return.GetReturnedData();

            if (Obj_Returned != null && Obj_Returned.Count > 0)
            {
                gvReturned.DataSource = Obj_Returned;
                gvReturned.DataBind();
            }
            else
            {
                gvReturned.DataSource = null;
                gvReturned.DataBind();
            }
        }
Ejemplo n.º 2
0
        private void Rental_Fill()
        {
            Business.Rental_BAL Obj_Rent   = new Business.Rental_BAL();
            List <Rent>         Obj_Rental = Obj_Rent.GetRentalData();

            if (Obj_Rental != null && Obj_Rental.Count > 0)
            {
                gvRent.DataSource = Obj_Rental;
                gvRent.DataBind();
            }
            else
            {
                gvRent.DataSource = null;
                gvRent.DataBind();
            }
        }