Пример #1
0
    protected void gvDividendPaidH_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        gvDividendPaidH.PageIndex = e.NewPageIndex;
        List <Dividend> dvPaidList = DividendDB.getAllHotelPaidDividendsByID(((Hotel)Session["userHotel"]).HotelID.ToString());

        gvDividendPaidH.DataSource = dvPaidList;
        gvDividendPaidH.DataBind();
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //hotel owner can check the pending and paid into the gridview
        List <Dividend> dvPendingList = DividendDB.getAllHotelPendingDividendsByID(((Hotel)Session["userHotel"]).HotelID.ToString());

        gvDividendPendingH.DataSource = dvPendingList;
        gvDividendPendingH.DataBind();

        List <Dividend> dvPaidList = DividendDB.getAllHotelPaidDividendsByID(((Hotel)Session["userHotel"]).HotelID.ToString());

        gvDividendPaidH.DataSource = dvPaidList;
        gvDividendPaidH.DataBind();
    }