예제 #1
0
        public OwnerViewModel(Owner openOwner)
        {
            owner         = openOwner;
            newEmployee   = new tblUser();
            newManager    = new tblManager();
            newStaff      = new tblStaff();
            qualification = new tblProfessionalQualification();
            engagement    = new tblEngagement();
            gender        = new tblGender();

            engagementList    = Service.Service.GetEngagementList();
            qualificationList = Service.Service.GetQualificationList();
            genderList        = Service.Service.GetGenderList();
        }
예제 #2
0
 public RegistrationViewModel(Registration open)
 {
     registration = open;
     newUser      = new tblUser();
     newManager   = new tblManager();
     newEmployee  = new tblEmployee();
     //gender
     selectedGender = new tblGender();
     genderList     = Service.Service.GetGenderList();
     //sector
     selectedSector = new tblSector();
     sectorList     = Service.Service.GetSectorList();
     //marital status
     selectedMarital = new tblMarriageStatu();
     maritalList     = Service.Service.GetMaritalStatusList();
     //position
     selectedPosition = new tblPosition();
     positionList     = Service.Service.GetPositionList();
     //qualification
     selectedQualification = new tblProfessionalQualification();
     qualificationList     = Service.Service.GetQualificationList();
 }