Ejemplo n.º 1
0
        public RptResumenEmpresaTipoDispositivo(DateTime desdeFecha, DateTime hastaFecha, int empresaId, int tipoId, LainsaSci ctx)
            : this()
        {
            TipoDispositivo tipo = null;

            tipo            = CntLainsaSci.GetTipoDispositivo(tipoId, ctx);
            empresa         = CntLainsaSci.GetEmpresa(empresaId, ctx);
            this.DataSource = CntInforme.GetEmpresaTipoView(desdeFecha, hastaFecha, empresa, tipo, false, ctx);
        }
Ejemplo n.º 2
0
        public RptFacturableEmpresaTipoDispositivo(DateTime desdeFecha, DateTime hastaFecha, int empresaId, int tipoId, LainsaSci ctx)
            : this()
        {
            TipoDispositivo tipo = null;

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