Beispiel #1
0
        /// <summary>
        /// 根据条件查询数据
        /// </summary>
        /// <param name="filter"></param>
        /// <param name="responseEntity"></param>
        public virtual void SearchData(SavingCardChangeFilter filter
                                       , ResponseEntity responseEntity)
        {
            if (filter == null)
            {
                return;
            }

            var reportDetailList = Singleton <GetSavingCardChangeHistoryDAL <SavingCardChangeHistoryViewData> >
                                   .Instance.SearchData(filter);

            if (reportDetailList == null || reportDetailList.Count == 0)
            {
                ServiceUtility.SetResponseStatus(responseEntity, EnumResponseState.NoResult);
                m_Logger.Info("未查询到数据!。");
            }
            else
            {
                SetBranchName(reportDetailList);
                var responseResult = new ResponseListResult <SavingCardChangeHistoryViewData>();
                responseResult.TotalCount = reportDetailList.Count;
                responseResult.LstResult  = reportDetailList;

                ServiceUtility.SetResponseStatus(responseEntity, EnumResponseState.Success);
                responseEntity.Results = responseResult;
            }
        }
        /// <summary>
        /// 程序执行主入口
        /// </summary>
        /// <param name="requestEntity"></param>
        /// <param name="responseEntity"></param>
        protected override void DoExecute(RequestEntity requestEntity, ResponseEntity responseEntity)
        {
            // 定义接收客户端参数的变量
            SavingCardChangeFilter filter
                = ServiceUtility.ConvertToFilterFromDict <SavingCardChangeFilter>(requestEntity.Parameters);

            // 查询储蓄卡历史修改信息
            Singleton <GetSavingCardChangeHistoryBLL> .Instance.SearchData(filter, responseEntity);
        }
        /// <summary>
        /// 程序执行主入口
        /// </summary>
        /// <param name="requestEntity"></param>
        /// <param name="responseEntity"></param>
        protected override void DoExecute(RequestEntity requestEntity, ResponseEntity responseEntity)
        {
            // 定义接收客户端参数的变量
            SavingCardChangeFilter filter
                = ServiceUtility.ConvertToFilterFromDict <SavingCardChangeFilter>(requestEntity.Parameters);

            // 获取出未清贷的业务信息
            Singleton <GetNoCleanLoanBusinessInfoBLL> .Instance.SearchData(filter, responseEntity);
        }
Beispiel #4
0
        /// <summary>
        /// 程序执行主入口
        /// </summary>
        /// <param name="requestEntity"></param>
        /// <param name="responseEntity"></param>
        protected override void DoExecute(RequestEntity requestEntity, ResponseEntity responseEntity)
        {
            // 定义接收客户端参数的变量
            SavingCardChangeFilter filter
                = ServiceUtility.ConvertToFilterFromDict <SavingCardChangeFilter>(requestEntity.Parameters);

            // 获取储蓄卡修改的信息
            Singleton <BaseSearchBLL <SavingCardChangeModifyViewData
                                      , GetSavingCardInfoDAL <SavingCardChangeModifyViewData> > > .Instance.SearchData(filter, responseEntity);
        }
        /// <summary>
        /// 程序执行主入口
        /// </summary>
        /// <param name="requestEntity"></param>
        /// <param name="responseEntity"></param>
        protected override void DoExecute(RequestEntity requestEntity, ResponseEntity responseEntity)
        {
            // 定义接收客户端参数的变量
            SavingCardChangeFilter filter
                = ServiceUtility.ConvertToFilterFromDict <SavingCardChangeFilter>(requestEntity.Parameters);

            // 根据合同号查询业务信息
            Singleton <BaseSearchBLL <SavingCardChangeBusinessViewData
                                      , GetBusinessByContractNoDAL <SavingCardChangeBusinessViewData> > > .Instance.SearchData(filter, responseEntity);
        }
        /// <summary>
        /// 获取检索数据的存储过程参数列表
        /// </summary>
        /// <param name="baseFilter"></param>
        /// <returns></returns>
        protected override IDictionary <string, object> GetSearchSpInParams(BaseFilter baseFilter)
        {
            SavingCardChangeFilter filter = baseFilter as SavingCardChangeFilter;

            if (filter == null)
            {
                return(null);
            }

            IDictionary <string, object> inPutParam = new Dictionary <string, object>();

            inPutParam.Add("@BusinessNo", filter.BusinessId);

            return(inPutParam);
        }
        /// <summary>
        /// 获取检索数据的存储过程参数列表
        /// </summary>
        /// <param name="baseFilter"></param>
        /// <returns></returns>
        protected override IDictionary <string, object> GetSearchSpInParams(BaseFilter baseFilter)
        {
            SavingCardChangeFilter filter = baseFilter as SavingCardChangeFilter;

            if (filter == null)
            {
                return(null);
            }

            IDictionary <string, object> inPutParam = new Dictionary <string, object>();

            if (filter.CustomerName != null)
            {
                inPutParam.Add("@CustomerName", filter.CustomerName);
            }
            if (filter.IdenNO != null)
            {
                inPutParam.Add("@IdenNo", filter.IdenNO);
            }
            if (filter.ContractNo != null)
            {
                inPutParam.Add("@ContractNo", filter.ContractNo);
            }
            if (filter.BusinessId != null)
            {
                inPutParam.Add("@BusinessNo", filter.BusinessId);
            }
            inPutParam.Add("@Type", filter.AuditType);
            inPutParam.Add("@FromIndex", filter.FromIndex);
            inPutParam.Add("@EndIndex", filter.ToIndex);
            if (filter.BranchKeyList != null)
            {
                inPutParam.Add("@BranchKeyList", filter.BranchKeyList);
            }

            return(inPutParam);
        }