Esempio n. 1
0
        protected virtual IInOutLineStateCreated MapCreate(ICreateInOutLine c, IInOutCommand outerCommand, long version, IInOutState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId         = new InOutLineStateEventId(c.InOutDocumentNumber, c.LineNumber, version);
            IInOutLineStateCreated e = NewInOutLineStateCreated(stateEventId);
            var s = outerState.InOutLines.Get(c.LineNumber, true);

            e.Description            = c.Description;
            e.LocatorId              = c.LocatorId;
            e.ProductId              = c.ProductId;
            e.UomId                  = c.UomId;
            e.MovementQuantity       = c.MovementQuantity;
            e.ConfirmedQuantity      = c.ConfirmedQuantity;
            e.ScrappedQuantity       = c.ScrappedQuantity;
            e.TargetQuantity         = c.TargetQuantity;
            e.PickedQuantity         = c.PickedQuantity;
            e.IsInvoiced             = c.IsInvoiced;
            e.AttributeSetInstanceId = c.AttributeSetInstanceId;
            e.IsDescription          = c.IsDescription;
            e.Processed              = c.Processed;
            e.QuantityEntered        = c.QuantityEntered;
            e.RmaLineNumber          = c.RmaLineNumber;
            e.ReversalLineNumber     = c.ReversalLineNumber;
            e.Active                 = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;
            return(e);
        }// END Map(ICreate... ////////////////////////////
 public InOutLineStateEventIdDtoWrapper(InOutLineStateEventId val)
 {
     if (val == null)
     {
         throw new ArgumentNullException("val");
     }
     this._value = val;
 }
Esempio n. 3
0
        public virtual InOutLineStateEventId ToInOutLineStateEventId()
        {
            InOutLineStateEventId v = new InOutLineStateEventId();

            v.InOutDocumentNumber = this.InOutDocumentNumber;
            v.LineNumber          = this.LineNumber;
            v.InOutVersion        = this.InOutVersion;
            return(v);
        }
Esempio n. 4
0
        }// END Map(IMergePatch... ////////////////////////////

        protected virtual IInOutLineStateRemoved MapRemove(IRemoveInOutLine c, IInOutCommand outerCommand, long version)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId         = new InOutLineStateEventId(c.InOutDocumentNumber, c.LineNumber, version);
            IInOutLineStateRemoved e = NewInOutLineStateRemoved(stateEventId);


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;

            return(e);
        }// END Map(IRemove... ////////////////////////////
Esempio n. 5
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            InOutLineStateEventId other = obj as InOutLineStateEventId;

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

            return(true &&
                   Object.Equals(this.InOutDocumentNumber, other.InOutDocumentNumber) &&
                   Object.Equals(this.LineNumber, other.LineNumber) &&
                   Object.Equals(this.InOutVersion, other.InOutVersion)
                   );
        }
Esempio n. 6
0
 private InOutLineStateRemoved NewInOutLineStateRemoved(InOutLineStateEventId stateEventId)
 {
     return(new InOutLineStateRemoved(stateEventId));
 }
Esempio n. 7
0
 private InOutLineStateMergePatched NewInOutLineStateMergePatched(InOutLineStateEventId stateEventId)
 {
     return(new InOutLineStateMergePatched(stateEventId));
 }
Esempio n. 8
0
 public InOutLineStateRemoved(InOutLineStateEventId stateEventId) : base(stateEventId)
 {
 }
Esempio n. 9
0
 public InOutLineStateMergePatched(InOutLineStateEventId stateEventId) : base(stateEventId)
 {
 }
Esempio n. 10
0
 public InOutLineStateCreated(InOutLineStateEventId stateEventId) : base(stateEventId)
 {
 }
Esempio n. 11
0
 protected InOutLineStateEventBase(InOutLineStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
Esempio n. 12
0
 public InOutLineStateEventIdFlattenedDto(InOutLineStateEventId val)
 {
     this._value = new InOutLineStateEventIdDtoWrapper(val);
 }
Esempio n. 13
0
        protected InOutLineStateEventId NewInOutLineStateEventId(long lineNumber)
        {
            var stateEventId = new InOutLineStateEventId(this.StateEventId.DocumentNumber, lineNumber, this.StateEventId.Version);

            return(stateEventId);
        }