Ejemplo n.º 1
0
 // 建構子
 public SalaryController(SalaryPresentationModel salaryPresentationModel)
 {
     _salaryModel.setSalaryDate(salaryPresentationModel.getSalaryDate());
     _salaryModel.setSalaryT(salaryPresentationModel.getSalaryT());
     _salaryModel.setEmplID(salaryPresentationModel.getEmplID());
     _salaryModel.setPayway(salaryPresentationModel.getPayway());
     _salaryModel.setAccountData(salaryPresentationModel.getAccountData());
 }
Ejemplo n.º 2
0
        // 取得該員工薪水支付方式
        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);
        }