Beispiel #1
0
        public virtual PayItemInfo CancelLock(PayItemInfo entity)
        {
            PayableInfo payableInfo = null;
            var         payItemInfo = PreCheckForCancelLock(entity, out payableInfo);

            TransactionOptions options = new TransactionOptions();

            options.IsolationLevel = System.Transactions.IsolationLevel.ReadCommitted;
            options.Timeout        = TransactionManager.DefaultTimeout;
            using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, options))
            {
                payItemInfo.Status = PayItemStatus.Origin;
                //item.EditUser = entity.EditUser;
                payItemInfo = PayItemBizProcessor.UpdateStatusAndEditUser(payItemInfo);

                scope.Complete();
            }
            return(payItemInfo);
        }