Пример #1
0
 public T_HR_POSTDICTIONARY GetPostDictionaryById(string strid)
 {
     using (PostDictionaryBLL bll = new PostDictionaryBLL())
     {
         return(bll.GetPostDictionaryById(strid));
     }
 }
Пример #2
0
 public void PostDictionaryUpdate(T_HR_POSTDICTIONARY obj, ref string strMsg)
 {
     using (PostDictionaryBLL bll = new PostDictionaryBLL())
     {
         bll.PostDictionaryUpdate(obj, ref strMsg);
     }
 }
Пример #3
0
 public bool PostDictionaryDelete(string[] strid, ref string strMsg)
 {
     using (PostDictionaryBLL bll = new PostDictionaryBLL())
     {
         int rslt = bll.PostDictionaryDelete(strid, ref strMsg);
         return(rslt > 0);
     }
 }
Пример #4
0
 public List <T_HR_POSTDICTIONARY> GetPostDictionaryAll()
 {
     using (PostDictionaryBLL bll = new PostDictionaryBLL())
     {
         IQueryable <T_HR_POSTDICTIONARY> q = bll.GetPostDictionaryAll();
         return(q.Count() > 0 ? q.ToList() : null);
     }
 }
Пример #5
0
 public List <T_HR_POSTDICTIONARY> GetPostDictionaryByDepartmentDictionayID(string departmentDictioanryID)
 {
     using (PostDictionaryBLL bll = new PostDictionaryBLL())
     {
         IQueryable <T_HR_POSTDICTIONARY> q = bll.GetPostDictionaryByDepartmentDictionayID(departmentDictioanryID);
         if (q != null)
         {
             return(q.Count() > 0 ? q.ToList() : null);
         }
         else
         {
             return(null);
         }
     }
 }
Пример #6
0
 public List <T_HR_POSTDICTIONARY> PostDictionaryPaging(int pageIndex, int pageSize, string sort, string filterString, IList <object> paras, ref int pageCount, string userID, string Checkstate)
 {
     using (PostDictionaryBLL bll = new PostDictionaryBLL())
     {
         IQueryable <T_HR_POSTDICTIONARY> q = bll.PostDictionaryPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userID, Checkstate);
         if (q != null)
         {
             return(q.Count() > 0 ? q.ToList() : null);
         }
         else
         {
             return(null);
         }
     }
 }
Пример #7
0
 public T_HR_POSTDICTIONARY GetPostDictionaryById(string strid)
 {
     using (PostDictionaryBLL bll = new PostDictionaryBLL())
     {
         return bll.GetPostDictionaryById(strid);
     }
 }
Пример #8
0
 public bool PostDictionaryDelete(string[] strid, ref string strMsg)
 {
     using (PostDictionaryBLL bll = new PostDictionaryBLL())
     {
         int rslt = bll.PostDictionaryDelete(strid, ref strMsg);
         return (rslt > 0);
     }
 }
Пример #9
0
 public void PostDictionaryUpdate(T_HR_POSTDICTIONARY obj, ref string strMsg)
 {
     using (PostDictionaryBLL bll = new PostDictionaryBLL())
     {
         bll.PostDictionaryUpdate(obj, ref strMsg);
     }
 }
Пример #10
0
        public List<T_HR_POSTDICTIONARY> GetPostDictionaryByDepartmentDictionayID(string departmentDictioanryID)
        {
            using (PostDictionaryBLL bll = new PostDictionaryBLL())
            {
                IQueryable<T_HR_POSTDICTIONARY> q = bll.GetPostDictionaryByDepartmentDictionayID(departmentDictioanryID);
                if (q != null)
                {
                    return q.Count() > 0 ? q.ToList() : null;
                }
                else
                {
                    return null;
                }

            }
        }
Пример #11
0
        public List<T_HR_POSTDICTIONARY> PostDictionaryPaging(int pageIndex, int pageSize, string sort, string filterString, IList<object> paras, ref int pageCount, string userID, string Checkstate)
        {
            using (PostDictionaryBLL bll = new PostDictionaryBLL())
            {
                IQueryable<T_HR_POSTDICTIONARY> q = bll.PostDictionaryPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userID, Checkstate);
                if (q != null)
                {
                    return q.Count() > 0 ? q.ToList() : null;
                }
                else
                {
                    return null;
                }

            }
        }
Пример #12
0
 public List<T_HR_POSTDICTIONARY> GetPostDictionaryAll()
 {
     using (PostDictionaryBLL bll = new PostDictionaryBLL())
     {
         IQueryable<T_HR_POSTDICTIONARY> q = bll.GetPostDictionaryAll();
         return q.Count() > 0 ? q.ToList() : null;
     }
 }