Esempio n. 1
0
        public PatientJournalForm(Patient patient, Employee myUser)
        {
            data = new PatientJournalData(patient, myUser);
            InitializeComponent();
            switch (data.MyUser.Position)
            {
            case "Sjuksköterska":
                signInBtn.Enabled        = false;
                signOutBtn.Enabled       = false;
                createReceiptBtn.Enabled = false;
                tidsbokningBtn.Enabled   = false;
                bookingChangebtn.Enabled = false;
                deleteBokningBtn.Enabled = false;
                registerAllowed          = false;
                break;

            case "Receptionist":
                signInBtn.Enabled        = false;
                signOutBtn.Enabled       = false;
                createReceiptBtn.Enabled = false;
                newNotesBtn.Enabled      = false;
                registerAllowed          = false;
                break;
            }
            UpdatePatientJournal();
        }
 public SignInForm(PatientJournalData dt)
 {
     data = dt;
     InitializeComponent();
     this.DepartmentList = db.LoadAllDepartments();
     this.departmentComboBox.DataSource    = DepartmentList;
     this.departmentComboBox.DisplayMember = "Name";
     this.RoomList = db.LoadDepartmentRooms((departmentComboBox.SelectedValue as Department).DepartmentID);
     this.roomComboBox.DataSource = RoomList;
 }
Esempio n. 3
0
        public PatientInfoUpdateForm(PatientJournalData d)
        {
            InitializeComponent();

            this.data = d;
            this.bloodtypeComboBox.SelectedIndex = bloodtypeComboBox.FindStringExact(data.ThePatient.BloodType);
            this.personIdTxt.Text  = data.ThePatient.Personnummer;
            this.firstNameTxt.Text = data.ThePatient.FirstName;
            this.lastNameTxt.Text  = data.ThePatient.LastName;
            this.addressTxt.Text   = data.ThePatient.Address;
            this.postCodeTxt.Text  = data.ThePatient.PostalCode.ToString();
            PopulatePostalArea();
            this.phoneTxt.Text = data.ThePatient.PhoneNr;
            this.eMailTxt.Text = data.ThePatient.Email;

            saveChangesBtn.Enabled = false;
        }