Exemple #1
0
 public SiteManagement(BUser user)
     : base(user)
 {
     if (this.logger == null)
     {
         this.logger = log4net.LogManager.GetLogger(typeof(ResourceManagement));
     }
 }
Exemple #2
0
 public OrderManagement(BUser user)
     : base(user)
 {
     if (this.logger == null)
     {
         this.logger = log4net.LogManager.GetLogger(typeof(OrderManagement));
     }
 }
Exemple #3
0
 public UserManagement(BUser user):base(user)
 {
     this.logger = log4net.LogManager.GetLogger(this.GetType());
 }
 public PermissionManagement(BUser user)
     : base(user)
 {
 }
Exemple #5
0
 public CustomerManagement(BUser user)
     : base(user)
 {
 }
Exemple #6
0
 public BaseManagement(BUser user)
 {
     this.CurrentLoginUser = user;
     this.InitializeLoggger();
 }
Exemple #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;
        }
Exemple #8
0
 public AgentManagement(BUser user)
     : base(user)
 {
 }
        public AgentAdminMenagement(BUser user) : base(user)
        {

        }
Exemple #10
0
 public PaymentManagement(BUser user)
     : base(user)
 {
 }
        public AdministratorManagement(BUser user) : base(user)
        {

        }