// 建構子
 public SalaryController(SalaryPresentationModel salaryPresentationModel)
 {
     _salaryModel.setSalaryDate(salaryPresentationModel.getSalaryDate());
     _salaryModel.setSalaryT(salaryPresentationModel.getSalaryT());
     _salaryModel.setEmplID(salaryPresentationModel.getEmplID());
     _salaryModel.setPayway(salaryPresentationModel.getPayway());
     _salaryModel.setAccountData(salaryPresentationModel.getAccountData());
     
 }
Example #2
0
        private void ClickPaywaySearchButton(object sender, EventArgs e)
        {
            String emplID = _editPaywayEmplIDTB.Text;
            _salaryPresentationModel.setEmplID(emplID);

            _salaryController = new SalaryController(_salaryPresentationModel);
            _salaryPresentationModel = _salaryController.SearchDataByEmplID();

            if (_salaryPresentationModel.getEmplID() == null || _salaryPresentationModel.getEmplID() == "")
                return;

            ResetSearchEditPaywayUI();
            SetEditPaywayUIToEnable();
        }