protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            var pTORequestType = (PTORequestType)entity;

            ID = pTORequestType.PTORequestTypeId;
            PTORequestTypeName = pTORequestType.PTORequestTypeName;
        }
Esempio n. 2
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            var eNTRole = (ENTRole)entity;

            ID       = eNTRole.ENTRoleId;
            RoleName = eNTRole.RoleName;
        }
Esempio n. 3
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTNotificationENTWFState eNTNotificationENTWFState = (ENTNotificationENTWFState)entity;

            ID = eNTNotificationENTWFState.ENTNotificationENTWFStateId;
            ENTNotificationENTUserAccountId = eNTNotificationENTWFState.ENTNotificationENTUserAccountId;
            ENTWFStateId = eNTNotificationENTWFState.ENTWFStateId;
        }
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            var eNTAuditObject = (ENTAuditObject)entity;

            ID         = eNTAuditObject.ENTAuditObjectId;
            ObjectName = eNTAuditObject.ObjectName;
            ObjectFullyQualifiedName = eNTAuditObject.ObjectFullyQualifiedName;
        }
Esempio n. 5
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTWorkflow eNTWorkflow = (ENTWorkflow)entity;

            ID                    = eNTWorkflow.ENTWorkflowId;
            WorkflowName          = eNTWorkflow.WorkflowName;
            ENTWorkflowObjectName = eNTWorkflow.ENTWorkflowObjectName;
        }
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTAuditObjectProperty eNTAuditObjectProperty = (ENTAuditObjectProperty)entity;

            ID = eNTAuditObjectProperty.ENTAuditObjectPropertyId;
            ENTAuditObjectId = eNTAuditObjectProperty.ENTAuditObjectId;
            PropertyName     = eNTAuditObjectProperty.PropertyName;
        }
Esempio n. 7
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            var roleUserAccount = (ENTRoleUserAccount)entity;

            ID               = roleUserAccount.ENTRoleUserAccountId;
            ENTRoleId        = roleUserAccount.ENTRoleId;
            ENTUserAccountId = roleUserAccount.ENTUserAccountId;
        }
Esempio n. 8
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            Holiday holiday = (Holiday)entity;

            ID          = holiday.HolidayId;
            HolidayName = holiday.HolidayName;
            HolidayDate = holiday.HolidayDate;
        }
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            var eNTWFOwnerGroupUserAccount = (ENTWFOwnerGroupUserAccount)entity;

            ID = eNTWFOwnerGroupUserAccount.ENTWFOwnerGroupUserAccountId;
            ENTWFOwnerGroupId = eNTWFOwnerGroupUserAccount.ENTWFOwnerGroupId;
            ENTUserAccountId  = eNTWFOwnerGroupUserAccount.ENTUserAccountId;
            UserName          = eNTWFOwnerGroupUserAccount.UserName;
        }
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTCapability capability = (ENTCapability)entity;

            ID             = capability.ENTCapabilityId;
            CapabilityName = capability.CapabilityName;
            MenuItemId     = capability.ENTMenuItemId;
            AccessType     = (AccessTypeEnum)capability.AccessType;
        }
Esempio n. 11
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTRoleCapability roleCapability = (ENTRoleCapability)entity;

            ID         = roleCapability.ENTRoleCapabilityId;
            ENTRoleId  = roleCapability.ENTRoleId;
            AccessFlag = (CapabilityAccessFlagEnum)roleCapability.AccessFlag;
            Capability.Load(roleCapability.ENTCapabilityId);
        }
Esempio n. 12
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            var role = (ENTRole)entity;

            ID       = role.ENTRoleId;
            RoleName = role.RoleName;
            RoleCapabilities.LoadByENTRoleId(ID);
            RoleUserAccounts.LoadByEntRoleId(ID);
        }
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTWFStateProperty eNTWFStateProperty = (ENTWFStateProperty)entity;

            ID           = eNTWFStateProperty.ENTWFStatePropertyId;
            ENTWFStateId = eNTWFStateProperty.ENTWFStateId;
            PropertyName = eNTWFStateProperty.PropertyName;
            Required     = eNTWFStateProperty.Required;
            ReadOnly     = eNTWFStateProperty.ReadOnly;
        }
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTNotification eNTNotification = (ENTNotification)entity;

            ID               = eNTNotification.ENTNotificationId;
            Description      = eNTNotification.Description;
            FromEmailAddress = eNTNotification.FromEmailAddress;
            Subject          = eNTNotification.Subject;
            Body             = eNTNotification.Body;
        }
 protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
 {
     ENTUserAccount userAccount = (ENTUserAccount)entity;
     ID = userAccount.ENTUserAccountId;
     WindowAccountName = userAccount.WindowsAccountName;
     FirstName = userAccount.FirstName;
     LastName = userAccount.LastName;
     Email = userAccount.Email;
     IsActive = userAccount.IsActive;
 }
Esempio n. 16
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTWFItem eNTWFItem = (ENTWFItem)entity;

            ID                        = eNTWFItem.ENTWFItemId;
            ENTWorkflowId             = eNTWFItem.ENTWorkflowId;
            ItemId                    = eNTWFItem.ItemId;
            SubmitterENTUserAccountId = eNTWFItem.SubmitterENTUserAccountId;
            SubmitterUserName         = eNTWFItem.SubmitterUserName;
            CurrentWFStateId          = eNTWFItem.CurrentWFStateId;
        }
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            var pTOVacationBank = (PTOVacationBank)entity;

            ID = pTOVacationBank.PTOVacationBankId;
            ENTUserAccountId = pTOVacationBank.ENTUserAccountId;
            VacationYear     = pTOVacationBank.VacationYear;
            PersonalDays     = pTOVacationBank.PersonalDays;
            VacationDays     = pTOVacationBank.VacationDays;
            UserName         = pTOVacationBank.UserName;
        }
Esempio n. 18
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            PTORequest pTORequest = (PTORequest)entity;

            ID = pTORequest.PTORequestId;
            ENTUserAccountId = pTORequest.ENTUserAccountId;
            RequestDate      = pTORequest.RequestDate;
            PTODayTypeId     = (PTODayTypeBO.PTODayTypeEnum)pTORequest.PTODayTypeId;
            PTORequestTypeId = (PTORequestTypeBO.PTORequestTypeEnum)pTORequest.PTORequestTypeId;
            base.LoadWorkflow(this.GetType().AssemblyQualifiedName, ID);
        }
Esempio n. 19
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            var eNTAudit = (ENTAudit)entity;

            ID           = eNTAudit.ENTAuditId;
            ObjectName   = eNTAudit.ObjectName;
            RecordId     = eNTAudit.RecordId;
            PropertyName = eNTAudit.PropertyName;
            OldValue     = eNTAudit.OldValue;
            NewValue     = eNTAudit.NewValue;
            AuditType    = (AuditTypeEnum)eNTAudit.AuditType;
        }
Esempio n. 20
0
 public void MapEntityToProperties(IENTBaseEntity entity)
 {
     if (entity != null)
     {
         InsertDate             = entity.InsertDate;
         InsertENTUserAccountId = entity.InsertENTUserAccountId;
         UpdateDate             = entity.UpdateDate;
         UpdateENTUserAccountId = entity.UpdateENTUserAccountId;
         Version = entity.Version;
         this.MapEntityToCustomProperties(entity);
     }
 }
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            var eNTReport = (ENTReport)entity;

            ID                  = eNTReport.ENTReportId;
            ReportName          = eNTReport.ReportName;
            FileName            = eNTReport.FileName;
            ObjectName          = eNTReport.ObjectName;
            Description         = eNTReport.Description;
            SubReportObjectName = eNTReport.SubReportObjectName;
            SubReportMethodName = eNTReport.SubReportMethodName;
        }
Esempio n. 22
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTWFState eNTWFState = (ENTWFState)entity;

            ID                = eNTWFState.ENTWFStateId;
            ENTWorkflowId     = eNTWFState.ENTWorkflowId;
            StateName         = eNTWFState.StateName;
            Description       = eNTWFState.Description;
            IsOwnerSubmitter  = eNTWFState.IsOwnerSubmitter;
            ENTWFOwnerGroupId = eNTWFState.ENTWFOwnerGroupId;
            ENTWFStateProperties.Load(ID);
        }
Esempio n. 23
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTMenuItem menuItem = (ENTMenuItem)entity;

            ID               = menuItem.ENTMenuItemId;
            MenuItemName     = menuItem.MenuItemName;
            Description      = menuItem.Description;
            Url              = menuItem.Url;
            ParentMenuItemId = menuItem.ParentENTMenuItemId;
            DisplaySequence  = menuItem.DisplaySequence;
            IsAlwaysEnabled  = menuItem.IsAlwaysEnabled;
        }
Esempio n. 24
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTNotificationENTUserAccount eNTNotificationENTUserAccount = (ENTNotificationENTUserAccount)entity;

            ID = eNTNotificationENTUserAccount.ENTNotificationENTUserAccountId;
            ENTNotificationId = eNTNotificationENTUserAccount.ENTNotificationId;
            ENTUserAccountId  = eNTNotificationENTUserAccount.ENTUserAccountId;

            if (LoadStates)
            {
                _notificationStates.Load(ID);
            }
        }
Esempio n. 25
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            var eNTWFTransition = (ENTWFTransition)entity;

            ID                       = eNTWFTransition.ENTWFTransitionId;
            ENTWorkflowId            = eNTWFTransition.ENTWorkflowId;
            TransitionName           = eNTWFTransition.TransitionName;
            FromENTWFStateId         = eNTWFTransition.FromENTWFStateId;
            FromStateName            = eNTWFTransition.FromStateName;
            ToENTWFStateId           = eNTWFTransition.ToENTWFStateId;
            ToStateName              = eNTWFTransition.ToStateName;
            PostTransitionMethodName = eNTWFTransition.PostTransitionMethodName;
        }
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            var eNTWFItemStateHistory = (ENTWFItemStateHistory)entity;

            ID               = eNTWFItemStateHistory.ENTWFItemStateHistoryId;
            ENTWFItemId      = eNTWFItemStateHistory.ENTWFItemId;
            ENTWFStateId     = eNTWFItemStateHistory.ENTWFStateId;
            ENTUserAccountId = eNTWFItemStateHistory.ENTUserAccountId;

            StateName  = eNTWFItemStateHistory.StateName;
            OwnerName  = eNTWFItemStateHistory.OwnerName;
            InsertedBy = eNTWFItemStateHistory.InsertedBy;
        }
Esempio n. 27
0
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTEmail eNTEmail = (ENTEmail)entity;

            ID               = eNTEmail.ENTEmailId;
            ToEmailAddress   = eNTEmail.ToEmailAddress;
            CCEmailAddress   = eNTEmail.CCEmailAddress;
            BCCEmailAddress  = eNTEmail.BCCEmailAddress;
            FromEmailAddress = eNTEmail.FromEmailAddress;
            Subject          = eNTEmail.Subject;
            Body             = eNTEmail.Body;
            EmailStatusFlag  = (EmailStatusFlagEnum)eNTEmail.EmailStatusFlag;
        }
        protected override void MapEntityToCustomProperties(IENTBaseEntity entity)
        {
            ENTWFOwnerGroup eNTWFOwnerGroup = (ENTWFOwnerGroup)entity;

            ID                      = eNTWFOwnerGroup.ENTWFOwnerGroupId;
            ENTWorkflowId           = eNTWFOwnerGroup.ENTWorkflowId;
            OwnerGroupName          = eNTWFOwnerGroup.OwnerGroupName;
            DefaultENTUserAccountId = eNTWFOwnerGroup.DefaultENTUserAccountId;
            IsDefaultSameAsLast     = eNTWFOwnerGroup.IsDefaultSameAsLast;
            Description             = eNTWFOwnerGroup.Description;

            //Load the users for this group.
            UserAccounts.Load(ID);
        }
Esempio n. 29
0
 protected abstract void MapEntityToCustomProperties(IENTBaseEntity entity);