Ejemplo n.º 1
0
        private InventoryItemRequirementEntryEventId NewInventoryItemRequirementEntryEventId(long entrySeqId)
        {
            var eId = new InventoryItemRequirementEntryEventId();

            eId.InventoryItemRequirementId = this.InventoryItemRequirementEventId.InventoryItemRequirementId;
            eId.EntrySeqId = entrySeqId;
            eId.InventoryItemRequirementVersion = this.InventoryItemRequirementEventId.Version;
            return(eId);
        }
Ejemplo n.º 2
0
        protected virtual IInventoryItemRequirementEntryStateCreated MapCreate(ICreateInventoryItemRequirementEntry c, IInventoryItemRequirementCommand outerCommand, long version, IInventoryItemRequirementState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new InventoryItemRequirementEntryEventId(c.InventoryItemRequirementId, c.EntrySeqId, version);
            IInventoryItemRequirementEntryStateCreated e = NewInventoryItemRequirementEntryStateCreated(stateEventId);
            var s = outerState.Entries.Get(c.EntrySeqId, true);

            e.Quantity      = c.Quantity;
            e.SourceEventId = c.SourceEventId;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
Ejemplo n.º 3
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            InventoryItemRequirementEntryEventId other = obj as InventoryItemRequirementEntryEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.InventoryItemRequirementId, other.InventoryItemRequirementId) &&
                   Object.Equals(this.EntrySeqId, other.EntrySeqId) &&
                   Object.Equals(this.InventoryItemRequirementVersion, other.InventoryItemRequirementVersion)
                   );
        }
Ejemplo n.º 4
0
        protected InventoryItemRequirementEntryEventId NewInventoryItemRequirementEntryEventId(long entrySeqId)
        {
            var stateEventId = new InventoryItemRequirementEntryEventId(this.InventoryItemRequirementEventId.InventoryItemRequirementId, entrySeqId, this.InventoryItemRequirementEventId.Version);

            return(stateEventId);
        }
Ejemplo n.º 5
0
 private InventoryItemRequirementEntryStateCreated NewInventoryItemRequirementEntryStateCreated(InventoryItemRequirementEntryEventId stateEventId)
 {
     return(new InventoryItemRequirementEntryStateCreated(stateEventId));
 }
Ejemplo n.º 6
0
 public InventoryItemRequirementEntryStateCreated(InventoryItemRequirementEntryEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 7
0
 protected InventoryItemRequirementEntryStateEventBase(InventoryItemRequirementEntryEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 8
0
 protected InventoryItemRequirementEntryEventBase(InventoryItemRequirementEntryEventId stateEventId) : this(new InventoryItemRequirementEntryState())
 {
     this.InventoryItemRequirementEntryEventId = stateEventId;
 }
 protected InventoryItemRequirementEntryStateEventDtoBase(InventoryItemRequirementEntryEventId stateEventId)
 {
     this.InventoryItemRequirementEntryEventId = stateEventId;
 }