Exemple #1
0
 public Doctor(string username, string password, string firstName, string middleName, string lastName, string gender, string phoneNumber, Permission.perm permission, uType.userTypes userType, string specialisation)
     : base(username, password, firstName, middleName, lastName, gender, phoneNumber, permission, userType)
 {
     this.doctorID       = AutoIncrementValue.authID("doctorID", "doctor");
     this.specialisation = specialisation;
     this.setType(uType.userTypes.DOCTOR);
     this.setPermission(Permission.perm.WRITE);
 }
Exemple #2
0
 protected User(string username, string password, string firstName, string middleName,
                string lastName, string gender, string phoneNumber, /*string username,*/
                Permission.perm permission, uType.userTypes userType)
     : base(username, password)
 {
     this.userID      = AutoIncrementValue.authID("userID", "user");
     this.firstName   = firstName;
     this.middleName  = middleName;
     this.lastName    = lastName;
     this.gender      = gender;
     this.phoneNumber = phoneNumber;
     /**#this.username = username;**/
     this.permission.PermissionType = permission;
     this.userType.UserType         = userType;
 }
Exemple #3
0
 public Patient(string username, string password, string firstName, string middleName, string lastName, string gender, string phoneNumber, Permission.perm permission, uType.userTypes userType, string bloodGroup, int age, double weight, double height, DateTime dOB, string address, string nextOfKin, string numNextOfKin)
     : base(username, password, firstName, middleName, lastName, gender, phoneNumber, permission, userType)
 {
     this.patientID    = AutoIncrementValue.authID("patientID", "patient");
     this.bloodGroup   = bloodGroup;
     this.age          = age;
     this.weight       = weight;
     this.height       = height;
     DOB               = dOB;
     this.address      = address;
     this.nextOfKin    = nextOfKin;
     this.numNextOfKin = numNextOfKin;
     this.setType(uType.userTypes.PATIENT);
     this.setPermission(Permission.perm.READ);
 }
Exemple #4
0
 public Diagnosis()
 {
     this.diagnosisID = AutoIncrementValue.authID("diagnosisID", "diagnosis");
 }
Exemple #5
0
 public Admin(string username, string password, string firstName, string middleName, string lastName, string gender, string phoneNumber, Permission.perm permission, uType.userTypes userType)
     : base(username, password, firstName, middleName, lastName, gender, phoneNumber, permission, userType)
 {
     this.adminID = AutoIncrementValue.authID("adminID", "admin");
     this.setType(uType.userTypes.ADMIN);
 }
Exemple #6
0
 public Login(string username, string password)
 {
     this.loginID  = AutoIncrementValue.authID("loginID", "login");
     this.username = username;
     this.password = password;
 }
Exemple #7
0
        private string period; //should be datetime but datetimepicker.text gives a string no worries

        public Appointment()
        {
            this.appointmentID = AutoIncrementValue.authID("appointmentID", "appointment");;
        }
Exemple #8
0
 public DoctorPatient()
 {
     this.dPID = AutoIncrementValue.authID("DPID", "DP");
 }