Ejemplo n.º 1
0
        private PicklistItemEventId NewPicklistItemEventId(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
        {
            var eId = new PicklistItemEventId();

            eId.PicklistBinId = this.PicklistBinEventId.PicklistBinId;
            eId.PicklistItemOrderShipGrpInvId = picklistItemOrderShipGrpInvId;
            eId.PicklistBinVersion            = this.PicklistBinEventId.Version;
            return(eId);
        }
Ejemplo n.º 2
0
        }// END Map(IMergePatch... ////////////////////////////

        protected virtual IPicklistItemStateRemoved MapRemove(IRemovePicklistItem c, IPicklistBinCommand outerCommand, long version)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId            = new PicklistItemEventId(c.PicklistBinId, c.PicklistItemOrderShipGrpInvId, version);
            IPicklistItemStateRemoved e = NewPicklistItemStateRemoved(stateEventId);


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            return(e);
        }// END Map(IRemove... ////////////////////////////
Ejemplo n.º 3
0
        protected virtual IPicklistItemStateCreated MapCreate(ICreatePicklistItem c, IPicklistBinCommand outerCommand, long version, IPicklistBinState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId            = new PicklistItemEventId(c.PicklistBinId, c.PicklistItemOrderShipGrpInvId, version);
            IPicklistItemStateCreated e = NewPicklistItemStateCreated(stateEventId);
            var s = outerState.PicklistItems.Get(c.PicklistItemOrderShipGrpInvId, true);

            e.ItemStatusId = c.ItemStatusId;
            e.Quantity     = c.Quantity;
            e.Active       = c.Active;

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

            PicklistItemEventId other = obj as PicklistItemEventId;

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

            return(true &&
                   Object.Equals(this.PicklistBinId, other.PicklistBinId) &&
                   Object.Equals(this.PicklistItemOrderShipGrpInvId, other.PicklistItemOrderShipGrpInvId) &&
                   Object.Equals(this.PicklistBinVersion, other.PicklistBinVersion)
                   );
        }
Ejemplo n.º 5
0
        protected PicklistItemEventId NewPicklistItemEventId(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
        {
            var stateEventId = new PicklistItemEventId(this.PicklistBinEventId.PicklistBinId, picklistItemOrderShipGrpInvId, this.PicklistBinEventId.Version);

            return(stateEventId);
        }
Ejemplo n.º 6
0
 private PicklistItemStateRemoved NewPicklistItemStateRemoved(PicklistItemEventId stateEventId)
 {
     return(new PicklistItemStateRemoved(stateEventId));
 }
Ejemplo n.º 7
0
 private PicklistItemStateMergePatched NewPicklistItemStateMergePatched(PicklistItemEventId stateEventId)
 {
     return(new PicklistItemStateMergePatched(stateEventId));
 }
Ejemplo n.º 8
0
 protected PicklistItemEventBase(PicklistItemEventId stateEventId)
 {
     this.PicklistItemEventId = stateEventId;
 }
Ejemplo n.º 9
0
 public PicklistItemStateRemoved(PicklistItemEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 10
0
 public PicklistItemStateMergePatched(PicklistItemEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 11
0
 public PicklistItemStateCreated(PicklistItemEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 12
0
 protected PicklistItemStateEventBase(PicklistItemEventId stateEventId) : base(stateEventId)
 {
 }