Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="Patient"></param>
        /// <param name="mutualList"></param>
        public static void AsociarPatientAPersona(PatientBE Patient, MutualPorPacienteList mutualList)
        {
            AsociarPatientAPersonaReq req = new AsociarPatientAPersonaReq();

            req.BusinessData.Patient = Patient;
            //MutualPorPacienteList wMutualPorPacienteList = new MutualPorPacienteList();
            //var mList = from m in mutualList select new MutualPorPacienteBE { IdMutual = m.IdMutual, IdPatient = Patient.PatientId };
            //wMutualPorPacienteList.AddRange(mList);
            req.BusinessData.Mutuales = mutualList;
            //req.BusinessData.AnteriorFechaNacimiento = anteriorFechaNacimiento;
            req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();

            AsociarPatientAPersonaRes res = req.ExecuteService <AsociarPatientAPersonaReq, AsociarPatientAPersonaRes>(req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="Patient"></param>
        /// <param name="mutualList"></param>
        public static void AsociarPatientAPersona(PatientBE Patient, MutualPorPacienteList mutualList)
        {
            AsociarPatientAPersonaReq req = new AsociarPatientAPersonaReq();

            req.BusinessData.Patient = Patient;
            //MutualPorPacienteList wMutualPorPacienteList = new MutualPorPacienteList();
            //var mList = from m in mutualList select new MutualPorPacienteBE { IdMutual = m.IdMutual, IdPatient = Patient.PatientId };
            //wMutualPorPacienteList.AddRange(mList);
            req.BusinessData.Mutuales = mutualList;
            //req.BusinessData.AnteriorFechaNacimiento = anteriorFechaNacimiento;
            req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();

            AsociarPatientAPersonaRes res = req.ExecuteService<AsociarPatientAPersonaReq, AsociarPatientAPersonaRes>(req);
            if (res.Error != null)
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);

        }