コード例 #1
0
        public virtual IOrganizationState ToOrganizationState()
        {
            var state = new OrganizationState(true);

            state.PartyId           = this.PartyId;
            state.PartyTypeId       = this.PartyTypeId;
            state.PrimaryRoleTypeId = this.PrimaryRoleTypeId;
            state.OrganizationName  = this.OrganizationName;
            state.Description       = this.Description;
            state.Type = this.Type;
            if (this.IsSummary != null && this.IsSummary.HasValue)
            {
                state.IsSummary = this.IsSummary.Value;
            }
            if (this.Active != null && this.Active.HasValue)
            {
                state.Active = this.Active.Value;
            }
            if (this.Version != null && this.Version.HasValue)
            {
                state.Version = this.Version.Value;
            }
            state.CreatedBy = this.CreatedBy;
            if (this.CreatedAt != null && this.CreatedAt.HasValue)
            {
                state.CreatedAt = this.CreatedAt.Value;
            }
            state.UpdatedBy = this.UpdatedBy;
            if (this.UpdatedAt != null && this.UpdatedAt.HasValue)
            {
                state.UpdatedAt = this.UpdatedAt.Value;
            }

            return(state);
        }
コード例 #2
0
        public virtual IOrganizationState ToOrganizationState()
        {
            var state = new OrganizationState(true);

            state.PartyId                = this.PartyId;
            state.PartyTypeId            = this.PartyTypeId;
            state.PrimaryRoleTypeId      = this.PrimaryRoleTypeId;
            state.ExternalId             = this.ExternalId;
            state.PreferredCurrencyUomId = this.PreferredCurrencyUomId;
            state.Description            = this.Description;
            state.OrganizationName       = this.OrganizationName;
            if (this.IsSummary != null && this.IsSummary.HasValue)
            {
                state.IsSummary = this.IsSummary.Value;
            }
            state.Salutation    = this.Salutation;
            state.FirstName     = this.FirstName;
            state.MiddleName    = this.MiddleName;
            state.LastName      = this.LastName;
            state.PersonalTitle = this.PersonalTitle;
            state.Nickname      = this.Nickname;
            state.CardId        = this.CardId;
            if (this.Active != null && this.Active.HasValue)
            {
                state.Active = this.Active.Value;
            }
            if (this.Version != null && this.Version.HasValue)
            {
                state.Version = this.Version.Value;
            }
            state.CreatedBy = this.CreatedBy;
            if (this.CreatedAt != null && this.CreatedAt.HasValue)
            {
                state.CreatedAt = this.CreatedAt.Value;
            }
            state.UpdatedBy = this.UpdatedBy;
            if (this.UpdatedAt != null && this.UpdatedAt.HasValue)
            {
                state.UpdatedAt = this.UpdatedAt.Value;
            }

            return(state);
        }