Example #1
0
 private void _vista_UsuarioDeseaModificarPromo(object sender, PromoArgumento e)
 {
     try
     {
         var op = PromoServicio.ModificarPromo(e);
         if (op.Resultado == ResultadoOperacionTipo.Exito)
         {
             _vista.PromosPorEscala = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
                 Promo = new Promo {
                     PROMO_TYPE = "BONUS_BY_SCALE"
                 }
             });
             _vista.PromosPorMultiplo = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
                 Promo = new Promo {
                     PROMO_TYPE = "BONUS_BY_MULTIPLE"
                 }
             });
             _vista.PromosPorCombo = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
                 Promo = new Promo {
                     PROMO_TYPE = "BONUS_BY_COMBO"
                 }
             });
         }
         else
         {
             _vista.EstablecerError(op.Mensaje, sender);
         }
     }
     catch (Exception ex)
     {
         _vista.EstablecerError(ex.Message, sender);
     }
 }
Example #2
0
 private void _vista_UsuarioDeseaAgregarPromoDeBonoPorMontoGeneral(object sender, PromoArgumento e)
 {
     try
     {
         var op = PromoServicio.AgregarPromo(e);
         if (op.Resultado == ResultadoOperacionTipo.Exito)
         {
             e.Promo.PROMO_ID = int.Parse(op.DbData);
             _vista.PromosDeBonificacionPorMontoGeneral = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
                 Promo = new Promo {
                     PROMO_TYPE = "BONUS_BY_GENERAL_AMOUNT"
                 }
             });
             _vista.TerminoProceso("cpUsuarioTerminoDeCrearPromocionDeBonoPorMontoGeneral", e.Promo, sender);
         }
         else
         {
             _vista.EstablecerError(op.Mensaje, sender);
         }
     }
     catch (Exception exception)
     {
         _vista.EstablecerError(exception.Message, sender);
     }
 }
        private void _vista_UsuarioDeseaAgregarDescuentosPorFamiliaAPromocion(object sender, PromoArgumento e)
        {
            try
            {
                e.Xml = ObtenerXmlDeListadoDeDescuentosDeEscalasPorFamilia(e.ListaDeDescuentoPorMontoGeneral.ToList());
                var listaDeErrores = PromoServicio.AgregarDescuentosDeMontoGeneralPorFamiliaAPromocion(e).ToList();
                if (listaDeErrores.Count > 0)
                {
                    var listaDeMensajesDeError = listaDeErrores.Select(error => error.Mensaje).ToList();

                    _vista.MostrarListaDeErrores(listaDeMensajesDeError, sender);
                }
                else
                {
                    _vista.DescuentoDeMontoGeneralPorFamiliaDePromos = PromoServicio.ObtenerDescuentosDeMontoGeneralPorFamiliaDePromocion(e);
                    ObtenerFamiliasDisponiblesParaDescuentoDeEscalaPorFamilia(e.Promo.PROMO_ID);

                    _vista.TerminoProceso("cpUsuarioTerminoDeAsociarDescuentosPorFamiliaAPromocion", e, sender);
                }
            }
            catch (Exception exception)
            {
                _vista.EstablecerError(exception.Message, sender);
            }
        }
 private void _vista_UsuarioDeseaModificarPromocionDeDescuentoPorMontoGeneral(object sender, PromoArgumento e)
 {
     try
     {
         var op = PromoServicio.ModificarPromo(e);
         if (op.Resultado == ResultadoOperacionTipo.Exito)
         {
             _vista.PromocionesDeDescuentoPorMontoGeneral = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
                 Promo = new Promo {
                     PROMO_TYPE = "DISCOUNT_BY_GENERAL_AMOUNT"
                 }
             });
             _vista.DescuentosPorMontoGeneralAsociadosAPromocionDeDescuentoPorMontoGeneral =
                 PromoServicio.ObtenerDescuentosPorMontoGeneralAsociadosAPromocionDeDescuentoPorMontoGeneral(e);
             _vista.TerminoProceso("cpUsuarioTerminoDeModificarPromocionDeDescuentoPorMontoGeneral", e.Promo, sender);
         }
         else
         {
             _vista.EstablecerError(op.Mensaje, sender);
         }
     }
     catch (Exception exception)
     {
         _vista.EstablecerError(exception.Message, sender);
     }
 }
        private void _vista_UsuarioDeseaAgregarPromo(object sender, PromoArgumento e)
        {
            try
            {
                Operacion op;
                bool      isNewPromo = e.Promo.PROMO_ID == null || e.Promo.PROMO_ID == 0;
                if (isNewPromo)
                {
                    op = PromoServicio.AgregarPromo(e);
                }
                else
                {
                    op = PromoServicio.ModificarPromo(e);
                }


                if (op.Resultado == ResultadoOperacionTipo.Error)
                {
                    _vista.EstablecerError(op.Mensaje, sender);
                }
                else
                {
                    _vista.PromocionesPorPrecioEspecial = PromoServicio.ObtenerPromoPorTipo(e);
                    _vista.idPromocion = int.Parse(e.Promo.PROMO_ID.ToString());
                    if (isNewPromo)
                    {
                        _vista.TerminoProceso("cpEnviarDatosPromocio", new string[] { op.DbData.ToString(), e.Promo.PROMO_NAME.ToString() }, sender);
                    }
                }
            }
            catch (Exception ex)
            {
                _vista.EstablecerError(ex.Message, sender);
            }
        }
Example #6
0
 private void _vista_UsuarioDeseaAsociarSkuDeVentaPorMultiploAPromocionDeVentaPorMultiplo(object sender, PromoArgumento e)
 {
     try
     {
         var esPromocionNueva = false;
         if (e.Promo.PROMO_ID == null || e.Promo.PROMO_ID == 0)
         {
             esPromocionNueva = true;
             var operacion = PromoServicio.AgregarPromo(e);
             if (operacion.Resultado == ResultadoOperacionTipo.Exito)
             {
                 e.Promo.PROMO_ID = int.Parse(operacion.DbData);
             }
             else
             {
                 _vista.EstablecerError(operacion.Mensaje, sender);
                 return;
             }
         }
         AsociarSkuDeVentaPorMultiploAPromocionDeVentaPorMultiplo(e, sender, esPromocionNueva);
     }
     catch (Exception exception)
     {
         _vista.EstablecerError(exception.Message, sender);
     }
 }
Example #7
0
 private void _vista_UsuarioDeseaObtenerPromosParaBonoPorEscala(object sender, PromoArgumento e)
 {
     _vista.PromosPorEscala = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
         Promo = new Promo {
             PROMO_TYPE = "BONUS_BY_SCALE"
         }
     });
 }
 private void ObtenerPromocionesDeDescuentosPorFamiliaYTipoPago()
 {
     _vista.PromocionesDescuentoPorFamiliaYTipoDePago = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
         Promo = new Promo {
             PROMO_TYPE = Enums.GetStringValue(TipoDescuentoPor.DescuentoPorFamiliaYTipoPago)
         }
     });
 }
 private void ObtenerPromocionesDeDescuentosPorMontoGeneralYFamilia()
 {
     _vista.PromocionesPorMontoGeneralYFamilia = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
         Promo = new Promo {
             PROMO_TYPE = Enums.GetStringValue(TipoDescuentoPor.DescuentoPorMontoGeneralYFamilia)
         }
     });
 }
 private void _vista_UsuarioDeseaObtenerFamiliasDeSkusAsociadasAPromocionDeDescuentoPorFamiliaYTipoDePago(object sender, PromoArgumento e)
 {
     _vista.FamiliasDeProductosAsociadasAPromocionDeDescuentoDeEscalaPorFamiliaPorTipoDePago =
         PromoServicio.ObtenerPromoDeDescuentoProFamiliaYTipoDePago(new PromoArgumento {
         Promo = new Promo {
             PROMO_ID = e.Promo.PROMO_ID
         }
     });
 }
Example #11
0
 private void _vista_UsuarioDeseaObtenerSkusABonificarDeComboDePromocionPorCombo(object sender, PromoArgumento e)
 {
     try
     {
         _vista.SkusABonificarDeComboDeBonoPorCombo = PromoServicio.ObtenerSkusABonificarDeComboDeBonoPorCombo(e);
     }
     catch (Exception ex)
     {
         _vista.EstablecerError(ex.Message, sender);
     }
 }
Example #12
0
        private void _vista_UsuarioDeseaAgregarPromoDeBonoPorEscala(object sender, PromoArgumento e)
        {
            try
            {
                Operacion op;
                string    promoId;
                if (e.Promo.PROMO_ID == null || e.Promo.PROMO_ID == 0)
                {
                    op = PromoServicio.AgregarPromo(e);
                }
                else
                {
                    op = PromoServicio.ModificarPromo(e);
                }

                if (op.Resultado == ResultadoOperacionTipo.Exito)
                {
                    _vista.PromosPorEscala = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
                        Promo = new Promo {
                            PROMO_TYPE = "BONUS_BY_SCALE"
                        }
                    });
                    promoId = op.DbData;
                    var listaDeErrores = new List <string>();
                    foreach (var bonificacion in e.BonificacionesPorEscala)
                    {
                        bonificacion.PROMO_ID = int.Parse(promoId);
                        op = PromoServicio.AgregarPromoDeBonoPorEscala(bonificacion);
                        if (op.Resultado == ResultadoOperacionTipo.Error)
                        {
                            listaDeErrores.Add(op.Mensaje);
                        }
                    }
                    if (listaDeErrores.Count > 0)
                    {
                        _vista.MostrarListaDeErrores(listaDeErrores, sender);
                    }
                    _vista.BonosPorEscalaDePromo = PromoServicio.ObtenerBonoDePromoDeBonoPorEscala(new PromoArgumento {
                        Promo = new Promo {
                            PROMO_ID = int.Parse(promoId)
                        }, BonoPorEscalaDePromo = new BonoPorEscalaDePromo()
                    });
                    _vista.TerminoProceso("cpTerminoDeAgregarBonificacionPorEscala", promoId, sender);
                }
                else
                {
                    _vista.EstablecerError(op.Mensaje, sender);
                }
            }
            catch (Exception ex)
            {
                _vista.EstablecerError(ex.Message, sender);
            }
        }
Example #13
0
 private void _vista_UsuarioDeseaObtenerBonoDePromoDeBonoPorEscala(object sender, PromoArgumento e)
 {
     try
     {
         _vista.BonosPorEscalaDePromo = PromoServicio.ObtenerBonoDePromoDeBonoPorEscala(e);
     }
     catch (Exception ex)
     {
         _vista.EstablecerError(ex.Message, sender);
     }
 }
        //================ DESCUENTOS DE MONTO GENERAL POR FAMILIA =======================================

        #region Descuentos de escalas por familia

        private void _vista_UsuarioDeseaObtenerDescuentosPorFamiliaDePromo(object sender, PromoArgumento e)
        {
            try
            {
                _vista.DescuentoDeMontoGeneralPorFamiliaDePromos = PromoServicio.ObtenerDescuentosDeMontoGeneralPorFamiliaDePromocion(e);
            }
            catch (Exception exception)
            {
                _vista.EstablecerError(exception.Message, sender);
            }
        }
Example #15
0
 private void _vista_UsuarioDeseaObtenerBonosPorMontoGeneralDePromo(object sender, PromoArgumento e)
 {
     try
     {
         _vista.BonificacionesPorMontoGeneralDePromo = PromoServicio.ObtenerBonosPorMontoGeneralDePromo(e);
     }
     catch (Exception exception)
     {
         _vista.EstablecerError(exception.Message, sender);
     }
 }
 private void _vista_UsuarioDeseaObtenerSkusAsociadosAPromo(object sender, PromoArgumento e)
 {
     try
     {
         _vista.SkusAsociadosAPromo = PromoServicio.ObtenerSkusAsociadosADescuentoPorPrecioEspecial(e);
     }
     catch (Exception ex)
     {
         _vista.EstablecerError(ex.Message, sender);
     }
 }
 private void _vista_UsuarioDeseaObtenerDescuentosPorMontoGeneralAsociadosAPromocionDeDescuentoPorMontoGeneral(object sender, PromoArgumento e)
 {
     try
     {
         _vista.DescuentosPorMontoGeneralAsociadosAPromocionDeDescuentoPorMontoGeneral =
             PromoServicio.ObtenerDescuentosPorMontoGeneralAsociadosAPromocionDeDescuentoPorMontoGeneral(e);
     }
     catch (Exception exception)
     {
         _vista.EstablecerError(exception.Message, sender);
     }
 }
 private void _vista_UsuarioDeseaObtenerPromosPorPrecioEspecial(object sender, PromoArgumento e)
 {
     try
     {
         _vista.PromocionesPorPrecioEspecial = PromoServicio.ObtenerPromoPorTipo(e);
         _vista.CantidadDeDecimalesParaCalculoDeDescuentoDeTipoPorcentaje = ParametroServicio.ObtenerParametro(new Parametro {
             GROUP_ID = "CALCULATION_RULES", PARAMETER_ID = "QUANTITY_OF_DECIMALS_FOR_DISCOUNT_CALCULATIONS"
         });
     }
     catch (Exception ex)
     {
         _vista.EstablecerError(ex.Message, sender);
     }
 }
        //================ DESCUENTO POR MONTO GENERAL =======================================

        #region DescuentoPorMontoGeneral

        private void _vista_UsuarioDeseaObtenerPromocionesDeDescuentoPorMontoGeneral(object sender, EventArgs e)
        {
            try
            {
                _vista.PromocionesDeDescuentoPorMontoGeneral = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
                    Promo = new Promo {
                        PROMO_TYPE = "DISCOUNT_BY_GENERAL_AMOUNT"
                    }
                });
            }
            catch (Exception exception)
            {
                _vista.EstablecerError(exception.Message, sender);
            }
        }
Example #20
0
 private void _vista_UsuarioDeseaObtenerPromocionesDeVentaPorMultiplo(object sender, EventArgs e)
 {
     try
     {
         _vista.PromocionesDeVentaPorMultiplo = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
             Promo = new Promo {
                 PROMO_TYPE = "SALES_BY_MULTIPLE"
             }
         });
     }
     catch (Exception exception)
     {
         _vista.EstablecerError(exception.Message, sender);
     }
 }
Example #21
0
 private void _vista_UsuarioDeseaModificarBonificacionDePromoDeBonoPorCombo(object sender, PromoArgumento e)
 {
     try
     {
         var op = PromoServicio.ModificarBonificacionDePromoDeBonoPorCombo(e);
         if (op.Resultado != ResultadoOperacionTipo.Exito)
         {
             _vista.EstablecerError(op.Mensaje, sender);
         }
     }
     catch (Exception ex)
     {
         _vista.EstablecerError(ex.Message, sender);
     }
 }
Example #22
0
 private void _vista_UsuarioDeseaObtenerPromosParaBonoPorCombo(object sender, PromoArgumento e)
 {
     try
     {
         _vista.PromosPorCombo = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
             Promo = new Promo {
                 PROMO_TYPE = "BONUS_BY_COMBO"
             }
         });
     }
     catch (Exception ex)
     {
         _vista.EstablecerError(ex.Message, sender);
     }
 }
Example #23
0
 private void _vista_UsuarioDeseaObtenerPromosDeBonoPorMontoGeneral(object sender, PromoArgumento e)
 {
     try
     {
         _vista.PromosDeBonificacionPorMontoGeneral = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
             Promo = new Promo {
                 PROMO_TYPE = "BONUS_BY_GENERAL_AMOUNT"
             }
         });
     }
     catch (Exception exception)
     {
         _vista.EstablecerError(exception.Message, sender);
     }
 }
        private void _vista_UsuarioDeseaAgregarSkusAPromo(object sender, PromoArgumento e)
        {
            try
            {
                Operacion op;
                bool      isNewPromo = e.Promo.PROMO_ID == null || e.Promo.PROMO_ID == 0;
                if (isNewPromo)
                {
                    op = PromoServicio.AgregarPromo(e);
                }
                else
                {
                    op = PromoServicio.ModificarPromo(e);
                }

                if (op.Resultado != ResultadoOperacionTipo.Exito)
                {
                    _vista.EstablecerError(op.Mensaje, sender);
                    return;
                }
                else
                {
                    if (isNewPromo)
                    {
                        e.Promo.PROMO_ID = int.Parse(op.DbData);
                    }
                    var opF = PromoServicio.AgregarSkusAPromoPorPrecioEspecial(e);
                    if (opF.Resultado != ResultadoOperacionTipo.Exito)
                    {
                        listaDeErrores.Add("El Sku " + e.DescuentoPorPrecioEspecial.CODE_SKU + opF.Mensaje.ToString());
                        _vista.listadoError = listaDeErrores;
                    }
                    else
                    {
                        _vista.PromocionesPorPrecioEspecial = PromoServicio.ObtenerPromoPorTipo(e);
                        _vista.idPromocion = int.Parse(e.Promo.PROMO_ID.ToString());
                        if (isNewPromo)
                        {
                            _vista.TerminoProceso("cpEnviarDatosPromocio", new string[] { op.DbData.ToString(), e.Promo.PROMO_NAME.ToString() }, sender);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                _vista.EstablecerError(ex.Message, sender);
            }
        }
        private void _vista_VistaCargandosePorPrimeraVez(object sender, EventArgs e)
        {
            try
            {
                _vista.Privilegios = PrivilegioServicio.ObtenerPrivilegiosDeVista("btnDiscountForPromo", _vista.Login);

                var lista  = SkuServicio.ObtenerSkuConUnidadDeMedida();
                var indice = 1;
                foreach (var sku in lista)
                {
                    sku.SKU = indice;
                    indice++;
                }
                _vista.SkusDisponiblesParaPromocionDeDescuentoPorEscala = lista;
                _vista.Promos = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
                    Promo = new Promo {
                        PROMO_TYPE = "DISCOUNT_BY_SCALE"
                    }
                });
                _vista.CantidadDeDecimalesParaCalculoDeDescuentoDeTipoPorcentaje = ParametroServicio.ObtenerParametro(new Parametro {
                    GROUP_ID = "CALCULATION_RULES", PARAMETER_ID = "QUANTITY_OF_DECIMALS_FOR_DISCOUNT_CALCULATIONS"
                });



                //================ DESCUENTO POR MONTO GENERAL =======================================
                _vista.PromocionesDeDescuentoPorMontoGeneral = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
                    Promo = new Promo {
                        PROMO_TYPE = "DISCOUNT_BY_GENERAL_AMOUNT"
                    }
                });

                //================ DESCUENTO POR MONTO GENERAL Y FAMILIA =======================================
                ObtenerPromocionesDeDescuentosPorMontoGeneralYFamilia();

                //================ DESCUENTO POR FAMILIA Y TIPO DE PAGO=======================================
                ObtenerPromocionesDeDescuentosPorFamiliaYTipoPago();
                _vista.FamiliaSkus = FamiliaSkuServicio.ObtenerFamilaSkusParaDscuentosDeEscalaPorFamilia(0);


                //================ DESCUENTO POR MONTO GENERAL Y FAMILIA=======================================
                _vista.FamiliaSkusParaDescuentosPorFamiliaYTiposDePago = FamiliaSkuServicio.ObtenerFamilaSkusParaDscuentosDeEscalaPorFamilia(0);
            }
            catch (Exception ex)
            {
                _vista.EstablecerError(ex.Message, sender);
            }
        }
Example #26
0
 private void _vista_UsuarioDeseaObtenerBonoDePromoDeBonoPorMultiplo(object sender, PromoArgumento e)
 {
     try
     {
         _vista.BonosPorMultiploDePromo = PromoServicio.ObtenerBonoDePromoDeBonoPorMultiplo(e);
         _vista.PromosPorMultiplo       = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
             Promo = new Promo {
                 PROMO_TYPE = "BONUS_BY_MULTIPLE"
             }
         });
     }
     catch (Exception ex)
     {
         _vista.EstablecerError(ex.Message, sender);
     }
 }
Example #27
0
 private void _vista_VistaCargandosePorPrimeraVez(object sender, System.EventArgs e)
 {
     try
     {
         _vista.SkusNoAsociadosAPromocionDeVentaPorMultiplo = ObtenerListadoDeSkus();
         _vista.PromocionesDeVentaPorMultiplo = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
             Promo = new Promo {
                 PROMO_TYPE = "SALES_BY_MULTIPLE"
             }
         });
     }
     catch (Exception exception)
     {
         _vista.EstablecerError(exception.Message, sender);
     }
 }
Example #28
0
 private void _vista_VistaCargandosePorPrimeraVez(object sender, EventArgs e)
 {
     try
     {
         var lista  = SkuServicio.ObtenerSkuConUnidadDeMedida();
         var indice = 1;
         foreach (var sku in lista)
         {
             sku.SKU = indice;
             indice++;
         }
         _vista.SkusParaBonificarBonoPorEscala   = lista;
         _vista.SkusParaBonificarBonoPorMultiplo = lista;
         _vista.SkusParaBonificarPorMontoGeneral = lista;
         _vista.PromosPorEscala = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
             Promo = new Promo {
                 PROMO_TYPE = "BONUS_BY_SCALE"
             }
         });
         _vista.PromosPorMultiplo = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
             Promo = new Promo {
                 PROMO_TYPE = "BONUS_BY_MULTIPLE"
             }
         });
         _vista.PromosPorCombo = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
             Promo = new Promo {
                 PROMO_TYPE = "BONUS_BY_COMBO"
             }
         });
         _vista.PromosDeBonificacionPorMontoGeneral = PromoServicio.ObtenerPromoPorTipo(new PromoArgumento {
             Promo = new Promo {
                 PROMO_TYPE = "BONUS_BY_GENERAL_AMOUNT"
             }
         });
         _vista.Privilegios = PrivilegioServicio.ObtenerPrivilegiosDeVista("btnBonusForPromo", _vista.Login);
         _vista.BonosPorComboDePromoDisponibles = PromoServicio.ObtenerBonoDePromoDeBonoPorComboDisponibles(new PromoArgumento {
             Promo = new Promo {
                 PROMO_ID = null
             }
         });
     }
     catch (Exception ex)
     {
         _vista.EstablecerError(ex.Message, sender);
     }
 }
 private void _vista_UsuarioDeseaObtenerDescuentoDePromoDeDescuentoPorEscala(object sender, PromoArgumento e)
 {
     try
     {
         var skusAsociadosAPromocionDeDescuentoPorEscala = PromoServicio.ObtenerDescuentoDePromoDeDescuentoPorEscala(e);
         var promoIdentity = 1;
         foreach (var skuConDescuentoPorEscala in skusAsociadosAPromocionDeDescuentoPorEscala)
         {
             skuConDescuentoPorEscala.PROMO_IDENTITY = promoIdentity;
             promoIdentity++;
         }
         _vista.PromocionesDeDescuentoPorEscala = skusAsociadosAPromocionDeDescuentoPorEscala;
     }
     catch (Exception exception)
     {
         _vista.EstablecerError(exception.Message, sender);
     }
 }
        private void AsociarDescuentoPorMontoGeneralAPromocionDeDescuentoPorMontoGeneral(PromoArgumento e, object sender, bool esPromocionNueva)
        {
            var operacion = PromoServicio.AsociarDescuentoPorMontoGeneralAPromocionDeDescuentoPorMontoGeneral(e.DescuentoPorMontoGeneralDePromo);

            if (operacion.Resultado == ResultadoOperacionTipo.Exito)
            {
                _vista.DescuentosPorMontoGeneralAsociadosAPromocionDeDescuentoPorMontoGeneral = PromoServicio.ObtenerDescuentosPorMontoGeneralAsociadosAPromocionDeDescuentoPorMontoGeneral(e);
                _vista.TerminoProceso(
                    esPromocionNueva
                        ? "cpUsuarioTerminoDeAgregarPromocionYAsociarDescuentosPorMontoGeneralAPromocionDeDescuentoPorMontoGeneral"
                        : "cpUsuarioTerminoDeAsociarDescuentosPorMontoGeneralAPromocionDeDescuentoPorMontoGeneral",
                    e.Promo, sender);
            }
            else
            {
                _vista.EstablecerError(operacion.Mensaje, sender);
            }
        }