public IEnumerable <ForgetCardModel> GetAll(int deptId, string empId, string empName, string position, string jobTitle, DateTime fromDate, DateTime toDate)
        {
            var list = (from l in _db.SP_FORGETCARD_GETALL(deptId, empId, empName, position, jobTitle, fromDate, toDate)
                        select new ForgetCardModel()
            {
                EmpId = l.EmpId,
                EmpName = l.EmpName,
                WorkDate = l.WorkDate ?? new DateTime(),
                OrgName = l.OrganizationName,
                PlantName = l.PlantName,
                DeptName = l.DeptName,
                SectName = l.SectName,
                Position = l.Posistion,
                JobTitle = l.JobTitle,
                TimeIn = l.TimeIn,
                TimeOut = l.TimeOut,
                ReasonName = l.ReasonName
            }).ToList();

            return(list);
        }