Exemplo n.º 1
0
        protected override IEmployeeManager Create()
        {
            PermanentEmployeeManager manager = new PermanentEmployeeManager();

            _emp.HourseAllowance = manager.GetHourseAllowance();
            return(manager);
        }
Exemplo n.º 2
0
        public override IEmployeeManager Create()
        {
            PermanentEmployeeManager permanentEmployeeManager = new PermanentEmployeeManager();

            _employee.HouseAllowance = permanentEmployeeManager.GetHouseAllowance();
            return(permanentEmployeeManager);
        }
Exemplo n.º 3
0
        public override IEmployeeManager Create()
        {
            PermanentEmployeeManager manager = new PermanentEmployeeManager();

            Employee.HomeAllowance = manager.GetHomeAllowance();
            return(manager);
        }
        public override IEmployeeManager Create()
        {
            PermanentEmployeeManager manager = new PermanentEmployeeManager();

            _emp.MedicalAllowance = manager.GetHouseAllowance();
            return(manager);
        }
        public override IEmployeeManager create()
        {
            PermanentEmployeeManager empManager = new PermanentEmployeeManager();

            this._emp.EmployeeAllowances.Add(new EmployeeAllowance {
                HRA = empManager.GetHRA()
            });
            return(empManager);
        }
Exemplo n.º 6
0
        public IEmployeeManager GetEmployeeManager(int employeeTypeID)
        {
            IEmployeeManager returnValue = null;

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

            if (employeeTypeId == 1)
            {
                result = new PermanentEmployeeManager();
            }
            else if (employeeTypeId == 2)
            {
                result = new ContractEmployeeManager();
            }
            return(result);
        }
Exemplo n.º 8
0
        public IEmployeeManager GetManager(int EmployeeTypeId)
        {
            IEmployeeManager Manager = null;

            if (EmployeeTypeId == 1)
            {
                Manager = new PermanentEmployeeManager();
            }
            else if (EmployeeTypeId == 2)
            {
                Manager = new ContractEmployeeManager();
            }
            return(Manager);
        }
Exemplo n.º 9
0
        public IEmployeeManager GetEmployeeManager(int empType)
        {
            IEmployeeManager manager = null;

            if (empType == 1)
            {
                manager = new PermanentEmployeeManager();
            }
            else if (empType == 2)
            {
                manager = new ContractEmployeeManager();
            }

            return(manager);
        }
        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);
        }
Exemplo n.º 11
0
 public PermanentEmployeeController(PermanentEmployeeManager permanentEmployeeManager)
 {
     this._permanentEmployeeManager = permanentEmployeeManager;
 }