Beispiel #1
0
    /*Configuración inicial de los controles*/
    private void ConfigControlsInit()
    {
        hfId["sessionId"] = Guid.NewGuid();
        deInicio.Value    = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
        deFinal.Value     = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month));

        Session[hfId["sessionId"] + "dxConsumoCombustibleDetallado.TipoCliente"]   = dalEmpresa.ObtenerTipoEmpresaXUsuario(conexion, User.Identity.Name, true, true);
        Session[hfId["sessionId"] + "dxConsumoCombustibleDetallado.Empresas"]      = dalEmpresa.ObtenerEmpresasAsignadasxUsuario(conexion, User.Identity.Name, true, "T");
        Session[hfId["sessionId"] + "dxConsumoCombustibleDetallado.Fuente"]        = Estacion.ObtenerFuentesAsignadasxUsuario(conexion, User.Identity.Name);
        Session[hfId["sessionId"] + "dxConsumoCombustibleDetallado.Estaciones"]    = Estacion.ObtenerEstacionesAsignadasxUsuario(conexion, User.Identity.Name, 0);
        Session[hfId["sessionId"] + "dxConsumoCombustibleDetallado.Productos"]     = dalCombustible.ObtenerCatalogoDeCombustiblesParaDDL(conexion);
        Session[hfId["sessionId"] + "dxConsumoCombustibleDetallado.TipoProductos"] = dalEmpresa.ObtenerTipoMonederosXEmpresaUsuario(conexion, User.Identity.Name, true, 0);
        gvReportDataDetallado.SettingsBehavior.AutoExpandAllGroups = true;
    }
Beispiel #2
0
 protected void gleEstacion_Callback(object sender, CallbackEventArgsBase e)
 {
     Session[hfId["sessionId"] + "dxConsumoCombustibleDetallado.Estaciones"] = Estacion.ObtenerEstacionesAsignadasxUsuario(conexion, User.Identity.Name, gleFuente.Value == null? -2:(int)gleFuente.Value);
     CargarDatosEstaciones();
     gleEstacion.SelectedIndex = 0;
 }