// 建構子 public SalaryController(SalaryPresentationModel salaryPresentationModel) { _salaryModel.setSalaryDate(salaryPresentationModel.getSalaryDate()); _salaryModel.setSalaryT(salaryPresentationModel.getSalaryT()); _salaryModel.setEmplID(salaryPresentationModel.getEmplID()); _salaryModel.setPayway(salaryPresentationModel.getPayway()); _salaryModel.setAccountData(salaryPresentationModel.getAccountData()); }
// 取得該員工薪水支付方式 private List <String> GetEmplSalaryPayWay(String emplID) { List <String> salaryPayWayData = new List <String>(); SalaryModel salaryModel = new SalaryModel(); salaryModel.setEmplID(emplID); SalaryService salaryService = new SalaryService(salaryModel); salaryModel = salaryService.searchByEmplID(); salaryPayWayData.Add(salaryModel.getPayway()); salaryPayWayData.Add(salaryModel.getAccountData()); return(salaryPayWayData); }