public EmployeeAccountModel()
        {
            BasicRepository _basic = new BasicRepository();

            BasicContants.StoredProcedure = "GetAdminRoles";
            Roles    = _basic.Get();
            RoleList = Roles.ToRoleSelectListItems(RoleID);

            BasicContants.StoredProcedure = "GetGender";
            Genders    = _basic.Get();
            GenderList = Genders.ToGenderSelectListItems(GenderID);

            BasicContants.StoredProcedure = "GetCity";
            Cities   = _basic.Get();
            CityList = Cities.ToCitySelectListItems(CityID);

            BasicContants.StoredProcedure = "GetDesignation";
            Designations    = _basic.Get();
            DesignationList = Designations.ToDesignationSelectListItems(DesignationID);
        }
示例#2
0
        public EmployeeUser()
        {
            DesignationsRepository _designationRep = new DesignationsRepository();

            Designations    = _designationRep.Get();
            DesignationList = Designations.ToDesignationSelectListItems(DesignationID);

            DepartmentRepository _departmentRep = new DepartmentRepository();

            Departments    = _departmentRep.Get();
            DepartmentList = Departments.ToDepartmentSelectListItems(DepartmentCode);

            CitiesRepository _citiesRep = new CitiesRepository();

            Cities   = _citiesRep.Get();
            CityList = Cities.ToCitySelectListItems(CityID);

            ProcedureNameHandling.GetSP = "GetCountry";
            Countries     = _basicRep.Get();
            CountriesList = Countries.ToCountrySelectListItems(Nationality);

            ProcedureNameHandling.GetSP = "GetGender";
            Genders    = _basicRep.Get();
            GenderList = Genders.ToGenderSelectListItems(GenderID);

            ProcedureNameHandling.GetSP = "GetEducation";
            Educations    = _basicRep.Get();
            EducationList = Educations.ToEducationSelectListItems(EducationID);

            ProcedureNameHandling.GetSP = "GetReligion";
            Religion     = _basicRep.Get();
            ReligionList = Religion.ToReligionSelectListItems(ReligionID);

            ProcedureNameHandling.GetSP = "GetMaritalStatus";
            MaritalStatusCode           = _basicRep.Get();
            MaritalStatusList           = MaritalStatusCode.ToMaritalStatusSelectListItems(MaritalStatusID);
        }