コード例 #1
0
        public CustomerAccountsVo GetCustomerPropertyAccount(int accountId)
        {
            CustomerAccountsVo customerAccountVo  = new CustomerAccountsVo();
            CustomerAccountDao customerAccountDao = new CustomerAccountDao();

            try
            {
                customerAccountVo = customerAccountDao.GetCustomerPropertyAccount(accountId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "CustomerAccountBo.cs:GetCustomerPropertyAccount()");
                object[] objects = new object[1];
                objects[0]   = accountId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }

            return(customerAccountVo);
        }