Exemplo n.º 1
0
        /// <summary>
        /// 根据条件,获取T_FB_COMPANYBUDGETSUMDETAIL信息
        /// </summary>
        /// <param name="strVacName"></param>
        /// <param name="strVacYear"></param>
        /// <param name="strCountyType"></param>
        /// <param name="strSortKey"></param>
        /// <returns></returns>
        public static IQueryable<T_FB_COMPANYBUDGETSUMDETAIL> GetAllCompanyBudgetSumDetailRdListByMultSearch(string strFilter, List<object> objArgs, string strSortKey)
        {
            CompanyBudgetSumDetailDAL dalCompanyBudgetSumDetail = new CompanyBudgetSumDetailDAL();
            string strOrderBy = string.Empty;

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

            var q = dalCompanyBudgetSumDetail.GetCompanyBudgetSumDetailRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray());
            return q;
        }
Exemplo n.º 2
0
        /// <summary>
        /// 根据条件,获取T_FB_COMPANYBUDGETSUMDETAIL信息
        /// </summary>
        /// <param name="strVacName"></param>
        /// <param name="strVacYear"></param>
        /// <param name="strCountyType"></param>
        /// <param name="strSortKey"></param>
        /// <returns></returns>
        public static IQueryable <T_FB_COMPANYBUDGETSUMDETAIL> GetAllCompanyBudgetSumDetailRdListByMultSearch(string strFilter, List <object> objArgs, string strSortKey)
        {
            CompanyBudgetSumDetailDAL dalCompanyBudgetSumDetail = new CompanyBudgetSumDetailDAL();
            string strOrderBy = string.Empty;

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

            var q = dalCompanyBudgetSumDetail.GetCompanyBudgetSumDetailRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray());

            return(q);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 获取T_FB_COMPANYBUDGETSUMDETAIL信息
        /// </summary>
        /// <param name="strCompanyBudgetSumDetailId">主键索引</param>
        /// <returns></returns>
        public T_FB_COMPANYBUDGETSUMDETAIL GetCompanyBudgetSumDetailByID(string strCompanyBudgetSumDetailId)
        {
            if (string.IsNullOrEmpty(strCompanyBudgetSumDetailId))
            {
                return null;
            }

            CompanyBudgetSumDetailDAL dalCompanyBudgetSumDetail = new CompanyBudgetSumDetailDAL();
            StringBuilder strFilter = new StringBuilder();
            List<string> objArgs = new List<string>();
            
            if (!string.IsNullOrEmpty(strCompanyBudgetSumDetailId))
            {
                strFilter.Append(" COMPANYBUDGETSUMDETAILID == @0");
                objArgs.Add(strCompanyBudgetSumDetailId);
            }

            T_FB_COMPANYBUDGETSUMDETAIL entRd = dalCompanyBudgetSumDetail.GetCompanyBudgetSumDetailRdByMultSearch(strFilter.ToString(), objArgs.ToArray());
            return entRd;
        }
Exemplo n.º 4
0
        /// <summary>
        /// 获取T_FB_COMPANYBUDGETSUMDETAIL信息
        /// </summary>
        /// <param name="strCompanyBudgetSumDetailId">主键索引</param>
        /// <returns></returns>
        public T_FB_COMPANYBUDGETSUMDETAIL GetCompanyBudgetSumDetailByID(string strCompanyBudgetSumDetailId)
        {
            if (string.IsNullOrEmpty(strCompanyBudgetSumDetailId))
            {
                return(null);
            }

            CompanyBudgetSumDetailDAL dalCompanyBudgetSumDetail = new CompanyBudgetSumDetailDAL();
            StringBuilder             strFilter = new StringBuilder();
            List <string>             objArgs   = new List <string>();

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

            T_FB_COMPANYBUDGETSUMDETAIL entRd = dalCompanyBudgetSumDetail.GetCompanyBudgetSumDetailRdByMultSearch(strFilter.ToString(), objArgs.ToArray());

            return(entRd);
        }