示例#1
0
        public override IEmployeeManager CreateEmployee()
        {
            var contract = new ContractEmployeeManager();

            _employee.MedicalAllowance = contract.GetAllowance();
            return(contract);
        }
        public override IEmployeeManager Create()
        {
            ContractEmployeeManager manager = new ContractEmployeeManager();

            _emp.MedicalAllowance = manager.GetMedicalAllowance();
            return(manager);
        }
示例#3
0
        public override IEmployeeManager create()
        {
            ContractEmployeeManager empManager = new ContractEmployeeManager();

            this._emp.EmployeeAllowances.Add(new EmployeeAllowance {
                MedicalAllowance = empManager.GetMedicalAllowance()
            });
            return(empManager);
        }
        public IEmployeeManager GetEmployeeManager(int employeeId)
        {
            IEmployeeManager returnValue = null;

            if (employeeId == 1)
            {
                returnValue = new ParmanentEmployeeManager();
            }
            else if (employeeId == 2)
            {
                returnValue = new ContractEmployeeManager();
            }
            return(returnValue);
        }
        public IEmployeeManager GetEmployeeManager(int employeeTypeID)
        {
            IEmployeeManager employeeManager = null;

            if (employeeTypeID == 1)
            {
                employeeManager = new PermanentEmployeeManager();
            }
            else if (employeeTypeID == 2)
            {
                employeeManager = new ContractEmployeeManager();
            }
            return(employeeManager);
        }
        public IEmployeeManager GetEmployeeManager(int employeeTypeId)
        {
            IEmployeeManager result = null;

            if (employeeTypeId == 1)
            {
                result = new PermanentEmployeeManager();
            }
            else if (employeeTypeId == 2)
            {
                result = new ContractEmployeeManager();
            }
            return(result);
        }
        public IEmployeeManager GetEmployeeManager(int employeeType)
        {
            IEmployeeManager retVal = null;

            if (employeeType == 1)
            {
                retVal = new PermanentEmployeeManager();
            }
            else if (employeeType == 2)
            {
                retVal = new ContractEmployeeManager();
            }
            return(retVal);
        }
        public IEmployeeManager GetEmployeeManager(int employyeType)
        {
            IEmployeeManager returnValue = null;

            if (employyeType == 1)
            {
                returnValue = new EmployeeManager();
            }
            else if (employyeType == 2)
            {
                returnValue = new ContractEmployeeManager();
            }
            return(returnValue);
        }
示例#9
0
        public IEmployeeManager GetManager(int EmployeeTypeId)
        {
            IEmployeeManager Manager = null;

            if (EmployeeTypeId == 1)
            {
                Manager = new PermanentEmployeeManager();
            }
            else if (EmployeeTypeId == 2)
            {
                Manager = new ContractEmployeeManager();
            }
            return(Manager);
        }
        public IEmployeeManager CreateEmployee(int employeeType)
        {
            IEmployeeManager employeeManager = null;

            if (employeeType == 1)
            {
                employeeManager = new PermantEmployeeManager();
            }
            else if (employeeType == 2)
            {
                employeeManager = new ContractEmployeeManager();
            }

            return(employeeManager);
        }
        public IEmployeeManager GetEmployeeManager(int employeeId)
        {
            IEmployeeManager employeeManager = null;

            switch (employeeId)
            {
            case 1:
                employeeManager = new PermanentEmployeeManager();
                break;

            case 2:
                employeeManager = new ContractEmployeeManager();
                break;

            default:
                employeeManager = null;
                break;
            }

            return(employeeManager);
        }