Exemple #1
0
        public static bool UpdateCommission(int UserId, decimal Commission, string CommRemark)
        {
            DistributorGradeCommissionInfo distributorGradeCommissionInfo = new DistributorGradeCommissionInfo();

            distributorGradeCommissionInfo.UserId             = UserId;
            distributorGradeCommissionInfo.Commission         = Commission;
            distributorGradeCommissionInfo.PubTime            = DateTime.Now;
            distributorGradeCommissionInfo.OperAdmin          = "system";
            distributorGradeCommissionInfo.Memo               = CommRemark;
            distributorGradeCommissionInfo.OldCommissionTotal = 0m;
            distributorGradeCommissionInfo.ReferralUserId     = UserId;
            distributorGradeCommissionInfo.OrderID            = "A" + VShopHelper.GenerateOrderId();
            distributorGradeCommissionInfo.CommType           = 5;
            return(new DistributorsDao().AddCommission(distributorGradeCommissionInfo));
        }
Exemple #2
0
        public static bool UpdateCommission(int UserId, decimal Commission, string CommRemark)
        {
            DistributorGradeCommissionInfo distributorGradeCommissionInfo = new DistributorGradeCommissionInfo()
            {
                UserId             = UserId,
                Commission         = Commission,
                PubTime            = DateTime.Now,
                OperAdmin          = "system",
                Memo               = CommRemark,
                OldCommissionTotal = new decimal(0),
                ReferralUserId     = UserId,
                OrderID            = string.Concat("A", VShopHelper.GenerateOrderId()),
                CommType           = 5
            };

            return((new DistributorsDao()).AddCommission(distributorGradeCommissionInfo));
        }