示例#1
0
        protected virtual IPicklistRoleMvoStateCreated Map(ICreatePicklistRoleMvo c)
        {
            var stateEventId = new PicklistRoleMvoEventId(c.PicklistRoleId, c.PicklistVersion);
            IPicklistRoleMvoStateCreated e = NewPicklistRoleMvoStateCreated(stateEventId);

            e.Version                      = c.Version;
            e.Active                       = c.Active;
            e.PicklistDescription          = c.PicklistDescription;
            e.PicklistFacilityId           = c.PicklistFacilityId;
            e.PicklistShipmentMethodTypeId = c.PicklistShipmentMethodTypeId;
            e.PicklistStatusId             = c.PicklistStatusId;
            e.PicklistPicklistDate         = c.PicklistPicklistDate;
            e.PicklistPickwaveId           = c.PicklistPickwaveId;
            e.PicklistCreatedBy            = c.PicklistCreatedBy;
            e.PicklistCreatedAt            = c.PicklistCreatedAt;
            e.PicklistUpdatedBy            = c.PicklistUpdatedBy;
            e.PicklistUpdatedAt            = c.PicklistUpdatedAt;
            e.PicklistActive               = c.PicklistActive;
            e.PicklistDeleted              = c.PicklistDeleted;
            e.CommandId                    = c.CommandId;


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


            return(e);
        }
示例#2
0
        protected PicklistRoleMvoStateDeleted NewPicklistRoleMvoStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new PicklistRoleMvoEventId(_state.PicklistRoleId, version);
            var e            = NewPicklistRoleMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

            e.CreatedByUserLogin = (string)requesterId;
            e.CreatedAt          = ApplicationContext.Current.TimestampService.Now <DateTime>();

            return(e);
        }
示例#3
0
        protected virtual IPicklistRoleMvoStateDeleted Map(IDeletePicklistRoleMvo c)
        {
            var stateEventId = new PicklistRoleMvoEventId(c.PicklistRoleId, c.PicklistVersion);
            IPicklistRoleMvoStateDeleted e = NewPicklistRoleMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
示例#4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            PicklistRoleMvoEventId other = obj as PicklistRoleMvoEventId;

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

            return(true &&
                   Object.Equals(this.PicklistRoleId, other.PicklistRoleId) &&
                   Object.Equals(this.PicklistVersion, other.PicklistVersion)
                   );
        }
 protected PicklistRoleMvoStateEventDtoBase(PicklistRoleMvoEventId stateEventId)
 {
     this.PicklistRoleMvoEventId = stateEventId;
 }
示例#6
0
 public PicklistRoleMvoStateDeleted(PicklistRoleMvoEventId stateEventId) : base(stateEventId)
 {
 }
示例#7
0
 public PicklistRoleMvoStateMergePatched(PicklistRoleMvoEventId stateEventId) : base(stateEventId)
 {
 }
示例#8
0
 protected PicklistRoleMvoStateEventBase(PicklistRoleMvoEventId stateEventId) : base(stateEventId)
 {
 }
示例#9
0
 private PicklistRoleMvoStateDeleted NewPicklistRoleMvoStateDeleted(PicklistRoleMvoEventId stateEventId)
 {
     return(new PicklistRoleMvoStateDeleted(stateEventId));
 }
示例#10
0
 private PicklistRoleMvoStateMergePatched NewPicklistRoleMvoStateMergePatched(PicklistRoleMvoEventId stateEventId)
 {
     return(new PicklistRoleMvoStateMergePatched(stateEventId));
 }