public virtual PicklistItemStateCreatedDto NewPicklistItemStateCreated(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId) { var e = new PicklistItemStateCreatedDto(); var eId = NewPicklistItemEventId(picklistItemOrderShipGrpInvId); e.PicklistItemEventId = eId; return(e); }
public virtual PicklistItemStateCreatedDto ToPicklistItemStateCreatedDto(IPicklistItemStateCreated e) { var dto = new PicklistItemStateCreatedDto(); dto.PicklistItemEventId = e.PicklistItemEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.Version = e.Version; dto.CommandId = e.CommandId; dto.ItemStatusId = e.ItemStatusId; dto.Quantity = e.Quantity; dto.Active = e.Active; return(dto); }
public virtual PicklistBinStateCreatedDto ToPicklistBinStateCreatedDto(IPicklistBinStateCreated e) { var dto = new PicklistBinStateCreatedDto(); dto.PicklistBinEventId = e.PicklistBinEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.CommandId = e.CommandId; dto.PicklistId = e.PicklistId; dto.BinLocationNumber = e.BinLocationNumber; dto.PrimaryOrderId = e.PrimaryOrderId; dto.PrimaryShipGroupSeqId = e.PrimaryShipGroupSeqId; dto.Active = e.Active; var picklistItemEvents = new List <PicklistItemStateCreatedDto>(); foreach (var ee in e.PicklistItemEvents) { PicklistItemStateCreatedDto eeDto = PicklistItemStateEventDtoConverter.ToPicklistItemStateCreatedDto(ee); picklistItemEvents.Add(eeDto); } dto.PicklistItemEvents = picklistItemEvents.ToArray(); return(dto); }