private void btnRetrivePatientsReq_Click(object sender, EventArgs e) { ControlPermissionBE c = new ControlPermissionBE(); c.ControlName = "dassdas"; c.ControlName = "dassdas"; c.GetXml(); Int32 iter = 0; StringBuilder str = new StringBuilder(); if (Int32.TryParse(txtIteraciones.Text, out iter)) { RetrivePatientsReq req = CreateReq(); int i = 0; while (i < iter) { i++; RetrivePatientsRes res = req.ExecuteService <RetrivePatientsReq, RetrivePatientsRes>(comboProviders.Text, req); if (res.Error != null) { str.AppendLine(String.Concat(i, " ", ExceptionHelper.GetAllMessageException(ExceptionHelper.ProcessException(res.Error)))); } str.AppendLine(String.Concat(i, " ", res.BusinessData.GetXml())); str.AppendLine(String.Concat(i, " cliente: ", res.ContextInformation.ServerName)); } txtResponse.Text = str.ToString(); } }
RetrivePatientsRes Do_RetrivePatient(String provider, String nroLlamada) { RetrivePatientsReq req = CreateReq(); RetrivePatientsRes res = req.ExecuteService <RetrivePatientsReq, RetrivePatientsRes>(provider, req); return(res); }
public PatientViewList RetrivePatients(int?IdPersona) { RetrivePatientsReq req = CreateReq(); RetrivePatientsRes res = req.ExecuteService <RetrivePatientsReq, RetrivePatientsRes>(comboProviders.Text, req); if (res.Error != null) { MessageBox.Show(Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error).Message); } return(res.BusinessData); }
public static PatientList RetrivePatients(int?IdPersona) { RetrivePatientsReq req = new RetrivePatientsReq(); //req.BusinessData.Apellido = ; req.BusinessData.Id = IdPersona; req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString(); if (Controller.CurrentHealthInstitution != null) { req.ContextInformation.AppId = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString(); } RetrivePatientsRes res = req.ExecuteService <RetrivePatientsReq, RetrivePatientsRes>(req); if (res.Error != null) { throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); } return(res.BusinessData); }
public static PatientList RetrivePatients(int? IdPersona) { RetrivePatientsReq req = new RetrivePatientsReq(); //req.BusinessData.Apellido = ; req.BusinessData.Id = IdPersona; req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString(); if (Controller.CurrentHealthInstitution != null) req.ContextInformation.AppId = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString(); RetrivePatientsRes res = req.ExecuteService<RetrivePatientsReq, RetrivePatientsRes>(req); if (res.Error != null) throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); return res.BusinessData; }