Exemple #1
0
        /// <summary>
        /// 根据条件,获取T_FB_EXTENSIONALTYPE信息
        /// </summary>
        /// <param name="strVacName"></param>
        /// <param name="strVacYear"></param>
        /// <param name="strCountyType"></param>
        /// <param name="strSortKey"></param>
        /// <returns></returns>
        public static IQueryable<T_FB_EXTENSIONALTYPE> GetAllExtensionalTypeRdListByMultSearch(string strFilter, List<object> objArgs, string strSortKey)
        {
            ExtensionalTypeDAL dalExtensionalType = new ExtensionalTypeDAL();
            string strOrderBy = string.Empty;

            if (!string.IsNullOrEmpty(strSortKey))
            {
                strOrderBy = strSortKey;
            }
            else
            {
                strOrderBy = " EXTENSIONALTYPEID ";
            }

            var q = dalExtensionalType.GetExtensionalTypeRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray());
            return q;
        }
Exemple #2
0
        /// <summary>
        /// 根据条件,获取T_FB_EXTENSIONALTYPE信息
        /// </summary>
        /// <param name="strVacName"></param>
        /// <param name="strVacYear"></param>
        /// <param name="strCountyType"></param>
        /// <param name="strSortKey"></param>
        /// <returns></returns>
        public static IQueryable <T_FB_EXTENSIONALTYPE> GetAllExtensionalTypeRdListByMultSearch(string strFilter, List <object> objArgs, string strSortKey)
        {
            ExtensionalTypeDAL dalExtensionalType = new ExtensionalTypeDAL();
            string             strOrderBy         = string.Empty;

            if (!string.IsNullOrEmpty(strSortKey))
            {
                strOrderBy = strSortKey;
            }
            else
            {
                strOrderBy = " EXTENSIONALTYPEID ";
            }

            var q = dalExtensionalType.GetExtensionalTypeRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray());

            return(q);
        }
Exemple #3
0
        /// <summary>
        /// 获取T_FB_EXTENSIONALTYPE信息
        /// </summary>
        /// <param name="strExtensionalTypeId">主键索引</param>
        /// <returns></returns>
        public T_FB_EXTENSIONALTYPE GetExtensionalTypeByID(string strExtensionalTypeId)
        {
            if (string.IsNullOrEmpty(strExtensionalTypeId))
            {
                return null;
            }

            ExtensionalTypeDAL dalExtensionalType = new ExtensionalTypeDAL();
            StringBuilder strFilter = new StringBuilder();
            List<string> objArgs = new List<string>();
            
            if (!string.IsNullOrEmpty(strExtensionalTypeId))
            {
                strFilter.Append(" EXTENSIONALTYPEID == @0");
                objArgs.Add(strExtensionalTypeId);
            }

            T_FB_EXTENSIONALTYPE entRd = dalExtensionalType.GetExtensionalTypeRdByMultSearch(strFilter.ToString(), objArgs.ToArray());
            return entRd;
        }
Exemple #4
0
        /// <summary>
        /// 获取T_FB_EXTENSIONALTYPE信息
        /// </summary>
        /// <param name="strExtensionalTypeId">主键索引</param>
        /// <returns></returns>
        public T_FB_EXTENSIONALTYPE GetExtensionalTypeByID(string strExtensionalTypeId)
        {
            if (string.IsNullOrEmpty(strExtensionalTypeId))
            {
                return(null);
            }

            ExtensionalTypeDAL dalExtensionalType = new ExtensionalTypeDAL();
            StringBuilder      strFilter          = new StringBuilder();
            List <string>      objArgs            = new List <string>();

            if (!string.IsNullOrEmpty(strExtensionalTypeId))
            {
                strFilter.Append(" EXTENSIONALTYPEID == @0");
                objArgs.Add(strExtensionalTypeId);
            }

            T_FB_EXTENSIONALTYPE entRd = dalExtensionalType.GetExtensionalTypeRdByMultSearch(strFilter.ToString(), objArgs.ToArray());

            return(entRd);
        }