Ejemplo n.º 1
0
 private void RptRevisionFormulario_NeedDataSource(object sender, EventArgs e)
 {
     if (programa != null)
     {
         this.DataSource = CntInforme.GetFormulariosRevision(programa, ctx);
     }
 }
Ejemplo n.º 2
0
 private void RptConsultaDispositivos_NeedDataSource_1(object sender, EventArgs e)
 {
     if (filtro != null)
     {
         this.DataSource = CntInforme.GetInformeDispositivo(filtro, consulta);
     }
 }
Ejemplo n.º 3
0
 private void RptInformePlanta_NeedDataSource(object sender, EventArgs e)
 {
     if (programa != null)
     {
         this.DataSource = CntInforme.GetInformePlanta(programa);
     }
 }
        private void Test1_NeedDataSource(object sender, EventArgs e)
        {
            Telerik.Reporting.Processing.Report rpt = (Telerik.Reporting.Processing.Report)sender;
            int       c             = rpt.Parameters.Count;
            int       instalacionId = Convert.ToInt32(rpt.Parameters["pInstalacionId"].Value);
            DateTime  desdeFecha    = Convert.ToDateTime(rpt.Parameters["pDesdeFecha"].Value);
            DateTime  hastaFecha    = Convert.ToDateTime(rpt.Parameters["pHastaFecha"].Value);
            LainsaSci ctx           = new LainsaSci("LainsaSciCTX");

            IList <RevisionView> l = CntInforme.GetRevisionesView(
                desdeFecha,
                hastaFecha,
                CntLainsaSci.GetInstalacion(instalacionId, ctx),
                true,
                ctx);

            if (l.Count == 0)
            {
                rpt.Visible = false;
            }
            else
            {
                rpt.DataSource = l;
            }
        }
 private void RptConsultaRevisionGeneral_NeedDataSource_1(object sender, EventArgs e)
 {
     if (filtro != null)
     {
         this.DataSource = CntInforme.GetInformeRevision(filtro);
         //this.subReport1.Parameters.Add("dispositivo", filtro);
     }
 }
Ejemplo n.º 6
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.º 7
0
        private void RptResumenRevision_NeedDataSource_1(object sender, EventArgs e)
        {
            Telerik.Reporting.Processing.Report rpt = (Telerik.Reporting.Processing.Report)sender;

            if (rpt.Parameters["dispositivo"].Value != null)
            {
                rpt.DataSource = CntInforme.GetInformeResumenRevision(rpt.Parameters["dispositivo"].Value.ToString());
            }
        }
        public RptResumenEmpresaInstalacion(DateTime desdeFecha, DateTime hastaFecha, int empresaId, int instalacionId, LainsaSci ctx)
            : this()
        {
            Instalacion instalacion = null;

            instalacion     = CntLainsaSci.GetInstalacion(instalacionId, ctx);
            empresa         = CntLainsaSci.GetEmpresa(empresaId, ctx);
            this.DataSource = CntInforme.GetEmpresaInstalacionView(desdeFecha, hastaFecha, empresa, instalacion, false, ctx);
        }
Ejemplo n.º 9
0
        private void Test1_NeedDataSource(object sender, EventArgs e)
        {
            Telerik.Reporting.Processing.Report rpt = (Telerik.Reporting.Processing.Report)sender;
            int             c              = rpt.Parameters.Count;
            int             tipoId         = Convert.ToInt32(rpt.Parameters["pTipoId"].Value);
            int             instalacionId  = Convert.ToInt32(rpt.Parameters["pInstalacionId"].Value);
            DateTime        desdeFecha     = Convert.ToDateTime(rpt.Parameters["pDesdeFecha"].Value);
            DateTime        hastaFecha     = Convert.ToDateTime(rpt.Parameters["pHastaFecha"].Value);
            LainsaSci       ctx            = new LainsaSci("LainsaSciCTX");
            Instalacion     instalacion    = CntLainsaSci.GetInstalacion(instalacionId, ctx);
            TipoDispositivo tipo           = CntLainsaSci.GetTipoDispositivo(tipoId, ctx);
            IList <ResTipoPlantillaView> l = null;

            if (instalacion != null)
            {
                if (tipo != null)
                {
                    l = CntInforme.GetTipoPlantillaViews(
                        desdeFecha,
                        hastaFecha,
                        instalacion,
                        tipo,
                        ctx);
                }
                else
                {
                    l = CntInforme.GetTipoPlantillaViews(
                        desdeFecha,
                        hastaFecha,
                        instalacion,
                        ctx);
                }
            }
            else
            {
                textBox1.Value = "Revisiones por instalación";
                l = CntInforme.GetTipoPlantillaViews(
                    desdeFecha,
                    hastaFecha,
                    tipo,
                    ctx);
            }


            if (l.Count == 0)
            {
                rpt.Visible = false;
            }
            else
            {
                rpt.DataSource = l;
                MontaGrafico(l);
            }
        }
Ejemplo n.º 10
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);
        }
        public RptFacturableEmpresaInstalacion(DateTime desdeFecha, DateTime hastaFecha, int empresaId, int instId, LainsaSci ctx)
            : this()
        {
            Instalacion instalacion = null;

            if (instId != -1)
            {
                instalacion = CntLainsaSci.GetInstalacion(instId, ctx);
            }
            empresa         = CntLainsaSci.GetEmpresa(empresaId, ctx);
            this.DataSource = CntInforme.GetEmpresaInstalacionView(desdeFecha, hastaFecha, empresa, instalacion, true, ctx);
        }
Ejemplo n.º 12
0
        private void LoadDataSource()
        {
            int       pInstalacionId = (int)this.ReportParameters["pInstalacionId"].Value;
            DateTime  dFecha         = (DateTime)this.ReportParameters["pDesdeFecha"].Value;
            DateTime  hFecha         = (DateTime)this.ReportParameters["pHastaFecha"].Value;
            LainsaSci ctx            = new LainsaSci();

            this.DataSource = CntInforme.GetTipoPlantillaViews(
                dFecha,
                hFecha,
                CntLainsaSci.GetInstalacion(pInstalacionId, ctx),
                ctx);
        }
Ejemplo n.º 13
0
        private void Test1_NeedDataSource(object sender, EventArgs e)
        {
            Telerik.Reporting.Processing.Report rpt = (Telerik.Reporting.Processing.Report)sender;
            int       c             = rpt.Parameters.Count;
            int       instalacionId = Convert.ToInt32(rpt.Parameters["pInstalacionId"].Value);
            DateTime  desdeFecha    = Convert.ToDateTime(rpt.Parameters["pDesdeFecha"].Value);
            DateTime  hastaFecha    = Convert.ToDateTime(rpt.Parameters["pHastaFecha"].Value);
            LainsaSci ctx           = new LainsaSci("LainsaSciCTX");

            rpt.DataSource = CntInforme.GetTipoPlantillaViews(
                desdeFecha,
                hastaFecha,
                CntLainsaSci.GetInstalacion(instalacionId, ctx),
                ctx);
        }
Ejemplo n.º 14
0
        private void RptTipoPlantillaChart_NeedDataSource(object sender, EventArgs e)
        {
            Telerik.Reporting.Processing.Report rpt = (Telerik.Reporting.Processing.Report)sender;
            int       c                    = rpt.Parameters.Count;
            int       instalacionId        = Convert.ToInt32(rpt.Parameters["pInstalacionId"].Value);
            DateTime  desdeFecha           = Convert.ToDateTime(rpt.Parameters["pDesdeFecha"].Value);
            DateTime  hastaFecha           = Convert.ToDateTime(rpt.Parameters["pHastaFecha"].Value);
            LainsaSci ctx                  = new LainsaSci("LainsaSciCTX");
            IList <ResTipoPlantillaView> l = CntInforme.GetTipoPlantillaViews(
                desdeFecha,
                hastaFecha,
                CntLainsaSci.GetInstalacion(instalacionId, ctx),
                ctx);

            if (l.Count == 0)
            {
                rpt.Visible = false;
            }
            else
            {
                MontaCarta(l);
            }
        }
Ejemplo n.º 15
0
 public RptPrograma2(int programaId, LainsaSci ctx)
     : this()
 {
     programa        = CntLainsaSci.GetPrograma(programaId, ctx);
     this.DataSource = CntInforme.GetRevViews(programa);
 }
Ejemplo n.º 16
0
 public RptInfConsultaRevision(IList <Revision> lcr, string consulta)
     : this()
 {
     this.DataSource = CntInforme.GetConsultaRevisiones(lcr, consulta);
 }
Ejemplo n.º 17
0
 public RptInformeActa(Instalacion instalacion, string observaciones, string actaNumero, DateTime fechaActa, string tecnicoResponsable, LainsaSci ctx)
     : this()
 {
     this.DataSource = CntInforme.GetPruebasHisdrostaticas(instalacion, observaciones, actaNumero, fechaActa, tecnicoResponsable, ctx);
 }
Ejemplo n.º 18
0
 public RptInformeActaEmpresa(Empresa empresa, string observaciones, string actaNumero, DateTime fechaActa, string tecnicoResponsable, LainsaSciModelo.LainsaSci ctx)
     : this()
 {
     this.DataSource = CntInforme.GetPruebasHisdrostaticasEmpresa(empresa, observaciones, actaNumero, fechaActa, tecnicoResponsable, ctx);
 }