示例#1
0
        static void Main(string[] args)
        {
            ServicePatient servicePatient = new ServicePatient();

            servicePatient.GeneratePatient();
            servicePatient.PrintPatientsBase();
        }
示例#2
0
 public PatientController()
 {
     servicePatient = new ServicePatient();
     serviceUser = new ServiceUser();
     serviceRDV = new ServiceRDV();
     serviceVisite = new ServiceVisite();
 }
示例#3
0
 public Patient(ServicePatient.Patient servicePatient)
 {
     this.Id = servicePatient.Id;
     this.Firstname = servicePatient.Firstname;
     this.Name = servicePatient.Name;
     this.Birthday = servicePatient.Birthday;
     this.Observations = servicePatient.Observations;
     this.ExtensionData = servicePatient.ExtensionData;
 }
示例#4
0
        public bool AddPatient(ServicePatient.Patient user)
        {
            try
            {

                using (ServicePatient.ServicePatientClient client = new ServicePatient.ServicePatientClient())
                {
                    return client.AddPatient(user);
                }
            }
            catch
            {
                throw new TimeoutException();
            }
        }