Exemplo n.º 1
0
        public TransactionShadow(Guid managerId, EnumTransactionType transactionType, string zoneId = "")
        {
            Transaction = new ShadowTransactionEntity();

            Transaction.Idx             = ShareUtil.GenerateComb();
            Transaction.TransactionType = (int)transactionType;

            Transaction.ManagerId  = managerId;
            Transaction.RowTime    = DateTime.Now;
            Transaction.TerminalIP = ShareUtil.GetServerIp();
            Transaction.AppId      = ShareUtil.AppId;
            Shadows     = new List <IShadow>();
            ItemShadows = new List <ItemShadow>();
            _zoneId     = zoneId;
        }