コード例 #1
0
////////////////////////

        protected AttributeSetInstanceStateCreated NewAttributeSetInstanceStateCreated(long version, string commandId, string requesterId)
        {
            var stateEventId = new AttributeSetInstanceEventId(_state.AttributeSetInstanceId, version);
            var e            = NewAttributeSetInstanceStateCreated(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            AttributeSetInstanceEventId other = obj as AttributeSetInstanceEventId;

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

            return(true &&
                   Object.Equals(this.AttributeSetInstanceId, other.AttributeSetInstanceId) &&
                   Object.Equals(this.Version, other.Version)
                   );
        }
コード例 #3
0
 public AttributeSetInstanceStateCreated(AttributeSetInstanceEventId stateEventId) : base(stateEventId)
 {
 }
コード例 #4
0
 protected AttributeSetInstanceStateEventBase(AttributeSetInstanceEventId stateEventId) : base(stateEventId)
 {
 }
コード例 #5
0
 protected AttributeSetInstanceEventBase(AttributeSetInstanceEventId stateEventId) : this(new AttributeSetInstanceState())
 {
     this.AttributeSetInstanceEventId = stateEventId;
 }
コード例 #6
0
 protected AttributeSetInstanceStateEventDtoBase(AttributeSetInstanceEventId stateEventId)
 {
     this.AttributeSetInstanceEventId = stateEventId;
 }
コード例 #7
0
        protected virtual IAttributeSetInstanceStateCreated Map(ICreateAttributeSetInstance c)
        {
            var stateEventId = new AttributeSetInstanceEventId(c.AttributeSetInstanceId, c.Version);
            IAttributeSetInstanceStateCreated e = NewAttributeSetInstanceStateCreated(stateEventId);

            e.AttributeSetId  = c.AttributeSetId;
            e.OrganizationId  = c.OrganizationId;
            e.ReferenceId     = c.ReferenceId;
            e.SerialNumber    = c.SerialNumber;
            e.LotId           = c.LotId;
            e.StatusIds       = c.StatusIds;
            e.ImageUrl        = c.ImageUrl;
            e.Description     = c.Description;
            e.Hash            = c.Hash;
            e.WidthInch       = c.WidthInch;
            e.DiameterInch    = c.DiameterInch;
            e.WeightLbs       = c.WeightLbs;
            e.WeightKg        = c.WeightKg;
            e.AirDryWeightLbs = c.AirDryWeightLbs;
            e.AirDryWeightKg  = c.AirDryWeightKg;
            e.AirDryMetricTon = c.AirDryMetricTon;
            e.RollCnt         = c.RollCnt;
            e.AirDryPct       = c.AirDryPct;
            e._F_B_0_         = c._F_B_0_;
            e._F_I_0_         = c._F_I_0_;
            e._F_L_0_         = c._F_L_0_;
            e._F_DT_0_        = c._F_DT_0_;
            e._F_N_0_         = c._F_N_0_;
            e._F_C5_0_        = c._F_C5_0_;
            e._F_C10_0_       = c._F_C10_0_;
            e._F_C20_0_       = c._F_C20_0_;
            e._F_C50_0_       = c._F_C50_0_;
            e._F_C100_0_      = c._F_C100_0_;
            e._F_C200_0_      = c._F_C200_0_;
            e._F_C500_0_      = c._F_C500_0_;
            e._F_C1000_0_     = c._F_C1000_0_;
            e._F_B_1_         = c._F_B_1_;
            e._F_I_1_         = c._F_I_1_;
            e._F_L_1_         = c._F_L_1_;
            e._F_DT_1_        = c._F_DT_1_;
            e._F_N_1_         = c._F_N_1_;
            e._F_C5_1_        = c._F_C5_1_;
            e._F_C10_1_       = c._F_C10_1_;
            e._F_C20_1_       = c._F_C20_1_;
            e._F_C50_1_       = c._F_C50_1_;
            e._F_C100_1_      = c._F_C100_1_;
            e._F_C200_1_      = c._F_C200_1_;
            e._F_B_2_         = c._F_B_2_;
            e._F_I_2_         = c._F_I_2_;
            e._F_L_2_         = c._F_L_2_;
            e._F_DT_2_        = c._F_DT_2_;
            e._F_N_2_         = c._F_N_2_;
            e._F_C5_2_        = c._F_C5_2_;
            e._F_C10_2_       = c._F_C10_2_;
            e._F_C20_2_       = c._F_C20_2_;
            e._F_C50_2_       = c._F_C50_2_;
            e._F_B_3_         = c._F_B_3_;
            e._F_I_3_         = c._F_I_3_;
            e._F_L_3_         = c._F_L_3_;
            e._F_DT_3_        = c._F_DT_3_;
            e._F_N_3_         = c._F_N_3_;
            e._F_C5_3_        = c._F_C5_3_;
            e._F_C10_3_       = c._F_C10_3_;
            e._F_C20_3_       = c._F_C20_3_;
            e._F_C50_3_       = c._F_C50_3_;
            e._F_B_4_         = c._F_B_4_;
            e._F_I_4_         = c._F_I_4_;
            e._F_L_4_         = c._F_L_4_;
            e._F_DT_4_        = c._F_DT_4_;
            e._F_N_4_         = c._F_N_4_;
            e._F_C5_4_        = c._F_C5_4_;
            e._F_C10_4_       = c._F_C10_4_;
            e._F_C20_4_       = c._F_C20_4_;
            e._F_C50_4_       = c._F_C50_4_;
            e.Active          = c.Active;
            e.CommandId       = c.CommandId;


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


            return(e);
        }
コード例 #8
0
////////////////////////

        private AttributeSetInstanceStateCreated NewAttributeSetInstanceStateCreated(AttributeSetInstanceEventId stateEventId)
        {
            return(new AttributeSetInstanceStateCreated(stateEventId));
        }