Exemplo n.º 1
0
        //Retrieve all the member customers Net Holdings for Group Dashboard
        public DataSet GetGrpAssetNetHoldings(int CustomerId)
        {
            AssetDao assetDao = new AssetDao();
            DataSet  grpNetHoldings;

            try
            {
                grpNetHoldings = assetDao.GetGrpAssetNetHoldings(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:GetGrpAssetNetHoldings()");

                object[] objects = new object[1];
                objects[0] = CustomerId;

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

            return(grpNetHoldings);
        }