private void AddAttReport() { payPeriod.CustomPeriod = 5; payPeriod.PayPeriodTypeID = 5; payPeriod.StartFrom = DateTime.Now; payPeriod.ID = _dtCtrl.AddPayPeriod(payPeriod); attReport.AttendanceRecordIDList = "{1}"; attReport.DayTypeID = 1; attReport.EmployeeNumber = _dtCtrl.GetEmployeeList()[0].EmployeeNumber; attReport.OvertimeHour1 = 2; attReport.OvertimeHour2 = 2; attReport.OvertimeHour3 = 2; attReport.OvertimeHour4 = 2; attReport.OvertimeRate1 = 200; attReport.OvertimeRate2 = 200; attReport.OvertimeRate3 = 200; attReport.OvertimeRate4 = 200; attReport.PayPeriodID = payPeriod.ID; attReport.RegularHour = 8; attReport.RegularRate = 100; attReport.WorkFrom = DateTime.Now.AddHours(-8); attReport.WorkTo = DateTime.Now; attReport.ID = _dtCtrl.AddAttendanceReport(attReport, true); }