예제 #1
0
        private void GenerateLaboratorioReport(string pathFile, string ServicioId, string PacienteId, string EmpresaCliente)
        {
            var MedicalCenter     = _serviceBL.GetInfoMedicalCenter();
            var filiationData     = _pacientBL.GetPacientReportEPS(ServicioId);
            var serviceComponents = _serviceBL.GetServiceComponentsReport(ServicioId);

            LaboratorioReport.CreateLaboratorioReport(filiationData, serviceComponents, MedicalCenter, pathFile);
        }
예제 #2
0
        private void GenerateLaboratorioReport(string pathFile, string pstrServiceId)
        {
            var MedicalCenter     = new ServiceBL().GetInfoMedicalCenter();
            var filiationData     = new PacientBL().GetPacientReportEPS(pstrServiceId);
            var serviceComponents = new ServiceBL().GetServiceComponentsReport(pstrServiceId);

            LaboratorioReport.CreateLaboratorioReport(filiationData, serviceComponents, MedicalCenter, pathFile);
        }
예제 #3
0
        private void btnLaboratorio_Click(object sender, EventArgs e)
        {
            saveFileDialog3.FileName = string.Format("{0} Laboratorio", "Alberto Merchan Cosme");
            saveFileDialog3.Filter   = "Files (*.pdf;)|*.pdf;";
            _serviceId = txtServicio.Text.Trim();
            _pacientId = txtPersona.Text.Trim();

            if (saveFileDialog3.ShowDialog() == DialogResult.OK)
            {
                using (new LoadingClass.PleaseWait(this.Location, "Generando..."))
                {
                    var MedicalCenter = _serviceBL.GetInfoMedicalCenter();

                    var filiationData = _pacientBL.GetPacientReportEPS(_serviceId);

                    var serviceComponents = _serviceBL.GetServiceComponentsReport(_serviceId);

                    LaboratorioReport.CreateLaboratorioReport(filiationData, serviceComponents, MedicalCenter, saveFileDialog3.FileName);
                    RunFile(saveFileDialog3.FileName);
                }
            }
        }