public void Print() {
            Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();

            SIC.Objs.Docentes.Reportes.Xtra_Formulario_SeguroFunerario decrestosdocs = new Objs.Docentes.Reportes.Xtra_Formulario_SeguroFunerario();
            decrestosdocs.bindingSource1.DataSource = this.Solicitud;
            vista.MostarReporte(decrestosdocs); 
        }
Пример #2
0
        private void Presentacion(ESelecion seleccion){
            Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();
            switch (seleccion){ 
                case ESelecion.Solicitud:
                    
                        SIC.Objs.Docentes.Reportes.Xtra_DocenteSolicitudPJ ex = new Objs.Docentes.Reportes.Xtra_DocenteSolicitudPJ();
                        ex.bindingSource1.DataSource = this.Solicitud;
                        vista.MostarReporte(ex);

                        break;
                case ESelecion.Paso:

                        SIC.Objs.Docentes.Reportes.Xtra_DocentePaso ex2 = new Docentes.Reportes.Xtra_DocentePaso();
                        ex2.bindingSource1.DataSource = this.Solicitud;
                        vista.MostarReporte(ex2);

                    break;
                case ESelecion.Beneficios:

                    SIC.Objs.Docentes.Reportes.Xtra_DocentePesionDiscap_Beneficio ex3 = new Docentes.Reportes.Xtra_DocentePesionDiscap_Beneficio();
                    ex3.Parameters[0].Value = this.Solicitud.Docente.HistorialPagos.PromedioMI;
                    ex3.bindingSource1.DataSource = this.Solicitud;
                    vista.MostarReporte(ex3);

                    break;
            }
        }
 private void Presentacion(ESelecion seleccion)
 {
     Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();
     switch (seleccion)
     {
         case ESelecion.FamiliasBeneficiarios:
             SIC.Objs.Docentes.Reportes.Xtra_DocenteDependientes ex = new Objs.Docentes.Reportes.Xtra_DocenteDependientes();
             ex.bindingSource3.DataSource = this.Docente;
             vista.MostarReporte(ex);
             break;
         case ESelecion.PlanFunerario:
             SIC.Objs.Docentes.Reportes.Xtra_DocenteBenPlanf ex2 = new Docentes.Reportes.Xtra_DocenteBenPlanf();
             ex2.bindingSource1.DataSource = this.Docente;
             vista.MostarReporte(ex2);
             break;
         case ESelecion.SueldosPostumes:
             SIC.Objs.Docentes.Reportes.Xtra_PostActivo ex3 = new Docentes.Reportes.Xtra_PostActivo();
             ex3.bindingSource1.DataSource = this.Docente;
             vista.MostarReporte(ex3);
             break;
         case ESelecion.RetroActivo:
             SIC.Objs.Docentes.Reportes.Xtra_RetroActivo ex4 = new Docentes.Reportes.Xtra_RetroActivo();
             ex4.bindingSource1.DataSource = this.Docente;
             vista.MostarReporte(ex4);
             break;
         case ESelecion.Comentario:
             SIC.Objs.Docentes.Reportes.Xtra_ComentarioDocente ex5 = new Docentes.Reportes.Xtra_ComentarioDocente();
             ex5.bindingSource1.DataSource = this.Docente;
             vista.MostarReporte(ex5);
             break;
     }
 }
 public void Print(){
     Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();
     SIC.Objs.Docentes.Reportes.Xtra_DecretoDocentes decrestosdocs = new Docentes.Reportes.Xtra_DecretoDocentes();
     
     decrestosdocs.bindingSource1.DataSource = this.Docentes;
     vista.MostarReporte(decrestosdocs); 
 }
Пример #5
0
        private void But_Imprimir_Click(object sender, RoutedEventArgs e){
            
            try {
                Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();
                SIC.Objs.Docentes.Reportes.Xtra_AnalisisDecreto analisis = new Docentes.Reportes.Xtra_AnalisisDecreto();
                analisis.bindingSource1.DataSource = this.Analisis;
                vista.MostarReporte(analisis);
            }
            catch {
                MessageBox.Show("Error al imprimir el reporte", "Error Reporte", MessageBoxButton.OK, MessageBoxImage.Error);
            }

        }
        public void Print() {
            Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();
            var r = ((Xceed.Wpf.DataGrid.DataGridCollectionViewBase)this.datagrid12.Items.SourceCollection).SourceCollection;
            SIC.Objs.Docentes.Reportes.Xtra_Listado_Solicitud_PJ listado = new Docentes.Reportes.Xtra_Listado_Solicitud_PJ();

            listado.Parameters[2].Value = Com_estado.SelectedItem == null ? string.Empty : ((Empresa.Docente.testadopj)Com_estado.SelectedItem).Nombre;

            Empresa.Docente.SolicitudPJ sol = new Empresa.Docente.SolicitudPJ();
            foreach (object item in r) { 
                sol.Lista.Add((Empresa.Docente.tsolicitudpj)item); 
            } 

            listado.bindingSource1.DataSource = sol;
            vista.MostarReporte(listado);

        }
        public void Print() {
            //Reporte 
            SIC.Objs.Docentes.Reportes.Xtra_Formulario_SeguroFunerario decrestosdocs = new Objs.Docentes.Reportes.Xtra_Formulario_SeguroFunerario();

            //estableciendo el tipo de documento que se guardara(formulario de seguro funerario
            Empresa.Comun.timpresiondocumento __itemimpre;
            __itemimpre = new Empresa.Comun.timpresiondocumento();

            //Llenando parametros del tipo de documento
            __itemimpre.IdSolicitudSeguroFunerario = this.Solicitud.Id;
            __itemimpre.IdUsuario = Empresa.Usuarios.Seccion.Usuario.Id;
            __itemimpre.Documento = Empresa.Docente.EnumDocumento.SeguroFunerario;
            __itemimpre.Comentario = string.Empty;

            //Verificando si existe una copia.
            if (!_ipdoc.ExisteDocumento(this.Solicitud))
            {
                //Primera copia WaterMarket limpio
                decrestosdocs.Watermark.Text = string.Empty;
                //Insertar copia
                _ipdoc.Insert(__itemimpre);
            }
    
            Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();
            bool incluirformulario = false;

            if(MessageBox.Show("Desea Incluir el Formulario INB-PJ-16, Si/No ", "Incluir Formulario INB-PJ-16, Si/No", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes){
                incluirformulario = true;
            }
            
            decrestosdocs.bindingSource1.DataSource = this.Solicitud;
            
            if(incluirformulario){
                SIC.Objs.Docentes.Reportes.Xtra_Formulario_SeguroFunerario_PJ16 seguros_pj16 = new Objs.Docentes.Reportes.Xtra_Formulario_SeguroFunerario_PJ16();
                seguros_pj16.Parameters[0].Value = Empresa.Comun.Server.DameTiempoFormatoC;

                seguros_pj16.Parameters[1].Value = this.Solicitud.Docente.EstadoLaboral.Nombre;
                if (this.Solicitud.Docente.EstadoLaboral.Id >= 2) seguros_pj16.Parameters[1].Value = this.Solicitud.Docente.EstadoLaboral.Nombre + " en el Decreto No." + this.Solicitud.Docente.DecretoActual.Decreto.Numero + " emitido " + Empresa.Comun.ConverToDates.FormatoC(this.Solicitud.Docente.DecretoActual.Decreto.FechaEmision);
                
                seguros_pj16.bindingSource1.DataSource = this.Solicitud;
                vista.MostarReporte(seguros_pj16);
            }

            vista.MostarReporte(decrestosdocs);
        }
        public void Print() {
            ObservableCollection<Empresa.Docente.TFamiliares> items = (ObservableCollection<Empresa.Docente.TFamiliares>)((Xceed.Wpf.DataGrid.DataGridCollectionView)datagrid12.ItemsSource).SourceCollection;

            Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();
            SIC.Objs.Docentes.Reportes.Xtra_LimiteEdad rep = new Docentes.Reportes.Xtra_LimiteEdad();
            rep.bindingSource1.DataSource = items;
            
            foreach(Empresa.Docente.TFamiliares fitem in items){
                try {
                    fitem.Docente = new Empresa.Docente.DocenteBase(fitem.Docente.Cedula)[0];
                }
                catch(ArgumentOutOfRangeException ex){
                    fitem.Docente = new Empresa.Docente.tdocente();
                }
            }

            vista.MostarReporte(rep);
        }
Пример #9
0
        public void Print(){
            Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();

            var r = ((Xceed.Wpf.DataGrid.DataGridCollectionViewBase)this.datagrid1.Items.SourceCollection).SourceCollection;
            SIC.Objs.Docentes.Reportes.Xtra_ListadoExcluidos proyec = new Docentes.Reportes.Xtra_ListadoExcluidos();

            //Ingresando para metros
            proyec.Parameters[0].Value = "";
            proyec.Parameters[0].Visible = false;

            proyec.Parameters[1].Value = "";
            proyec.Parameters[1].Visible = false;

            proyec.Parameters[2].Value = "";
            proyec.Parameters[2].Visible = false;

            proyec.bindingSource1.DataSource = r;
            vista.MostarReporte(proyec);
        }
        public void Print(){
            Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();

            if (this.Decreto.Estado.Id != 3)
            {
                SIC.Objs.Controles.Decreto.Reportes.XtraDecreto_Docente_temporal __dectemp = new Decreto.Reportes.XtraDecreto_Docente_temporal();

                if (datagrid1.GroupLevelDescriptions.Count > 0)
                {
                    string miembro = this.DameRuta(datagrid1.GroupLevelDescriptions[0].FieldName);
                    DevExpress.XtraReports.UI.GroupHeaderBand Grupo_01 = (DevExpress.XtraReports.UI.GroupHeaderBand)__dectemp.Bands["GroupHeader1"];
                    __dectemp.Txt_TituloGrupo.DataBindings.Add(new DevExpress.XtraReports.UI.XRBinding("Text", null, miembro));
                    __dectemp.Visible = true;

                    Grupo_01.GroupFields.Add(new DevExpress.XtraReports.UI.GroupField(new DevExpress.XtraReports.UI.GroupField(miembro)));
                    Grupo_01.Visible = true;
                }
                __dectemp.bindingSource1.DataSource = this.Docentes;
                vista.MostarReporte(__dectemp);
            
            }else{
            
                SIC.Objs.Docentes.Reportes.Xtra_DecretoDocentes decrestosdocs = new Docentes.Reportes.Xtra_DecretoDocentes();
                if (datagrid1.GroupLevelDescriptions.Count > 0)
                {
                    string miembro = this.DameRuta(datagrid1.GroupLevelDescriptions[0].FieldName);
                    DevExpress.XtraReports.UI.GroupHeaderBand Grupo_01 = (DevExpress.XtraReports.UI.GroupHeaderBand)decrestosdocs.Bands["GroupHeader1"];
                    decrestosdocs.Txt_TituloGrupo.DataBindings.Add(new DevExpress.XtraReports.UI.XRBinding("Text", null, miembro));

                    decrestosdocs.Visible = true;
                    Grupo_01.GroupFields.Add(new DevExpress.XtraReports.UI.GroupField(new DevExpress.XtraReports.UI.GroupField(miembro)));
                    Grupo_01.Visible = true;
                }

                decrestosdocs.bindingSource1.DataSource = this.Docentes;
                vista.MostarReporte(decrestosdocs);
            }
        }
        private void But_Imprimir_Click(object sender, RoutedEventArgs e)
        {
            if (com_estadopago.SelectedItem != null)
            {
                SIC.Objs.Controles.Dialogos.seleccion_impresion_cambio_estado_sf __winselec = new Dialogos.seleccion_impresion_cambio_estado_sf();
                __winselec.ShowDialog();

                try
                {
                    
                    if (__winselec.EsValido == true){
                        //Seleccion de tipo de reporte.
                        switch (__winselec.Seleccion)
                        {
                            case Dialogos.seleccion_impresion_cambio_estado_sf.enum_seleccion_impresion_cambio_estado_sf.listado:
                                SIC.Objs.Docentes.Reportes.Xtra_SeguroFunerarioListado _list = new Docentes.Reportes.Xtra_SeguroFunerarioListado();
                                _list.Parameters[0].Value = ((Empresa.Comun.TEstandar)com_estadopago.SelectedItem).Nombre;

                                Empresa.Docente.SeguroFunerario result = new Empresa.Docente.SeguroFunerario();

                                foreach (Empresa.Docente.tsolicitudfunenario item in this.datagrid1.Items)
                                {
                                    result.Lista.Add(item);
                                }

                                _list.bindingSource1.DataSource = result;
                                view = new Empresa.Comun.ViewReportes();
                                view.MostarReporte(_list);

                                break;
                            case Dialogos.seleccion_impresion_cambio_estado_sf.enum_seleccion_impresion_cambio_estado_sf.resumen:
                                break;
                        }
                    }
                    __winselec.Close();
                }
                catch{
                    __winselec.Close();
                }

            }
            else {
                MessageBox.Show("Debe seleccionar un estado de pago", "Debe seleccionar un estado de pago.", MessageBoxButton.OK, MessageBoxImage.Information);
            }
        }
        private void But_Print_Click(object sender, RoutedEventArgs e){
            Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();
            SIC.Objs.Docentes.Reportes.Xtra_SeguroFunerario_Resultado_01 seguro = new Docentes.Reportes.Xtra_SeguroFunerario_Resultado_01();
            
            if (datagrid1.GroupLevelDescriptions.Count > 0)
            {
                string miembro  = datagrid1.GroupLevelDescriptions[0].FieldName;
                DevExpress.XtraReports.UI.GroupHeaderBand Grupo_01 = (DevExpress.XtraReports.UI.GroupHeaderBand)seguro.Bands["GroupHeader1"];

                //Label.
                seguro.xlb_titulo_grupo_01.DataBindings.Add(new DevExpress.XtraReports.UI.XRBinding("Text", null, miembro));
                seguro.xlb_titulo_grupo_01.Visible = true;

                Grupo_01.GroupFields.Add(new DevExpress.XtraReports.UI.GroupField(new DevExpress.XtraReports.UI.GroupField(miembro)));
                Grupo_01.Visible = true;
            }

            seguro.bindingSource1.DataSource = this.datagrid1.ItemsSource;
            vista.MostarReporte(seguro);
        }
        private void But_Imprimir_Click(object sender, RoutedEventArgs e){
            
            try{
                Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();
                SIC.Objs.Docentes.Reportes.Xtra_Docente decrestosdocs = new Docentes.Reportes.Xtra_Docente();
                decrestosdocs.bindingSource3.DataSource = this.Docente;
                vista.MostarReporte(decrestosdocs);

                ///Registro de Evento
                Empresa.RegistroEventos.Evento.Insert(new Empresa.RegistroEventos.tevento(this.CModulo, this.objecto, this.Docente.Cedula, new Empresa.RegistroEventos.ttarea(Empresa.RegistroEventos.EnumIdentificadorTarea.VistaReporte), Empresa.Usuarios.Seccion.Usuario, GlobalItems.IDProcesor, Environment.MachineName, Environment.UserDomainName, "Reporte - Docente"));
            }
            catch{
            
            }
        }
Пример #14
0
        private void PrintEstado(Empresa.Docente.tdocente  docente) {
            Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();
            //var r  = this.Docente.FechaFallecido.Day <= 24? this.Docente.FechaFallecido.AddMonths(-1):this.Docente.FechaFallecido;

            Objs.Docentes.Reportes.Xtra_ListadoIngresosEgresos re1 = new Objs.Docentes.Reportes.Xtra_ListadoIngresosEgresos();
            re1.Parameters[3].Value = docente.CedulaF;
            re1.Parameters[4].Value = docente.NombreCompleto;
 
            re1.bindingSource1.DataSource = docente.PagosDetalle.DameLista("81", this.Docente.FechaFallecido.Day <= 24 ? this.Docente.FechaFallecido.AddMonths(-1):this.Docente.FechaFallecido);

            vista.MostarReporte(re1);
            //Registrando Evento
            Empresa.RegistroEventos.Evento.Insert(new Empresa.RegistroEventos.tevento(this.CModulo, this.objecto, this.Docente.Cedula, new Empresa.RegistroEventos.ttarea(Empresa.RegistroEventos.EnumIdentificadorTarea.VistaReporte), Empresa.Usuarios.Seccion.Usuario, GlobalItems.IDProcesor, Environment.MachineName, Environment.UserDomainName, "Reporte - Docente, Aporte a Seguro Funerario(81)"));
        }
Пример #15
0
        public void Print(Empresa.Docente.tdocente item) {

            if (item != null)
            {
                Empresa.Comun.ViewReportes vista = new Empresa.Comun.ViewReportes();

                if (item.EsFallecido)
                {
                    SIC.Objs.Controles.Dialogos.Dial_ReporteDatosFellecidos datosfallecidos = new Dialogos.Dial_ReporteDatosFellecidos();
                    datosfallecidos.ShowDialog();
                    if (datosfallecidos.EsValido)
                    {
                        switch (datosfallecidos.Seleccion)
                        {
                            case Dialogos.Dial_ReporteDatosFellecidos.EnumSeleccionTipoReporteFallecimiento.Basico:
                                Objs.Docentes.Reportes.Xtra_Docente re1 = new Objs.Docentes.Reportes.Xtra_Docente();
                                re1.bindingSource3.DataSource = item;
                                vista.MostarReporte(re1);

                                //Registrando Evento
                                Empresa.RegistroEventos.Evento.Insert(new Empresa.RegistroEventos.tevento(this.CModulo, this.objecto, this.Docente.Cedula, new Empresa.RegistroEventos.ttarea(Empresa.RegistroEventos.EnumIdentificadorTarea.VistaReporte), Empresa.Usuarios.Seccion.Usuario, GlobalItems.IDProcesor, Environment.MachineName, Environment.UserDomainName, "Reporte - Docente"));
                                break;
                            case Dialogos.Dial_ReporteDatosFellecidos.EnumSeleccionTipoReporteFallecimiento.BasicoFallecimiento:
                                //Reporte extendido
                                Objs.Docentes.Reportes.Xtra_Docente_Fallecidos re3 = new Objs.Docentes.Reportes.Xtra_Docente_Fallecidos();
                                re3.bindingSource1.DataSource = item;
                                //var r = this.Docente.DatosFellecimiento;
                                vista.MostarReporte(re3);
                                //Registrando Evento
                                Empresa.RegistroEventos.Evento.Insert(new Empresa.RegistroEventos.tevento(this.CModulo, this.objecto, this.Docente.Cedula, new Empresa.RegistroEventos.ttarea(Empresa.RegistroEventos.EnumIdentificadorTarea.VistaReporte), Empresa.Usuarios.Seccion.Usuario, GlobalItems.IDProcesor, Environment.MachineName, Environment.UserDomainName, "Reporte - Docente, Datos Fallecimiento"));
                                break;
                            case Dialogos.Dial_ReporteDatosFellecidos.EnumSeleccionTipoReporteFallecimiento.SeguroFunerario:
                                Objs.Docentes.Reportes.Xtra_DocenteBenPlanf re4 = new Objs.Docentes.Reportes.Xtra_DocenteBenPlanf();
                                
                                re4.bindingSource1.DataSource = item;
                                vista.MostarReporte(re4);
                                break;
                            case Dialogos.Dial_ReporteDatosFellecidos.EnumSeleccionTipoReporteFallecimiento.PostActivo:
                                Objs.Docentes.Reportes.Xtra_PostActivo re5 = new Objs.Docentes.Reportes.Xtra_PostActivo();
                                re5.bindingSource1.DataSource = item;
                                vista.MostarReporte(re5);
                                break;
                        }
                    }

                    if (datosfallecidos.IncluirDetalle) this.PrintEstado(item); 
                    datosfallecidos.Close();
                }
                else{
                    if (item.EstadoLaboral.Id != 1){
                        //Pensionado o Jubilado
                        SIC.Objs.Controles.Dialogos.Dial_Seleccion_02 datosfallecidos = new Dialogos.Dial_Seleccion_02();
                        datosfallecidos.ShowDialog();

                        switch (datosfallecidos.Seleccion){

                            case Dialogos.Dial_Seleccion_02.EnumSeleccionTipoReporteDocente.Basico:
                                Objs.Docentes.Reportes.Xtra_Docente re2 = new Objs.Docentes.Reportes.Xtra_Docente();
                                re2.bindingSource3.DataSource = item;
                                vista.MostarReporte(re2);
                                //Registrando Evento
                                Empresa.RegistroEventos.Evento.Insert(new Empresa.RegistroEventos.tevento(this.CModulo, this.objecto, this.Docente.Cedula, new Empresa.RegistroEventos.ttarea(Empresa.RegistroEventos.EnumIdentificadorTarea.VistaReporte), Empresa.Usuarios.Seccion.Usuario, GlobalItems.IDProcesor, Environment.MachineName, Environment.UserDomainName, "Reporte - Docente"));
                                break;
                            case Dialogos.Dial_Seleccion_02.EnumSeleccionTipoReporteDocente.Certificacion:
                                SIC.Objs.Controles.Dialogos.Dial_empresasrecurrentes_01 emprerecurre = new Dialogos.Dial_empresasrecurrentes_01();
                                emprerecurre.ShowDialog();

                                if(emprerecurre.Suplidor != null){

                                    Objs.Docentes.Reportes.Xtra_Certificacion re4 = new Objs.Docentes.Reportes.Xtra_Certificacion();
                                    re4.Parameters[0].Value = Empresa.Comun.Server.DameTiempoFormatoC;

                                    if(item.EstadoLaboral.Id.Equals(2)){
                                        re4.Parameters[1].Value = Empresa.RHH.EstadoLaboral.GetInstance()[3].Nombre;
                                    }
                                    else{
                                        re4.Parameters[1].Value = Empresa.RHH.EstadoLaboral.GetInstance()[2].Nombre;
                                    }

                                    re4.Parameters[2].Value = emprerecurre.Suplidor.Nombre;
                                    re4.bindingSource1.DataSource = item;
                                    vista.MostarReporte(re4);
                                    //Registrando Evento
                                    Empresa.RegistroEventos.Evento.Insert(new Empresa.RegistroEventos.tevento(this.CModulo, this.objecto, this.Docente.Cedula, new Empresa.RegistroEventos.ttarea(Empresa.RegistroEventos.EnumIdentificadorTarea.VistaReporte), Empresa.Usuarios.Seccion.Usuario, GlobalItems.IDProcesor, Environment.MachineName, Environment.UserDomainName, "Reporte - Docente, Certificacion"));
                                }
                                break;
                        }
                        datosfallecidos.Close();
                    }
                    else { 
                        //Activo
                        Objs.Docentes.Reportes.Xtra_Docente re2 = new Objs.Docentes.Reportes.Xtra_Docente();
                        re2.bindingSource3.DataSource = item;
                        vista.MostarReporte(re2);
                        //Registrando Evento
                        Empresa.RegistroEventos.Evento.Insert(new Empresa.RegistroEventos.tevento(this.CModulo, this.objecto, this.Docente.Cedula, new Empresa.RegistroEventos.ttarea(Empresa.RegistroEventos.EnumIdentificadorTarea.VistaReporte), Empresa.Usuarios.Seccion.Usuario, GlobalItems.IDProcesor, Environment.MachineName, Environment.UserDomainName, "Reporte - Docente"));
                    }
                }
            }
        }