Esempio n. 1
0
 public T_HR_NOATTENDCARDEMPLOYEES GetNoAttendCardEmployeesByID(string strOverTimeRecordId)
 {
     using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL())
     {
         return(bllOverTimeRecord.GetRecordByID(strOverTimeRecordId));
     }
 }
Esempio n. 2
0
 public bool DeleteNoAttendCardEmployeesRd(string[] strOverTimeRecordId)
 {
     using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL())
     {
         int rslt = bllOverTimeRecord.DeleteRecordByIds(strOverTimeRecordId);
         return(rslt > 0);
     }
 }
Esempio n. 3
0
        public List <T_HR_NOATTENDCARDEMPLOYEES> GetNoAttendCardEmployeesPaging(int pageIndex, int pageSize, string sort, string filterString, List <object> paras, ref int pageCount, string strCheckState, string strOwnerID)
        {
            using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL())
            {
                var ents = bllOverTimeRecord.GetNoAttendCardEmployeesPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, strCheckState, strOwnerID);

                if (ents == null)
                {
                    return(null);
                }

                return(ents.ToList());
            }
        }
Esempio n. 4
0
 public string UpdateNoAttendCardEmployeesRd(T_HR_NOATTENDCARDEMPLOYEES entOTRd)
 {
     using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL())
     {
         string str = string.Empty;
         if (bllOverTimeRecord.Update(entOTRd) == 1)
         {
             str = "Sucess";
         }
         else
         {
             str = "false";
         }
         return(str);
     }
 }
Esempio n. 5
0
 public string AddNoAttendCardEmployeesRd(T_HR_NOATTENDCARDEMPLOYEES entOTRd)
 {
     using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL())
     {
         string str = string.Empty;
         if (bllOverTimeRecord.GetRecordByID(entOTRd.NOATTENDCARDEMPLOYEESID) != null)
         {
             bllOverTimeRecord.Update(entOTRd);
             str = "Sucess";
         }
         else
         {
             if (bllOverTimeRecord.Add(entOTRd))
             {
                 str = "Sucess";
             }
             else
             {
                 str = "false";
             }
         }
         return(str);
     }
 }
Esempio n. 6
0
 public bool DeleteNoAttendCardEmployeesRd(string[] strOverTimeRecordId)
 {
     using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL())
     {
         int rslt = bllOverTimeRecord.DeleteRecordByIds(strOverTimeRecordId);
         return (rslt > 0);
     }
 }
Esempio n. 7
0
 public string UpdateNoAttendCardEmployeesRd(T_HR_NOATTENDCARDEMPLOYEES entOTRd)
 {
     using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL())
     {
         string str = string.Empty;
         if (bllOverTimeRecord.Update(entOTRd)==1)
         {
             str = "Sucess";
         }
         else
             str = "false";
         return str;
     }
 }
Esempio n. 8
0
        public string AddNoAttendCardEmployeesRd(T_HR_NOATTENDCARDEMPLOYEES entOTRd)
        {
            using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL())
            {
                string str = string.Empty;
                if (bllOverTimeRecord.GetRecordByID(entOTRd.NOATTENDCARDEMPLOYEESID) != null)
                {
                    bllOverTimeRecord.Update(entOTRd);
                    str = "Sucess";
                }
                else
                {
                    if (bllOverTimeRecord.Add(entOTRd))
                    {
                        str = "Sucess";
                    }
                    else
                        str = "false";
                }
                return str;

            }
        }
Esempio n. 9
0
 public T_HR_NOATTENDCARDEMPLOYEES GetNoAttendCardEmployeesByID(string strOverTimeRecordId)
 {
     using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL())
     {
         return bllOverTimeRecord.GetRecordByID(strOverTimeRecordId);
     }
 }
Esempio n. 10
0
        public List<T_HR_NOATTENDCARDEMPLOYEES> GetNoAttendCardEmployeesPaging(int pageIndex, int pageSize, string sort, string filterString, List<object> paras, ref int pageCount, string strCheckState, string strOwnerID)
        {
            using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL())
            {
                var ents = bllOverTimeRecord.GetNoAttendCardEmployeesPaging(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, strCheckState, strOwnerID);

                if (ents == null)
                {
                    return null;
                }

                return ents.ToList();
            }
        }