示例#1
0
        public virtual PicklistItemStateRemovedDto NewPicklistItemStateRemoved(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
        {
            var e   = new PicklistItemStateRemovedDto();
            var eId = NewPicklistItemEventId(picklistItemOrderShipGrpInvId);

            e.PicklistItemEventId = eId;
            return(e);
        }
        public virtual PicklistItemStateRemovedDto ToPicklistItemStateRemovedDto(IPicklistItemStateRemoved e)
        {
            var dto = new PicklistItemStateRemovedDto();

            dto.PicklistItemEventId = e.PicklistItemEventId;
            dto.CreatedAt           = e.CreatedAt;
            dto.CreatedBy           = e.CreatedBy;
            dto.Version             = e.Version;
            dto.CommandId           = e.CommandId;

            return(dto);
        }
        public virtual PicklistBinStateDeletedDto ToPicklistBinStateDeletedDto(IPicklistBinStateDeleted e)
        {
            var dto = new PicklistBinStateDeletedDto();

            dto.PicklistBinEventId = e.PicklistBinEventId;
            dto.CreatedAt          = e.CreatedAt;
            dto.CreatedBy          = e.CreatedBy;
            dto.CommandId          = e.CommandId;
            var picklistItemEvents = new List <PicklistItemStateRemovedDto>();

            foreach (var ee in e.PicklistItemEvents)
            {
                PicklistItemStateRemovedDto eeDto = PicklistItemStateEventDtoConverter.ToPicklistItemStateRemovedDto(ee);
                picklistItemEvents.Add(eeDto);
            }
            dto.PicklistItemEvents = picklistItemEvents.ToArray();


            return(dto);
        }