Пример #1
0
        public virtual void UpdateAccountPeriodInfo(AccountPeriodInfo entity)
        {
            da.UpdateAccountPeriodInfo(entity);

            ExternalDomainBroker.CreateOperationLog("SetCreditLimit Customer"
                                                    , BizLogType.Basic_Customer_SetCreditLimit
                                                    , entity.CustomerSysNo.Value
                                                    , "8601");
        }
Пример #2
0
        public virtual void Adjust(BizEntity.Customer.CustomerPrepayLog adjustInfo)
        {
            CustomerInfo original = ObjectFactory <CustomerProcessor> .Instance.GetCsutomerDeatilInfo(adjustInfo.CustomerSysNo.Value);

            using (TransactionScope tran = new TransactionScope())
            {
                //1.更新余额
                ObjectFactory <IPrepayDA> .Instance.UpdatePrepay(adjustInfo.CustomerSysNo.Value, adjustInfo.AdjustAmount.Value);

                //2.记录业务日志
                ObjectFactory <IPrepayDA> .Instance.CreatePrepayLog(adjustInfo);

                //3.记录操作日志
                ExternalDomainBroker.CreateOperationLog(string.Format(ResouceManager.GetMessageString("Customer.CustomerInfo", "UpdateValidPrepayAmt"), original.ValidPrepayAmt, original.ValidPrepayAmt + adjustInfo.AdjustAmount), BizEntity.Common.BizLogType.Basic_Customer_Update, adjustInfo.SOSysNo.Value, original.CompanyCode);
                tran.Complete();
            }
        }