示例#1
0
        public static bool DealBalanceDrawRequest(int userId, bool agree)
        {
            bool flag = UnderlingProvider.Instance().DealBalanceDrawRequest(userId, agree);

            if (flag)
            {
                Users.ClearUserCache(Users.GetUser(userId));
            }
            return(flag);
        }
示例#2
0
        public static bool AddUnderlingBalanceDetail(BalanceDetailInfo balanceDetails)
        {
            bool flag = UnderlingProvider.Instance().AddUnderlingBalanceDetail(balanceDetails);

            if (flag)
            {
                Users.ClearUserCache(Users.GetUser(balanceDetails.UserId));
            }
            return(flag);
        }
示例#3
0
        public static bool DeleteUnderlingGrade(int gradeId)
        {
            bool result;

            if (result = UnderlingProvider.Instance().DeleteUnderlingGrade(gradeId))
            {
                UnderlingProvider.Instance().DeleteSKUMemberPrice(gradeId);
            }
            return(result);
        }
示例#4
0
        public static bool AddUnderlingBalanceDetail(BalanceDetailInfo balanceDetails)
        {
            bool result;

            if (result = UnderlingProvider.Instance().AddUnderlingBalanceDetail(balanceDetails))
            {
                Users.ClearUserCache(Users.GetUser(balanceDetails.UserId));
            }
            return(result);
        }
示例#5
0
        public static bool DeleteUnderlingGrade(int gradeId)
        {
            bool flag = UnderlingProvider.Instance().DeleteUnderlingGrade(gradeId);

            if (flag)
            {
                UnderlingProvider.Instance().DeleteSKUMemberPrice(gradeId);
            }
            return(flag);
        }
示例#6
0
        public static bool DeleteMember(int userId)
        {
            IUser user = Users.GetUser(userId);
            bool  flag = UnderlingProvider.Instance().DeleteMember(userId);

            if (flag)
            {
                Users.ClearUserCache(user);
            }
            return(flag);
        }
示例#7
0
        public static bool DeleteMember(int userId)
        {
            IUser user = Users.GetUser(userId);
            bool  result;

            if (result = UnderlingProvider.Instance().DeleteMember(userId))
            {
                Users.ClearUserCache(user);
            }
            return(result);
        }
示例#8
0
 public static bool CreateUnderlingGrade(MemberGradeInfo underlingGrade)
 {
     Globals.EntityCoding(underlingGrade, true);
     return(UnderlingProvider.Instance().CreateUnderlingGrade(underlingGrade));
 }
示例#9
0
 public static DbQueryResult GetMembers(MemberQuery query)
 {
     return(UnderlingProvider.Instance().GetMembers(query));
 }
示例#10
0
 public static DbQueryResult GetBalanceDrawRequests(BalanceDrawRequestQuery query)
 {
     return(UnderlingProvider.Instance().GetBalanceDrawRequests(query));
 }
示例#11
0
 public static DataTable GetUnderlingStatisticsNoPage(SaleStatisticsQuery query)
 {
     return(UnderlingProvider.Instance().GetUnderlingStatisticsNoPage(query));
 }
示例#12
0
 public static DataTable GetUnderlingStatistics(SaleStatisticsQuery query, out int total)
 {
     return(UnderlingProvider.Instance().GetUnderlingStatistics(query, out total));
 }
示例#13
0
 public static IList <MemberGradeInfo> GetUnderlingGrades()
 {
     return(UnderlingProvider.Instance().GetUnderlingGrades());
 }
示例#14
0
 public static bool DeleteUnderlingGrade(int gradeId)
 {
     return(UnderlingProvider.Instance().DeleteUnderlingGrade(gradeId));
 }
示例#15
0
 public static IList <UserStatisticsForDate> GetUserIncrease(int?year, int?month, int?days)
 {
     return(UnderlingProvider.Instance().GetUserIncrease(year, month, days));
 }
示例#16
0
 public static DbQueryResult GetBalanceDetails(BalanceDetailQuery query)
 {
     return(UnderlingProvider.Instance().GetBalanceDetails(query));
 }
示例#17
0
 public static bool HasSamePointMemberGrade(MemberGradeInfo memberGrade)
 {
     return(UnderlingProvider.Instance().HasSamePointMemberGrade(memberGrade));
 }
示例#18
0
 public static MemberGradeInfo GetMemberGrade(int gradeId)
 {
     return(UnderlingProvider.Instance().GetMemberGrade(gradeId));
 }
示例#19
0
 public static void SetDefalutUnderlingGrade(int gradeId)
 {
     UnderlingProvider.Instance().SetDefalutUnderlingGrade(gradeId);
 }
示例#20
0
 public static DataTable GetMembersNopage(MemberQuery query, IList <string> fields)
 {
     return(UnderlingProvider.Instance().GetMembersNopage(query, fields));
 }
示例#21
0
 static UnderlingProvider()
 {
     UnderlingProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.Subsites.Data.UnderlingData,Hidistro.Subsites.Data") as UnderlingProvider);
 }