Ejemplo n.º 1
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            mesesAmostrar = (bool[])Session["MesesAmostrar"];
            meses         = (Hashtable)Session["Meses"];
            IVentas ventas = VentasFactory.GetVentas();

            ventas.FechaDesde = (DateTime)Session["FechaDesde"];
            ventas.FechaHasta = (DateTime)Session["FechaHasta"];

            if (Session["DsVentasDetalle"] == null)
            {
                int categoriaUVentaID = Utiles.Validaciones.obtieneEntero(Session["categoriaUVentaID"].ToString());
                dsVentasDetalle            = ventas.GetVentasClientesDetalle(categoriaUVentaID, false);
                Session["DsVentasDetalle"] = dsVentasDetalle;
            }
            else
            {
                dsVentasDetalle = (DsVentasDetalle)Session["DsVentasDetalle"];
            }


            //ventas = VentasFactory.GetVentas();
            //ventas.ClienteID = Convert.ToInt32(Convert.ToString(dr["EntidadID"]));
            dsVentasDetalleUVenta = (DsVentasDetalle)Session["DsVentasDetalleUVenta"];
            //System.Data.DataRow[] drImportes = ventas.GetImportesByClienteUVenta(Convert.ToInt32(Convert.ToString(dr["UnidadVentaID"])), i).Datos.Select("");
        }