/// <summary> /// 利润分配 /// </summary> /// <param name="tourId">团队编号</param> private void MoneyDistribute(string tourId) { IList <EyouSoft.Model.FinStructure.MProfitDistribute> ls = new EyouSoft.BLL.FinStructure.BFinance().GetProfitDistribute(tourId); if (ls != null && ls.Count > 0) { pan_mongyAllotMsg.Visible = false; rpt_mongyAllot.DataSource = ls; rpt_mongyAllot.DataBind(); //团队订单分配利润 ls = ls.Where(item => item.OrderId != null && item.OrderId.Length > 0).ToList(); if (ls != null && ls.Count > 0) { DisOrderProfit.Value = ls.Sum(item => item.Amount).ToString(); } ls = ls.Where(item => item.OrderId == null || item.OrderId.Length <= 0).ToList(); if (ls != null && ls.Count > 0) { DisTourProfit.Value = ls.Sum(item => item.Amount).ToString(); } } }