示例#1
0
        protected void BaseConstructor(Application applicationReference, Server.Application.Entity serverEntity)
        {
            base.BaseConstructor(applicationReference, serverEntity);


            entityType = serverEntity.EntityType;


            nameLast = serverEntity.NameLast;

            nameFirst = serverEntity.NameFirst;

            nameMiddle = serverEntity.NameMiddle;

            namePrefix = serverEntity.NamePrefix;

            nameSuffix = serverEntity.NameSuffix;


            federalTaxId = serverEntity.FederalTaxId;

            idCodeQualifier = serverEntity.IdCodeQualifier;

            uniqueId = serverEntity.UniqueId;


            return;
        }
示例#2
0
        private void FormConstructor(Mercury.Client.Application applicationReference, Server.Application.Form serverForm)
        {
            Application = applicationReference;

            BaseConstructor(null, serverForm);

            ControlType = Server.Application.FormControlType.Form;

            formId = serverForm.FormId;

            entityFormId = serverForm.EntityFormId;

            formType = serverForm.FormType;

            description = serverForm.Description;

            entityType = serverForm.EntityType;

            entityObjectId = serverForm.EntityObjectId;

            orientation = serverForm.Orientation;

            paperSize = serverForm.PaperSize;

            eventResults = new List <EventResult> ();

            if (serverForm.EventResults != null)
            {
                foreach (Server.Application.FormControlEventResult currentServerEventResult in serverForm.EventResults)
                {
                    EventResult clientEventResult = new EventResult(Application, currentServerEventResult);

                    eventResults.Add(clientEventResult);
                }
            }

            CreateAccountInfo = serverForm.CreateAccountInfo;

            ModifiedAccountInfo = serverForm.ModifiedAccountInfo;

            Controls.Clear();

            foreach (Server.Application.FormControl currentServerControl in serverForm.Controls)
            {
                if (currentServerControl.ControlType == Server.Application.FormControlType.Section)
                {
                    Controls.Add(new Controls.Section(Application, this, (Server.Application.FormControlSection)currentServerControl));
                }
            }

            return;
        }
示例#3
0
        private void InitializeEntityObjectInformation(Server.Application.EntityType entityType, Int64 entityObjectId)
        {
            switch (entityType)
            {
            case Mercury.Server.Application.EntityType.Member: InitializeMemberInformation(entityObjectId); break;

            case Mercury.Server.Application.EntityType.Provider: InitializeProviderInformation(entityObjectId); break;

            default: throw new ApplicationException("[Workflow.aspx:InitializeEntityObjectInformation] Not Implemented: " + entityType.ToString());
            }

            return;
        }
示例#4
0
        protected void BaseConstructor(Application applicationReference, Server.Application.Workflow serverWorkflow)
        {
            base.BaseConstructor(applicationReference, serverWorkflow);


            framework = serverWorkflow.Framework;


            entityType = serverWorkflow.EntityType;

            actionVerb = serverWorkflow.ActionVerb;

            assemblyPath = serverWorkflow.AssemblyPath;

            assemblyName = serverWorkflow.AssemblyName;

            assemblyClassName = serverWorkflow.AssemblyClassName;


            // MAKE COPY, NOT DIRECT ASSIGNMENT

            workflowParameters = new Dictionary <string, Server.Application.ActionParameter> ();

            foreach (String currentParameterName in serverWorkflow.WorkflowParameters.Keys)
            {
                workflowParameters.Add(currentParameterName, application.CopyActionParameter(serverWorkflow.WorkflowParameters[currentParameterName]));
            }

            // MAKE COPY, NOT DIRECT ASSIGNMENT

            permissions = new List <Server.Application.WorkflowPermission> ();

            foreach (Server.Application.WorkflowPermission currentPermission in serverWorkflow.Permissions)
            {
                permissions.Add(application.CopyWorkflowPermission(currentPermission));
            }

            return;
        }
示例#5
0
        protected void BaseConstructor(Application applicationReference, Server.Application.EntityNote serverEntityNote)
        {
            base.BaseConstructor(applicationReference, serverEntityNote);


            entityId = serverEntityNote.EntityId;

            relatedEntityId = serverEntityNote.RelatedEntityId;

            relatedEntityType = serverEntityNote.RelatedEntityType;

            relatedEntityObjectId = serverEntityNote.RelatedEntityObjectId;

            relatedObjectType = serverEntityNote.RelatedObjectType;

            relatedObjectId = serverEntityNote.RelatedObjectId;


            dataSource = serverEntityNote.DataSource;

            importance = serverEntityNote.Importance;

            noteTypeId = serverEntityNote.NoteTypeId;

            subject = serverEntityNote.Subject;

            effectiveDate = serverEntityNote.EffectiveDate;

            terminationDate = serverEntityNote.TerminationDate;


            contents = new List <Mercury.Server.Application.EntityNoteContent> ();

            contents.AddRange(serverEntityNote.Contents);

            return;
        }