Exemple #1
0
 public Patient(string lastname, string name, string pesel, Address address,
                OddzialNFZ nfzDepartament, Uprawnienie uprawnienie)
 {
     Lastname    = lastname;
     Name        = name;
     PESEL       = pesel;
     Address     = address;
     Kod         = nfzDepartament.Kod;
     Uprawnienie = uprawnienie.Kod;
 }
Exemple #2
0
        Patient setPatientDetails()
        {
            string      name        = textBox1.Text;
            string      lastname    = textBox2.Text;
            string      pesel       = textBox3.Text;
            string      street      = textBox4.Text;
            string      buildingNo  = textBox5.Text;
            string      localNo     = textBox6.Text;
            string      city        = textBox8.Text;
            string      postalCode  = textBox7.Text;
            OddzialNFZ  oddzialNFZ  = comboBox1.SelectedItem as OddzialNFZ;
            Uprawnienie uprawnienie = comboBox2.SelectedItem as Uprawnienie;

            Address adres      = new Address(street, buildingNo, localNo, postalCode, city);
            Patient newPatient = new Patient(lastname, name, pesel, adres, oddzialNFZ, uprawnienie);

            return(newPatient);
        }
Exemple #3
0
 void getUprawnienia()
 {
     comboBox2.DataSource    = Uprawnienie.getAll();
     comboBox2.DisplayMember = "Kod";
 }