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

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

            var q = dalCompanyBudgetSumMaster.GetCompanyBudgetSumMasterRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray());
            return q;
        }
        /// <summary>
        /// 根据条件,获取T_FB_COMPANYBUDGETSUMMASTER信息
        /// </summary>
        /// <param name="strVacName"></param>
        /// <param name="strVacYear"></param>
        /// <param name="strCountyType"></param>
        /// <param name="strSortKey"></param>
        /// <returns></returns>
        public static IQueryable <T_FB_COMPANYBUDGETSUMMASTER> GetAllCompanyBudgetSumMasterRdListByMultSearch(string strFilter, List <object> objArgs, string strSortKey)
        {
            CompanyBudgetSumMasterDAL dalCompanyBudgetSumMaster = new CompanyBudgetSumMasterDAL();
            string strOrderBy = string.Empty;

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

            var q = dalCompanyBudgetSumMaster.GetCompanyBudgetSumMasterRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray());

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

            CompanyBudgetSumMasterDAL dalCompanyBudgetSumMaster = new CompanyBudgetSumMasterDAL();
            StringBuilder strFilter = new StringBuilder();
            List<string> objArgs = new List<string>();
            
            if (!string.IsNullOrEmpty(strCompanyBudgetSumMasterId))
            {
                strFilter.Append(" COMPANYBUDGETSUMMASTERID == @0");
                objArgs.Add(strCompanyBudgetSumMasterId);
            }

            T_FB_COMPANYBUDGETSUMMASTER entRd = dalCompanyBudgetSumMaster.GetCompanyBudgetSumMasterRdByMultSearch(strFilter.ToString(), objArgs.ToArray());
            return entRd;
        }
        /// <summary>
        /// 获取T_FB_COMPANYBUDGETSUMMASTER信息
        /// </summary>
        /// <param name="strCompanyBudgetSumMasterId">主键索引</param>
        /// <returns></returns>
        public T_FB_COMPANYBUDGETSUMMASTER GetCompanyBudgetSumMasterByID(string strCompanyBudgetSumMasterId)
        {
            if (string.IsNullOrEmpty(strCompanyBudgetSumMasterId))
            {
                return(null);
            }

            CompanyBudgetSumMasterDAL dalCompanyBudgetSumMaster = new CompanyBudgetSumMasterDAL();
            StringBuilder             strFilter = new StringBuilder();
            List <string>             objArgs   = new List <string>();

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

            T_FB_COMPANYBUDGETSUMMASTER entRd = dalCompanyBudgetSumMaster.GetCompanyBudgetSumMasterRdByMultSearch(strFilter.ToString(), objArgs.ToArray());

            return(entRd);
        }