Exemple #1
0
        public override IList GetListFromDataSet(DataSet ds)
        {
            List <HREmployeeTimeSheetsInfo> list = new List <HREmployeeTimeSheetsInfo>();

            if (ds.Tables.Count > 0)
            {
                foreach (DataRow row in ds.Tables[0].Rows)
                {
                    HREmployeeTimeSheetsInfo obj = (HREmployeeTimeSheetsInfo)GetObjectFromDataRow(row);
                    list.Add(obj);
                }
            }
            return(list);
        }
Exemple #2
0
        public HREmployeeTimeSheetsInfo GetEmployeeTimeSheetBySomeCriteria(int employeeID, DateTime compareDate)
        {
            DataSet ds = dal.GetDataSet("HREmployeeTimeSheets_GetEmployeeTimeSheetBySomeCriteria", employeeID, compareDate);

            if (ds.Tables[0].Rows.Count > 0)
            {
                foreach (DataRow row in ds.Tables[0].Rows)
                {
                    HREmployeeTimeSheetsInfo objEmployeeTimeSheetsInfo = (HREmployeeTimeSheetsInfo)GetObjectFromDataRow(row);
                    return(objEmployeeTimeSheetsInfo);
                }
            }
            return(null);
        }