Example #1
0
        protected AccountCallQueueSettingEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _account = (AccountEntity)info.GetValue("_account", typeof(AccountEntity));
                if (_account != null)
                {
                    _account.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _callQueue = (CallQueueEntity)info.GetValue("_callQueue", typeof(CallQueueEntity));
                if (_callQueue != null)
                {
                    _callQueue.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _lookup = (LookupEntity)info.GetValue("_lookup", typeof(LookupEntity));
                if (_lookup != null)
                {
                    _lookup.AfterSave += new EventHandler(OnEntityAfterSave);
                }

                base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
            }

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Example #2
0
        protected HealthPlanCallQueueCriteriaAssignmentEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _callQueue = (CallQueueEntity)info.GetValue("_callQueue", typeof(CallQueueEntity));
                if (_callQueue != null)
                {
                    _callQueue.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _callQueueCustomer = (CallQueueCustomerEntity)info.GetValue("_callQueueCustomer", typeof(CallQueueCustomerEntity));
                if (_callQueueCustomer != null)
                {
                    _callQueueCustomer.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _healthPlanCallQueueCriteria = (HealthPlanCallQueueCriteriaEntity)info.GetValue("_healthPlanCallQueueCriteria", typeof(HealthPlanCallQueueCriteriaEntity));
                if (_healthPlanCallQueueCriteria != null)
                {
                    _healthPlanCallQueueCriteria.AfterSave += new EventHandler(OnEntityAfterSave);
                }

                base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
            }

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Example #3
0
 /// <summary> setups the sync logic for member _callQueue</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncCallQueue(IEntity2 relatedEntity)
 {
     if (_callQueue != relatedEntity)
     {
         DesetupSyncCallQueue(true, true);
         _callQueue = (CallQueueEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_callQueue, new PropertyChangedEventHandler(OnCallQueuePropertyChanged), "CallQueue", CallQueueAssignmentEntity.Relations.CallQueueEntityUsingCallQueueId, true, new string[] {  });
     }
 }
Example #4
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _callQueue            = null;
            _organizationRoleUser = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Example #5
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _account   = null;
            _callQueue = null;
            _lookup    = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Example #6
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _callQueue                   = null;
            _callQueueCustomer           = null;
            _healthPlanCallQueueCriteria = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Example #7
0
 /// <summary> Removes the sync logic for member _callQueue</summary>
 /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param>
 /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param>
 private void DesetupSyncCallQueue(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_callQueue, new PropertyChangedEventHandler(OnCallQueuePropertyChanged), "CallQueue", CallQueueAssignmentEntity.Relations.CallQueueEntityUsingCallQueueId, true, signalRelatedEntity, "CallQueueAssignment", resetFKFields, new int[] { (int)CallQueueAssignmentFieldIndex.CallQueueId });
     _callQueue = null;
 }