private void SetCommissions(PeriodModel period, PromoterModel promoter) { //Retorna as comissões if (period == null) return; var commissions = new WS.Commissions.Commissions().SelectFiltered( Settings.AutenticationKeyEarningSystem, period.DataInicio, period.DataTermino, promoter.IdPromoter); ViewBag.CommisionsTeam = commissions.Where(m => m.Nivel != 0).Sum(m => m.ValorComissao); ViewBag.CommisionsOther = commissions.Where(m => m.Nivel == 0).Sum(m => m.ValorComissao); ViewBag.CommisionsTotal = commissions.Sum(m => m.ValorComissao); }
/// <remarks/> public void UpdateProfileAsync(string authenticationKey, PromoterModel promoter, object userState) { if ((this.UpdateProfileOperationCompleted == null)) { this.UpdateProfileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateProfileOperationCompleted); } this.InvokeAsync("UpdateProfile", new object[] { authenticationKey, promoter}, this.UpdateProfileOperationCompleted, userState); }
/// <remarks/> public void UpdateProfileAsync(string authenticationKey, PromoterModel promoter) { this.UpdateProfileAsync(authenticationKey, promoter, null); }
public bool UpdateProfile(string authenticationKey, PromoterModel promoter) { object[] results = this.Invoke("UpdateProfile", new object[] { authenticationKey, promoter}); return ((bool)(results[0])); }
/// <remarks/> public void CreateAsync(string authenticationKey, PromoterModel promoter) { this.CreateAsync(authenticationKey, promoter, null); }