Пример #1
0
        public RptResumenEmpresa(DateTime desdeFecha, DateTime hastaFecha, int empresaId, int instId, int tipoId, LainsaSci ctx)
            : this()
        {
            Instalacion     instalacion = null;
            TipoDispositivo tipo        = null;

            instalacion     = CntLainsaSci.GetInstalacion(instId, ctx);
            tipo            = CntLainsaSci.GetTipoDispositivo(tipoId, ctx);
            empresa         = CntLainsaSci.GetEmpresa(empresaId, ctx);
            this.DataSource = CntInforme.GetEmpresaView(desdeFecha, hastaFecha, empresa, instalacion, tipo, false, ctx);
        }
Пример #2
0
        public RptFacturableEmpresa(DateTime desdeFecha, DateTime hastaFecha, int empresaId, int instId, int tipoId, LainsaSci ctx)
            : this()
        {
            Instalacion     instalacion = null;
            TipoDispositivo tipo        = null;

            if (instId != -1)
            {
                instalacion = CntLainsaSci.GetInstalacion(instId, ctx);
            }
            if (tipoId != -1)
            {
                tipo = CntLainsaSci.GetTipoDispositivo(tipoId, ctx);
            }
            empresa         = CntLainsaSci.GetEmpresa(empresaId, ctx);
            this.DataSource = CntInforme.GetEmpresaView(desdeFecha, hastaFecha, empresa, instalacion, tipo, true, ctx);
        }