Beispiel #1
0
        //Enum to have constants like department of doctor and designation of doctor
        //public enum DrDesignation { GeneralManager, Surgeon, Senior, Junior };
        //public enum DrDepartment { Radiologist, Orthopedics, Dental }

        //public DrDesignation drDesignation { get; set; }
        //public DrDepartment drDepartment { get; set; }

        public DoctorModel(int pid, string firstName, string lastName, string emailID, string pwd,
                           DateTime dateOfBirth, string securityQn, string securityAns, string phone, string address,
                           string gender, bool isActive, DrDesignation drDesignation, DrDepartment drDepartment)

        //: base(pid, firstName, lastName, emailID, pwd,
        //dateOfBirth, securityQn, securityAns, phone, address,
        //gender, isActive)
        {
            //this.drDesignation = drDesignation;
            //this.drDepartment = drDepartment;
        }
Beispiel #2
0
 public PersonModel(int pid, string firstName, string lastName, string emailID, string pwd,
                    DateTime dateOfBirth, string securityQn, string securityAns, string phone, string address,
                    string gender, bool isActive, DrDesignation drDesignation, DrDepartment drDepartment)
 {
     this.pid           = pid;
     this.firstName     = firstName;
     this.lastName      = lastName;
     this.emailID       = emailID;
     this.pwd           = pwd;
     this.dateOfBirth   = dateOfBirth;
     this.securityQn    = this.securityQn;
     this.securityAns   = securityAns;
     this.phone         = phone;
     this.address       = address;
     this.gender        = gender;
     this.isActive      = isActive;
     this.drDesignation = drDesignation;
     this.drDepartment  = drDepartment;
 }