Exemplo n.º 1
0
        private void InitializeEntityInformation(Client.Core.Entity.Entity entity)
        {
            switch (entity.EntityType)
            {
            case Mercury.Server.Application.EntityType.Member:

                WorkQueueItemInformationMember.Style.Clear();

                InitializeMemberInformationByEntityId(entity.Id);

                break;

            case Mercury.Server.Application.EntityType.Provider:

                WorkQueueItemInformationProvider.Style.Clear();

                Client.Core.Provider.Provider provider = MercuryApplication.ProviderGetByEntityId(entity.Id, true);

                if (provider != null)
                {
                    InitializeProviderInformation(provider.Id);
                }

                break;
            }

            return;
        }
Exemplo n.º 2
0
        public ContactEntityEventArgs(Client.Core.Entity.Entity forEntity, Client.Core.Entity.Entity forRelatedEntity, Client.Core.Entity.EntityContact forEntityContact)
        {
            entity = forEntity;

            relatedEntity = forRelatedEntity;

            entityContact = forEntityContact;

            return;
        }
        public SendCorrespondenceEntityEventArgs(Client.Core.Entity.Entity forEntity, Client.Core.Entity.Entity forRelatedEntity, Client.Core.Entity.EntityCorrespondence forEntityCorrespondence)
        {
            entity = forEntity;

            relatedEntity = forRelatedEntity;

            entityCorrespondence = forEntityCorrespondence;

            return;
        }
Exemplo n.º 4
0
        private void InitializeEntityInformation(Int64 entityId)
        {
            Client.Core.Entity.Entity entity = MercuryApplication.EntityGet(entityId, true);

            if (entity == null)
            {
                return;
            }

            InitializeEntityInformation(entity);

            return;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (MercuryApplication == null)
            {
                return;
            }


            MemberDemographicsControl.InstanceId = SessionCachePrefix + "MemberDemographicsControl";

            ProviderDemographicsControl.InstanceId = SessionCachePrefix + "ProviderDemographicsControl";

            EntityDocumentHistoryControl.InstanceId = SessionCachePrefix + "EntityDocumentHistoryControl";

            EntityNoteHistoryControl.InstanceId = SessionCachePrefix + "EntityNoteHistoryControl";


            sendCorrespondenceRequest = (Server.Application.WorkflowUserInteractionRequestSendCorrespondence)WorkflowPage.UserInteractionRequest;

            Entity = new Client.Core.Entity.Entity(MercuryApplication, sendCorrespondenceRequest.Entity);


            if (Entity != null)
            {
                EntitySendCorrespondenceControl.Entity = Entity;

                EntitySendCorrespondenceControl.RelatedEntity = (sendCorrespondenceRequest.RelatedEntity != null) ? new Client.Core.Entity.Entity(MercuryApplication, sendCorrespondenceRequest.RelatedEntity) : null;

                EntitySendCorrespondenceControl.CorrespondenceId = sendCorrespondenceRequest.CorrespondenceId;

                EntitySendCorrespondenceControl.Attention = sendCorrespondenceRequest.Attention;

                EntitySendCorrespondenceControl.AllowAlternateAddress = sendCorrespondenceRequest.AllowAlternateAddress;

                if (sendCorrespondenceRequest.AlternateAddress != null)
                {
                    EntitySendCorrespondenceControl.AlternateAddress = new Mercury.Client.Core.Entity.EntityAddress(MercuryApplication, sendCorrespondenceRequest.AlternateAddress);
                }

                EntitySendCorrespondenceControl.AllowSendByFacsimile = sendCorrespondenceRequest.AllowSendByFacsimile;

                EntitySendCorrespondenceControl.AllowSendByEmail = sendCorrespondenceRequest.AllowSendByEmail;

                EntitySendCorrespondenceControl.AllowSendByInPerson = sendCorrespondenceRequest.AllowSendByInPerson;


                EntitySendCorrespondenceControl.AllowCancel = sendCorrespondenceRequest.AllowCancel;

                EntitySendCorrespondenceControl.AllowUserSelection = sendCorrespondenceRequest.AllowUserSelection;

                EntitySendCorrespondenceControl.AllowHistoricalSendDate = sendCorrespondenceRequest.AllowHistoricalSendDate;

                EntitySendCorrespondenceControl.AllowFutureSendDate = sendCorrespondenceRequest.AllowFutureSendDate;

                EntitySendCorrespondenceControl.SendDate = sendCorrespondenceRequest.SendDate;


                EntitySendCorrespondenceControl.AlternateEmail = sendCorrespondenceRequest.AlternateEmail;

                EntitySendCorrespondenceControl.AlternateFaxNumber = sendCorrespondenceRequest.AlternateFaxNumber;
            }


            if (WorkflowPage != null)
            {
                WorkflowPage.WorkflowAjaxManager.ResponseScripts.Add("setTimeout (\"Workflow_OnPaint ();\", 100);setTimeout (\"UserInteractionSendCorrespondenceEntity_OnPaint ();\", 200);");
            }

            return;
        }