Пример #1
0
        // 呼叫position service利用所選取之職位查詢該職位底薪
        public String SearchBasicSalaryByPositionID()
        {
            String positionID = this._employeeModel.GetPositionID();
            this._positionModel.SetId(positionID);

            this._positionService = new PositionService(this._positionModel);

            this._positionModel = _positionService.SearchBsicSalaryByPositionID();

            return this._positionModel.GetBasicSalary().ToString();
        }
Пример #2
0
        // 判斷底薪範圍 -5000~+5000
        private Boolean JudgeBasicSalaryRange(String positionID, float basicSalary)
        {
            const int RANGE = 5000;

            this._positionModel.SetId(positionID);

            this._positionService = new PositionService(this._positionModel);

            this._positionModel = _positionService.SearchBsicSalaryByPositionID();

            float positionBasicSalary = this._positionModel.GetBasicSalary();

            if (Math.Abs(basicSalary - positionBasicSalary) > RANGE)
                return false;

            return true;
        }
Пример #3
0
 public PositionService(PositionModel positionModel)
 {
     this._positionModel = positionModel;
 }