public IActionResult ObtenerArchivo(string fileName) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo BuscarPais llamado" }); fileName = fileName.StartsWith("\\") ? "\\" + fileName : fileName; return(new PhysicalFileResult(fileName, System.Net.Mime.MediaTypeNames.Application.Octet)); }
public IActionResult ObtenerArchivoDesignacion(string fileName) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo BuscarPais llamado" }); //return new PhysicalFileResult(fileName, "application/pdf"); return(new PhysicalFileResult(fileName, System.Net.Mime.MediaTypeNames.Application.Octet)); }
public ResponseQuery <PersonReport> GetPersonsTest(string name) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo GetPersonsTest llamdo con parametro {name}" }); PersonManager personManager = new PersonManager(); return(personManager.GetPersons(name)); }
public ResponseQuery <NormaInternacional> BuscarNormasInternacionales(RequestBuscarNormasInternacionales req) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo BuscarNormasInternacionales llamado" }); AperturaAuditoriaManager objAperturaManager = new AperturaAuditoriaManager(); return(objAperturaManager.BuscarNormasInternacionales(req.Codigo)); }
public ResponseQuery <ListaCalificado> BuscarPersonalCargos(RequestBuscarPersonalCargos requestBuscarPersonalCargos) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo BuscarPersonalCargos llamado" }); AperturaAuditoriaManager objAperturaManager = new AperturaAuditoriaManager(); return(objAperturaManager.BuscarPersonalCargos(requestBuscarPersonalCargos.IdCargoCalificado)); }
public ResponseQuery <ListaCargosCalificados> ObtenerCargos() { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo ObtenerCargos llamado" }); AperturaAuditoriaManager objAperturaManager = new AperturaAuditoriaManager(); return(objAperturaManager.ObtenerCargos()); }
public ResponseObject <Praprogramasdeauditorium> ObtenerProgramaAuditoria(RequestObtenerProgramaAuditoria req) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo ObtenerProgramaAuditoria llamdo con parametro {JsonConvert.SerializeObject(req.IdServicio)}" }); AperturaAuditoriaManager objAperturaManager = new AperturaAuditoriaManager(); return(objAperturaManager.ObtenerProgramaAuditoria(req.IdServicio, req.Usuario)); }
public ResponseObject <Praprogramasdeauditorium> RegisterProgramaAuditoria(Praprogramasdeauditorium req) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo GetPersonsTest llamdo con parametro {JsonConvert.SerializeObject(req)}" }); AperturaAuditoriaManager objAperturaManager = new AperturaAuditoriaManager(); return(objAperturaManager.RegisterProgramaAuditoria(req)); }
public Response GenerarDesignacion(RequestGenerarDesignacion req) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo BuscarPais llamado" }); AperturaAuditoriaManager objAperturaManager = new AperturaAuditoriaManager(); return(objAperturaManager.GenerarDesignacion(req.IdCiclo, req.pathPlantilla)); }
public ResponseQuery <Ciudad> BuscarCiudad(RequestBuscarCiudad req) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo BuscarPais llamado" }); AperturaAuditoriaManager objAperturaManager = new AperturaAuditoriaManager(); return(objAperturaManager.BuscarCiudad(req.IdEstado)); }
public ResponseQuery <Pais> BuscarPais(Contracts.RequestBuscarPais req) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo BuscarPais llamado" }); AperturaAuditoriaManager objAperturaManager = new AperturaAuditoriaManager(); return(objAperturaManager.BuscarPais(req.pais)); }
public ResponseQuery <DTOspWSGetResumePrograma> GetResumePrograma(RequestGetResumePrograma requestGetResumePrograma) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo GetResumePrograma llamado" }); TomaDecisionManager tomaDecisionManager = new TomaDecisionManager(); var resul = tomaDecisionManager.GetResumePrograma(requestGetResumePrograma.tipo, requestGetResumePrograma.idCiclo); return(resul); }
public ResponseQuery <Clasificador> BuscarOrganismosCertificadores() { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo BuscarPais llamado" }); AperturaAuditoriaManager objAperturaManager = new AperturaAuditoriaManager(); RequestBuscarClasificador req = new RequestBuscarClasificador { padre = 638 }; return(objAperturaManager.BuscarOrganismosCertificadores(req)); }
public IActionResult GenerarDocumento(RequestExternalReport requestGenerarDocumento) { Binnacle.ProcessEvent(new Event { category = Event.Category.Information, description = $"Metodo GenerarDocumento llamado" }); TomaDecisionManager tomaDecisionManager = new TomaDecisionManager(); var resul = tomaDecisionManager.GenerarDocumentoByIdCiclo(requestGenerarDocumento); if (resul.State == Domain.Main.Wraper.ResponseType.Success) { string fileName = resul.Message; fileName = fileName.StartsWith("\\") ? "\\" + fileName : fileName; return(new PhysicalFileResult(fileName, System.Net.Mime.MediaTypeNames.Application.Octet)); } return(Problem(resul.Message)); }