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

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

            try
            {
                var q = dalChargeApplyDetail.GetChargeApplyDetailRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray());
                return(q);
            }
            catch (Exception ex)
            {
                string ErrInfo = new ChargeApplyDetailBLL().GetType().ToString() + ":GetAllChargeApplyDetailRdListByMultSearch," + System.DateTime.Now.ToString() + "," + ex.Message;
                Tracer.Debug(ErrInfo);
            }
            return(null);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取T_FB_CHARGEAPPLYDETAIL信息
        /// </summary>
        /// <param name="strChargeApplyDetailId">主键索引</param>
        /// <returns></returns>
        public T_FB_CHARGEAPPLYDETAIL GetChargeApplyDetailByID(string strChargeApplyDetailId)
        {
            if (string.IsNullOrEmpty(strChargeApplyDetailId))
            {
                return(null);
            }

            ChargeApplyDetailDAL dalChargeApplyDetail = new ChargeApplyDetailDAL();
            StringBuilder        strFilter            = new StringBuilder();
            List <string>        objArgs = new List <string>();

            if (!string.IsNullOrEmpty(strChargeApplyDetailId))
            {
                strFilter.Append(" CHARGEAPPLYDETAILID == @0");
                objArgs.Add(strChargeApplyDetailId);
            }
            T_FB_CHARGEAPPLYDETAIL entRd = new T_FB_CHARGEAPPLYDETAIL();

            try
            {
                entRd = dalChargeApplyDetail.GetChargeApplyDetailRdByMultSearch(strFilter.ToString(), objArgs.ToArray());
            }
            catch (Exception ex)
            {
                string ErrInfo = this.GetType().ToString() + ":GetChargeApplyDetailByID," + System.DateTime.Now.ToString() + "," + ex.Message;
                Tracer.Debug(ErrInfo);
            }
            return(entRd);
        }