예제 #1
0
        public EntityContactInformation CurrentContactInformation(Server.Application.EntityContactType forContactType)
        {
            EntityContactInformation contactInformation = null;

            foreach (EntityContactInformation currentContactInformation in ContactInformations)
            {
                if (currentContactInformation.ContactType == forContactType)
                {
                    if ((DateTime.Today >= currentContactInformation.EffectiveDate) && (DateTime.Today <= currentContactInformation.TerminationDate))
                    {
                        contactInformation = currentContactInformation;

                        break;
                    }
                }
            }

            return(contactInformation);
        }
        protected void BaseConstructor(Application applicationReference, Server.Application.EntityContact serverEntityContact)
        {
            base.BaseConstructor(applicationReference, serverEntityContact);


            entityId = serverEntityContact.EntityId;

            entityContactInformationId = serverEntityContact.EntityContactInformationId;


            relatedEntityId = serverEntityContact.RelatedEntityId;

            relatedObjectType = serverEntityContact.RelatedObjectType;

            relatedObjectId = serverEntityContact.RelatedObjectId;

            scriptEntityFormId = serverEntityContact.ScriptEntityFormId;


            dataSource = serverEntityContact.DataSource;

            contactDate = serverEntityContact.ContactDate;

            direction = serverEntityContact.Direction;

            contactType = serverEntityContact.ContactType;

            successful = serverEntityContact.Successful;

            contactOutcome = serverEntityContact.ContactOutcome;


            contactRegardingId = serverEntityContact.ContactRegardingId;

            regarding = serverEntityContact.Regarding;

            remarks = serverEntityContact.Remarks;

            contactedByName = serverEntityContact.ContactedByName;

            return;
        }
        protected void BaseConstructor(Application applicationReference, Server.Application.EntityContactInformation serverEntityContactInformation)
        {
            base.BaseConstructor(applicationReference, serverEntityContactInformation);


            entityId = serverEntityContactInformation.EntityId;

            contactType = serverEntityContactInformation.ContactType;

            contactSequence = serverEntityContactInformation.ContactSequence;

            number = serverEntityContactInformation.Number;

            numberExtension = serverEntityContactInformation.NumberExtension;

            email = serverEntityContactInformation.Email;

            effectiveDate = serverEntityContactInformation.EffectiveDate;

            terminationDate = serverEntityContactInformation.TerminationDate;


            return;
        }
        protected void BaseConstructor(Application applicationReference, Server.Application.EntityCorrespondence serverEntityCorrespondence)
        {
            base.BaseConstructor(applicationReference, serverEntityCorrespondence);


            entityId = serverEntityCorrespondence.EntityId;


            correspondenceId = serverEntityCorrespondence.CorrespondenceId;

            correspondenceName = serverEntityCorrespondence.CorrespondenceName;

            correspondenceVersion = serverEntityCorrespondence.CorrespondenceVersion;


            entityFormId = serverEntityCorrespondence.EntityFormId;

            relatedEntityId = serverEntityCorrespondence.RelatedEntityId;

            relatedObjectType = serverEntityCorrespondence.RelatedObjectType;

            relatedObjectId = serverEntityCorrespondence.RelatedObjectId;


            readyToSendDate = serverEntityCorrespondence.ReadyToSendDate;

            sentDate = serverEntityCorrespondence.SentDate;

            receivedDate = serverEntityCorrespondence.ReceivedDate;

            returnedDate = serverEntityCorrespondence.ReturnedDate;


            contactType = serverEntityCorrespondence.ContactType;

            entityAddressId = serverEntityCorrespondence.EntityAddressId;

            entityContactInformationId = serverEntityCorrespondence.EntityContactInformationId;


            attention = serverEntityCorrespondence.Attention;

            addressLine1 = serverEntityCorrespondence.AddressLine1;

            addressLine2 = serverEntityCorrespondence.AddressLine2;

            addressCity = serverEntityCorrespondence.AddressCity;

            addressState = serverEntityCorrespondence.AddressState;

            addressZipCode = serverEntityCorrespondence.AddressZipCode;

            addressZipPlus4 = serverEntityCorrespondence.AddressZipPlus4;

            addressPostalCode = serverEntityCorrespondence.AddressPostalCode;


            contactFaxNumber = serverEntityCorrespondence.ContactFaxNumber;

            contactEmail = serverEntityCorrespondence.ContactEmail;

            remarks = serverEntityCorrespondence.Remarks;


            automationId = serverEntityCorrespondence.AutomationId;

            automationStatus = serverEntityCorrespondence.AutomationStatus;

            automationDate = serverEntityCorrespondence.AutomationDate;

            automationException = serverEntityCorrespondence.AutomationException;


            hasImage = serverEntityCorrespondence.HasImage;

            return;
        }