コード例 #1
0
        /// <summary>
        /// 根据条件,获取T_FB_COMPANYBUDGETMODDETAIL信息
        /// </summary>
        /// <param name="strVacName"></param>
        /// <param name="strVacYear"></param>
        /// <param name="strCountyType"></param>
        /// <param name="strSortKey"></param>
        /// <returns></returns>
        public static IQueryable<T_FB_COMPANYBUDGETMODDETAIL> GetAllCompanyBudgetModDetailRdListByMultSearch(string strFilter, List<object> objArgs, string strSortKey)
        {
            CompanyBudgetModDetailDAL dalCompanyBudgetModDetail = new CompanyBudgetModDetailDAL();
            string strOrderBy = string.Empty;

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

            var q = dalCompanyBudgetModDetail.GetCompanyBudgetModDetailRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray());
            return q;
        }
コード例 #2
0
        /// <summary>
        /// 根据条件,获取T_FB_COMPANYBUDGETMODDETAIL信息
        /// </summary>
        /// <param name="strVacName"></param>
        /// <param name="strVacYear"></param>
        /// <param name="strCountyType"></param>
        /// <param name="strSortKey"></param>
        /// <returns></returns>
        public static IQueryable <T_FB_COMPANYBUDGETMODDETAIL> GetAllCompanyBudgetModDetailRdListByMultSearch(string strFilter, List <object> objArgs, string strSortKey)
        {
            CompanyBudgetModDetailDAL dalCompanyBudgetModDetail = new CompanyBudgetModDetailDAL();
            string strOrderBy = string.Empty;

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

            var q = dalCompanyBudgetModDetail.GetCompanyBudgetModDetailRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray());

            return(q);
        }
コード例 #3
0
        /// <summary>
        /// 获取T_FB_COMPANYBUDGETMODDETAIL信息
        /// </summary>
        /// <param name="strCompanyBudgetModDetailId">主键索引</param>
        /// <returns></returns>
        public T_FB_COMPANYBUDGETMODDETAIL GetCompanyBudgetModDetailByID(string strCompanyBudgetModDetailId)
        {
            if (string.IsNullOrEmpty(strCompanyBudgetModDetailId))
            {
                return null;
            }

            CompanyBudgetModDetailDAL dalCompanyBudgetModDetail = new CompanyBudgetModDetailDAL();
            StringBuilder strFilter = new StringBuilder();
            List<string> objArgs = new List<string>();
            
            if (!string.IsNullOrEmpty(strCompanyBudgetModDetailId))
            {
                strFilter.Append(" COMPANYBUDGETMODDETAILID == @0");
                objArgs.Add(strCompanyBudgetModDetailId);
            }

            T_FB_COMPANYBUDGETMODDETAIL entRd = dalCompanyBudgetModDetail.GetCompanyBudgetModDetailRdByMultSearch(strFilter.ToString(), objArgs.ToArray());
            return entRd;
        }
コード例 #4
0
        /// <summary>
        /// 获取T_FB_COMPANYBUDGETMODDETAIL信息
        /// </summary>
        /// <param name="strCompanyBudgetModDetailId">主键索引</param>
        /// <returns></returns>
        public T_FB_COMPANYBUDGETMODDETAIL GetCompanyBudgetModDetailByID(string strCompanyBudgetModDetailId)
        {
            if (string.IsNullOrEmpty(strCompanyBudgetModDetailId))
            {
                return(null);
            }

            CompanyBudgetModDetailDAL dalCompanyBudgetModDetail = new CompanyBudgetModDetailDAL();
            StringBuilder             strFilter = new StringBuilder();
            List <string>             objArgs   = new List <string>();

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

            T_FB_COMPANYBUDGETMODDETAIL entRd = dalCompanyBudgetModDetail.GetCompanyBudgetModDetailRdByMultSearch(strFilter.ToString(), objArgs.ToArray());

            return(entRd);
        }