protected void loadGridHotel(int npageIndex = 0) { ICompras IService = new ICompras(); IHotels IServiceHotel = new IHotels(); BEHotel BEHotel = new BEHotel(); BEHotel.codLocal = ddlLocales.SelectedValue; BEHotel.codPeriodo = ddlPeriodos.SelectedValue; BECompras BE = new BECompras(); BE.codLocal = ddlLocales.SelectedValue; BE.codPeriodo = ddlPeriodos.SelectedValue; BE.tipoPrmSearch = Convert.ToInt32(ddlTipoPrm.SelectedValue); BE.textPrmSearch = txtPrmSearch.Text.Trim(); if (chkRangeDate.Checked) { BE.prmDesde = txtDesde.Text; BE.prmHasta = txtHasta.Text; } gvHotels.DataSource = IService.IGetCompras(BE); gvHotels.PageIndex = npageIndex; gvHotels.DataBind(); txtBaseImponible.Text = IServiceHotel.IGetImponible(BEHotel, "2"); txtCantDoc.Text = IServiceHotel.IGeNumeroDocumentos(BEHotel, "C"); txtIGVTot.Text = IServiceHotel.IGeIGVCompras(BEHotel); }
//private String cCodLocal //{ // get { return (String)ViewState["cCodLocal"]; } // set { ViewState.Add("cCodLocal", value); } //} protected void loadGridHotel(int npageIndex = 0) { ICompras IService = new ICompras(); BECompras BE = new BECompras(); BE.codPeriodo = ddlPeriodos.SelectedValue; gvHotels.DataSource = IService.IGetCompras(BE); gvHotels.PageIndex = npageIndex; gvHotels.DataBind(); }