Esempio n. 1
0
        /// <summary>
        /// 根据条件,获取T_FB_PERSONBUDGETAPPLYDETAIL信息
        /// </summary>
        /// <param name="strVacName"></param>
        /// <param name="strVacYear"></param>
        /// <param name="strCountyType"></param>
        /// <param name="strSortKey"></param>
        /// <returns></returns>
        public static IQueryable<T_FB_PERSONBUDGETAPPLYDETAIL> GetAllPersonBudgetApplyDetailRdListByMultSearch(string strFilter, List<object> objArgs, string strSortKey)
        {
            PersonBudgetApplyDetailDAL dalPersonBudgetApplyDetail = new PersonBudgetApplyDetailDAL();
            string strOrderBy = string.Empty;

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

            var q = dalPersonBudgetApplyDetail.GetPersonBudgetApplyDetailRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray());
            return q;
        }
Esempio n. 2
0
        /// <summary>
        /// 根据条件,获取T_FB_PERSONBUDGETAPPLYDETAIL信息
        /// </summary>
        /// <param name="strVacName"></param>
        /// <param name="strVacYear"></param>
        /// <param name="strCountyType"></param>
        /// <param name="strSortKey"></param>
        /// <returns></returns>
        public static IQueryable <T_FB_PERSONBUDGETAPPLYDETAIL> GetAllPersonBudgetApplyDetailRdListByMultSearch(string strFilter, List <object> objArgs, string strSortKey)
        {
            PersonBudgetApplyDetailDAL dalPersonBudgetApplyDetail = new PersonBudgetApplyDetailDAL();
            string strOrderBy = string.Empty;

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

            var q = dalPersonBudgetApplyDetail.GetPersonBudgetApplyDetailRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray());

            return(q);
        }
Esempio n. 3
0
        /// <summary>
        /// 获取T_FB_PERSONBUDGETAPPLYDETAIL信息
        /// </summary>
        /// <param name="strPersonBudgetApplyDetailId">主键索引</param>
        /// <returns></returns>
        public T_FB_PERSONBUDGETAPPLYDETAIL GetPersonBudgetApplyDetailByID(string strPersonBudgetApplyDetailId)
        {
            if (string.IsNullOrEmpty(strPersonBudgetApplyDetailId))
            {
                return null;
            }

            PersonBudgetApplyDetailDAL dalPersonBudgetApplyDetail = new PersonBudgetApplyDetailDAL();
            StringBuilder strFilter = new StringBuilder();
            List<string> objArgs = new List<string>();
            
            if (!string.IsNullOrEmpty(strPersonBudgetApplyDetailId))
            {
                strFilter.Append(" PERSONBUDGETAPPLYDETAILID == @0");
                objArgs.Add(strPersonBudgetApplyDetailId);
            }

            T_FB_PERSONBUDGETAPPLYDETAIL entRd = dalPersonBudgetApplyDetail.GetPersonBudgetApplyDetailRdByMultSearch(strFilter.ToString(), objArgs.ToArray());
            return entRd;
        }
Esempio n. 4
0
        /// <summary>
        /// 获取T_FB_PERSONBUDGETAPPLYDETAIL信息
        /// </summary>
        /// <param name="strPersonBudgetApplyDetailId">主键索引</param>
        /// <returns></returns>
        public T_FB_PERSONBUDGETAPPLYDETAIL GetPersonBudgetApplyDetailByID(string strPersonBudgetApplyDetailId)
        {
            if (string.IsNullOrEmpty(strPersonBudgetApplyDetailId))
            {
                return(null);
            }

            PersonBudgetApplyDetailDAL dalPersonBudgetApplyDetail = new PersonBudgetApplyDetailDAL();
            StringBuilder strFilter = new StringBuilder();
            List <string> objArgs   = new List <string>();

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

            T_FB_PERSONBUDGETAPPLYDETAIL entRd = dalPersonBudgetApplyDetail.GetPersonBudgetApplyDetailRdByMultSearch(strFilter.ToString(), objArgs.ToArray());

            return(entRd);
        }