Пример #1
0
        // 判斷該天是否已經有考勤紀錄
        private Boolean JudgeWAExist()
        {
            WorkAttendanceModel waModel = new WorkAttendanceModel();

            waModel.SetWAEmplID(this._workAttendanceModel.GetWAEmplID());
            waModel.SetWADate(this._workAttendanceModel.GetWADate());

            this._waService = new WorkAttendanceService(waModel);

            waModel = this._waService.SearchWAByEmplIDAndDate();

            String waStatus = waModel.GetWAStatus();

            if (waStatus != null)
            {
                return(true);
            }

            return(false);
        }
 public void TestWAEmplID()
 {
     _workAttendance.SetWAEmplID("testWAEID");
     Assert.AreEqual("testWAEID", _workAttendance.GetWAEmplID());
 }