public static BOLeaveDetailsList GetAllList(int startIndex, int length, string whereClause)
 {
     BOLeaveDetailsList itemObjs = null;
       tblLeaveDetails tblObj = new tblLeaveDetails();
       DataTable dt = tblObj.GetAllData(startIndex, length, whereClause, null);
       if (dt.Rows.Count > 0)
       {
       itemObjs = new BOLeaveDetailsList();
       foreach(DataRow dr in dt.Rows)
       {
           itemObjs.Add(FillDataRecord(dr));
       }
       }
       return itemObjs;
 }
 public static BOLeaveDetailsList GetAllList()
 {
     BOLeaveDetailsList itemObjs = null;
       tblLeaveDetails tblObj = new tblLeaveDetails();
       DataTable dt = tblObj.GetAllData();
       if (dt.Rows.Count > 0)
       {
       itemObjs = new BOLeaveDetailsList();
       foreach(DataRow dr in dt.Rows)
       {
           itemObjs.Add(FillDataRecord(dr));
       }
       }
       return itemObjs;
 }
예제 #3
0
        public static BOLeaveDetailsList GetAllList(int startIndex, int length, string whereClause)
        {
            BOLeaveDetailsList itemObjs = null;
            tblLeaveDetails    tblObj   = new tblLeaveDetails();
            DataTable          dt       = tblObj.GetAllData(startIndex, length, whereClause, null);

            if (dt.Rows.Count > 0)
            {
                itemObjs = new BOLeaveDetailsList();
                foreach (DataRow dr in dt.Rows)
                {
                    itemObjs.Add(FillDataRecord(dr));
                }
            }
            return(itemObjs);
        }
예제 #4
0
        public static BOLeaveDetailsList GetAllList()
        {
            BOLeaveDetailsList itemObjs = null;
            tblLeaveDetails    tblObj   = new tblLeaveDetails();
            DataTable          dt       = tblObj.GetAllData();

            if (dt.Rows.Count > 0)
            {
                itemObjs = new BOLeaveDetailsList();
                foreach (DataRow dr in dt.Rows)
                {
                    itemObjs.Add(FillDataRecord(dr));
                }
            }
            return(itemObjs);
        }