Exemplo n.º 1
0
        public bool UpdatePensionandGratuitiesAccount(CustomerAccountsVo pensionAndGratuitiesAccVo, int userId)
        {
            bool bResult = false;
            PensionAndGratuitiesDao pensionAndGratuitiesDao = new PensionAndGratuitiesDao();

            try
            {
                bResult = pensionAndGratuitiesDao.UpdatePensionandGratuitiesAccount(pensionAndGratuitiesAccVo, userId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "PensionAndGratuitiesBo.cs:UpdatePensionandGratuitiesAccount()");
                object[] objects = new object[2];
                objects[0]   = pensionAndGratuitiesAccVo;
                objects[1]   = userId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }

            return(bResult);
        }
Exemplo n.º 2
0
        public List <PensionAndGratuitiesVo> GetPensionAndGratuitiesList(int portfolioId, int CurrentPage, string SortOrder, out int count)
        {
            List <PensionAndGratuitiesVo> pensionAndGratuitiesList = new List <PensionAndGratuitiesVo>();
            PensionAndGratuitiesDao       pensionAndGratuitiesDao  = new PensionAndGratuitiesDao();

            try
            {
                pensionAndGratuitiesList = pensionAndGratuitiesDao.GetPensionAndGratuitiesList(portfolioId, CurrentPage, SortOrder, out count);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "PensionAndGratuitiesBo.cs:GetPensionAndGratuitiesList()");


                object[] objects = new object[1];
                objects[0]   = portfolioId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(pensionAndGratuitiesList);
        }
Exemplo n.º 3
0
        public PensionAndGratuitiesVo GetPensionAndGratuities(int portfolioId)
        {
            PensionAndGratuitiesDao pensionAndGratuitiesDao = new PensionAndGratuitiesDao();
            PensionAndGratuitiesVo  pensionAndGratuitiesVo  = new PensionAndGratuitiesVo();

            try
            {
                pensionAndGratuitiesVo = pensionAndGratuitiesDao.GetPensionAndGratuities(portfolioId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "PensionAndGratuitiesBo.cs:GetPensionAndGratuities()");


                object[] objects = new object[1];
                objects[0]   = portfolioId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(pensionAndGratuitiesVo);
        }
Exemplo n.º 4
0
        public bool DeletePensionAndGratuitiesPortfolio(int personalId, int accountId)
        {
            bool bResult = false;
            PensionAndGratuitiesDao pensionDao = new PensionAndGratuitiesDao();

            try
            {
                bResult = pensionDao.DeletePensionAndGratuitiesPortfolio(personalId, accountId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "PensionAndGratuitiesBo.cs:DeletePensionAndGratuitiesPortfolio()");
                object[] objects = new object[1];
                objects[0] = personalId;

                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }

            return(bResult);
        }