コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: Reference.cs プロジェクト: XDevelopers/EcommerceOld
 /// <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);
 }
コード例 #3
0
ファイル: Reference.cs プロジェクト: XDevelopers/EcommerceOld
 /// <remarks/>
 public void UpdateProfileAsync(string authenticationKey, PromoterModel promoter) {
     this.UpdateProfileAsync(authenticationKey, promoter, null);
 }
コード例 #4
0
ファイル: Reference.cs プロジェクト: XDevelopers/EcommerceOld
 public bool UpdateProfile(string authenticationKey, PromoterModel promoter) {
     object[] results = this.Invoke("UpdateProfile", new object[] {
                 authenticationKey,
                 promoter});
     return ((bool)(results[0]));
 }
コード例 #5
0
ファイル: Reference.cs プロジェクト: XDevelopers/EcommerceOld
 /// <remarks/>
 public void CreateAsync(string authenticationKey, PromoterModel promoter) {
     this.CreateAsync(authenticationKey, promoter, null);
 }