Esempio n. 1
0
        private void BindData()
        {
            MemberAmountQuery memberAmountQuery = new MemberAmountQuery();

            memberAmountQuery.UserName  = this.UserName;
            memberAmountQuery.PayId     = this.PayId;
            memberAmountQuery.TradeType = this.TradeTypeValue;
            memberAmountQuery.TradeWays = this.TradeWaysValue;
            memberAmountQuery.EndTime   = this.EndTime;
            memberAmountQuery.StartTime = this.StartTime;
            memberAmountQuery.PageIndex = this.pager.PageIndex;
            memberAmountQuery.PageSize  = this.pager.PageSize;
            memberAmountQuery.SortOrder = SortAction.Desc;
            memberAmountQuery.SortBy    = "Id";
            Globals.EntityCoding(memberAmountQuery, true);
            DbQueryResult amountWithUserName = MemberAmountProcessor.GetAmountWithUserName(memberAmountQuery);

            this.reCommissions.DataSource = amountWithUserName.Data;
            this.reCommissions.DataBind();
            this.pager.TotalRecords = amountWithUserName.TotalRecords;
            System.Collections.Generic.Dictionary <string, decimal> amountDic = MemberAmountProcessor.GetAmountDic(memberAmountQuery);
            this.CurrentTotal      = amountDic["CurrentTotal"];
            this.AvailableTotal    = amountDic["AvailableTotal"];
            this.UnliquidatedTotal = amountDic["UnliquidatedTotal"];
        }
Esempio n. 2
0
        private void BindData()
        {
            MemberAmountQuery entity = new MemberAmountQuery {
                UserName  = this.UserName,
                PayId     = this.PayId,
                TradeType = this.TradeTypeValue,
                TradeWays = this.TradeWaysValue,
                EndTime   = this.EndTime,
                StartTime = this.StartTime,
                PageIndex = this.pager.PageIndex,
                PageSize  = this.pager.PageSize,
                SortOrder = SortAction.Desc,
                SortBy    = "Id"
            };

            Globals.EntityCoding(entity, true);
            DbQueryResult amountWithUserName = MemberAmountProcessor.GetAmountWithUserName(entity);

            this.reCommissions.DataSource = amountWithUserName.Data;
            this.reCommissions.DataBind();
            this.pager.TotalRecords = amountWithUserName.TotalRecords;
            Dictionary <string, decimal> amountDic = MemberAmountProcessor.GetAmountDic(entity);

            this.CurrentTotal      = amountDic["CurrentTotal"];
            this.AvailableTotal    = amountDic["AvailableTotal"];
            this.UnliquidatedTotal = amountDic["UnliquidatedTotal"];
        }