示例#1
0
 public SiteManagement(BUser user)
     : base(user)
 {
     if (this.logger == null)
     {
         this.logger = log4net.LogManager.GetLogger(typeof(ResourceManagement));
     }
 }
示例#2
0
 public OrderManagement(BUser user)
     : base(user)
 {
     if (this.logger == null)
     {
         this.logger = log4net.LogManager.GetLogger(typeof(OrderManagement));
     }
 }
示例#3
0
 public UserManagement(BUser user):base(user)
 {
     this.logger = log4net.LogManager.GetLogger(this.GetType());
 }
示例#4
0
 public PermissionManagement(BUser user)
     : base(user)
 {
 }
示例#5
0
 public CustomerManagement(BUser user)
     : base(user)
 {
 }
示例#6
0
 public BaseManagement(BUser user)
 {
     this.CurrentLoginUser = user;
     this.InitializeLoggger();
 }
示例#7
0
        public BUser GetUserInfo(string email)
        {
            if (string.IsNullOrEmpty(email))
            {
                return null;
            }
            BUser user = null;
            using (chargebitEntities db = new chargebitEntities())
            {
                user = new BUser();
                user.User = (from u in db.Users where u.Email == email select u).FirstOrDefault<Users>();

                Admin_Users au = (from ausr in db.Admin_Users where ausr.User_Id == user.User.Id select ausr).FirstOrDefault<Admin_Users>();
                if (au != null)
                {
                    user.IsSuperAdmin = au.IsSuperAdmin;
                    user.IsWebMaster = au.IsWebMaster;
                    user.IsAdmin = true;
                }
                if (!user.IsSuperAdmin)
                {
                    user.Permission = PermissionManagement.GetUserPermissions(user.User.Id);
                }
                else
                {
                    user.Permission = new Permissions();
                    System.Reflection.FieldInfo[] fields = typeof(Permissions).GetFields();
                    foreach (System.Reflection.FieldInfo field in fields)
                    {
                        field.SetValue(user.Permission, 1);
                    }
                }
            }
            return user;
        }
示例#8
0
 public AgentManagement(BUser user)
     : base(user)
 {
 }
示例#9
0
        public AgentAdminMenagement(BUser user) : base(user)
        {

        }
示例#10
0
 public PaymentManagement(BUser user)
     : base(user)
 {
 }
示例#11
0
        public AdministratorManagement(BUser user) : base(user)
        {

        }