Exemplo n.º 1
0
        //TO get Customer MF and EQ values for each RM in RM Dashboard
        public DataSet GetRMCustomersAssetAggregateCurrentValues(int RMId, int agentId, string usertype)
        {
            AssetDao assetDao = new AssetDao();
            DataSet  aggrCurrentValues;

            try
            {
                aggrCurrentValues = assetDao.GetRMCustomersAssetAggregateCurrentValues(RMId, agentId, usertype);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "AssetBo.cs:GetRMCustomersAssetAggregateCurrentValues()");


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

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

            return(aggrCurrentValues);
        }