Beispiel #1
0
        public static AppointmentBE Get_Appointment(int appointmetId)
        {
            GetAppoinmentByParamsReq req = new GetAppoinmentByParamsReq();

            req.BusinessData.AppointmentId = appointmetId;

            req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();
            req.ContextInformation.AppId  = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString();


            GetAppoinmentByParamsRes res = req.ExecuteService <GetAppoinmentByParamsReq, GetAppoinmentByParamsRes>(req);


            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }

            return(res.BusinessData.AppointmentBE);
        }
Beispiel #2
0
        public static AppointmentBE Get_Appointment(int appointmetId)
        {
            GetAppoinmentByParamsReq req = new GetAppoinmentByParamsReq();

            req.BusinessData.AppointmentId = appointmetId;

            req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();
            req.ContextInformation.AppId = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString();
       

            GetAppoinmentByParamsRes res = req.ExecuteService<GetAppoinmentByParamsReq, GetAppoinmentByParamsRes>(req);


            if (res.Error != null)
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);

            return res.BusinessData.AppointmentBE;
        }