コード例 #1
0
ファイル: Form1.cs プロジェクト: Kmiiloberrio2/fwk_12
        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();
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: Kmiiloberrio2/fwk_12
        RetrivePatientsRes Do_RetrivePatient(String provider, String nroLlamada)
        {
            RetrivePatientsReq req = CreateReq();

            RetrivePatientsRes res = req.ExecuteService <RetrivePatientsReq, RetrivePatientsRes>(provider, req);

            return(res);
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: Kmiiloberrio2/fwk_12
        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);
        }
コード例 #4
0
ファイル: Form1.cs プロジェクト: Kmiiloberrio2/fwk_12
        private void btn_RetrivePatientsReq1_Click(object sender, EventArgs e)
        {
            RetrivePatientsReq req = CreateReq();
            RetrivePatientsRes res = _WCFWrapper_01.ExecuteService <RetrivePatientsReq, RetrivePatientsRes>(req);

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

            txtResponse.Text = res.BusinessData.GetXml();
        }
コード例 #5
0
        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);
        }