public Infrastructure.MsmqHelper.MessageItem GetChangedEntryData(System.Data.Entity.Infrastructure.DbEntityEntry entry)
        {
            var checkFields = new List <string> {
                "UserID", "Name", "DepartmentID", "EnterpiseID", "Closed"
            };

            if (!EntityHelper.WhetherNeedNotified(entry, checkFields))
            {
                return(null);
            }

            var result = new Infrastructure.MsmqHelper.MessageItem
            {
                EntityName = "FrontUser",
                Data       = new List <Infrastructure.MsmqHelper.CustomKeyValue>()
                {
                    new  ML.BC.Infrastructure.MsmqHelper.CustomKeyValue {
                        Key   = "UserID",
                        Value = this.UserID
                    },
                    new  ML.BC.Infrastructure.MsmqHelper.CustomKeyValue {
                        Key   = "EnterpriseID",
                        Value = this.EnterpiseID
                    }
                },
                Operation  = (ML.BC.Infrastructure.MsmqHelper.OperationEnum)entry.State,
                Type       = Infrastructure.MsmqHelper.TypeEnum.User,
                ChangeTime = this.UpdateTime
            };

            return(result);
        }
        public Infrastructure.MsmqHelper.MessageItem GetChangedEntryData(System.Data.Entity.Infrastructure.DbEntityEntry entry)
        {
            if (!NeedNotified(entry))
            {
                return(null);
            }

            var result = new Infrastructure.MsmqHelper.MessageItem
            {
                EntityName = "Department",
                Data       = new List <Infrastructure.MsmqHelper.CustomKeyValue>()
                {
                    new  ML.BC.Infrastructure.MsmqHelper.CustomKeyValue {
                        Key   = "DepartmentID",
                        Value = this.DepartmentID.ToString()
                    },
                    new  ML.BC.Infrastructure.MsmqHelper.CustomKeyValue {
                        Key   = "EnterpriseID",
                        Value = this.EnterpriseID
                    }
                },
                Operation  = (ML.BC.Infrastructure.MsmqHelper.OperationEnum)entry.State,
                Type       = Infrastructure.MsmqHelper.TypeEnum.Department,
                ChangeTime = this.UpdateTime
            };

            return(result);
        }
        public Infrastructure.MsmqHelper.MessageItem GetChangedEntryData(
            System.Data.Entity.Infrastructure.DbEntityEntry entry)
        {
            var result = new Infrastructure.MsmqHelper.MessageItem
            {
                EntityName = "SceneType",
                Data       = new List <Infrastructure.MsmqHelper.CustomKeyValue>()
                {
                    new ML.BC.Infrastructure.MsmqHelper.CustomKeyValue
                    {
                        Key   = "SceneTypeID",
                        Value = this.ID.ToString()
                    },
                    new ML.BC.Infrastructure.MsmqHelper.CustomKeyValue
                    {
                        Key   = "EnterpriseID",
                        Value = this.EnterpriseID
                    }
                },
                Operation  = (ML.BC.Infrastructure.MsmqHelper.OperationEnum)entry.State,
                Type       = Infrastructure.MsmqHelper.TypeEnum.SceneType,
                ChangeTime = DBTimeHelper.DBNowTime()
            };

            return(result);
        }
        public Infrastructure.MsmqHelper.MessageItem GetChangedEntryData(System.Data.Entity.Infrastructure.DbEntityEntry entry)
        {
            var result = new Infrastructure.MsmqHelper.MessageItem
            {
                EntityName = "Project",
                Data       = new List <Infrastructure.MsmqHelper.CustomKeyValue>()
                {
                    new  ML.BC.Infrastructure.MsmqHelper.CustomKeyValue {
                        Key   = "ProjectID",
                        Value = this.ProjectID
                    },
                    new  ML.BC.Infrastructure.MsmqHelper.CustomKeyValue {
                        Key   = "DepartMentIDs",
                        Value = this.Departments
                    }
                },
                Operation  = (ML.BC.Infrastructure.MsmqHelper.OperationEnum)entry.State,
                Type       = Infrastructure.MsmqHelper.TypeEnum.Project,
                ChangeTime = DBTimeHelper.DBNowTime()
            };

            return(result);
        }
        public Infrastructure.MsmqHelper.MessageItem GetChangedEntryData(System.Data.Entity.Infrastructure.DbEntityEntry entry)
        {
            var result = new Infrastructure.MsmqHelper.MessageItem
            {
                EntityName = "UserRole",
                Data       = new List <Infrastructure.MsmqHelper.CustomKeyValue>()
                {
                    new  ML.BC.Infrastructure.MsmqHelper.CustomKeyValue {
                        Key   = "User_RoleID",
                        Value = this.UserID + "_" + this.RoleID
                    },
                    new  ML.BC.Infrastructure.MsmqHelper.CustomKeyValue {
                        Key   = "UserID",
                        Value = this.UserID
                    }
                },
                Operation  = (ML.BC.Infrastructure.MsmqHelper.OperationEnum)entry.State,
                Type       = Infrastructure.MsmqHelper.TypeEnum.Role,
                ChangeTime = this.UpdateTime
            };

            return(result);
        }