예제 #1
0
        /// <summary>
        /// Function calling the DAO function to get the Top 5 Asset Maturity Dates of a Group
        /// </summary>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public DataSet GetGrpAssetMaturityDates(int customerId)
        {
            AssetDao assetDao = new AssetDao();
            DataSet  getGrpAssetMaturityDatesDs;

            try
            {
                getGrpAssetMaturityDatesDs = assetDao.GetGrpAssetMaturityDates(customerId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "AssetBo.cs:GetGrpAssetMaturityDates()");
                object[] objects = new object[1];
                objects[0]   = customerId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(getGrpAssetMaturityDatesDs);
        }