예제 #1
0
        public Item(Worker.Books.Addition.Details d)
        {
            if (!d._isExist)
            {
                return;
            }

            this.AdditionId = d.AdditionId;

            this.Name        = d.Name;
            this.Description = d.Description;

            this._isExist = true;
        }
예제 #2
0
        public EditAddition(Guid additionId)
        {
            var b = new Worker.Books.Addition.Details(additionId);

            this._isExist = b._isExist;
            if (!b._isExist)
            {
                return;
            }

            this.AdditionId = b.AdditionId;
            this.TimeStamp  = b.TimeStamp;

            this.Description = b.Description;

            this.DocumentId = b.DocumentId;
        }