Пример #1
0
 private void MP_Limpiar()
 {
     try
     {
         Tb_Cod.Clear();
         Tb_NUmGranja.Clear();
         Tb_Placa.Clear();
         Tb_Observacion.Clear();
         Tb_Observacion.Clear();
         Tb_Entregado.Clear();
         Tb_FechaEnt.Value = DateTime.Now;
         Tb_FechaRec.Value = DateTime.Now;
         if (_Limpiar == false)
         {
             UTGlobal.MG_SeleccionarCombo(Cb_Tipo);
         }
         MP_CargarDetalle(Convert.ToInt32(Cb_Tipo.Value), 2);
         Tb_TotalVendido.Value = 0;
         Tb_TotalEnviado.Value = 0;
         Tb_TotalMaples.Value  = 0;
         Tb_TotalFisico.Value  = 0;
         Tb_TPrecio.Value      = 0;
         Tb_TSaldoTo.Value     = 0;
         // ((DataTable)Dgv_Detalle.DataSource).Clear();
         //  Dgv_Detalle.DataSource = null;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.StackTrace, GLMensaje.Error);
     }
 }
Пример #2
0
 private void MP_InicioArmarCombo()
 {
     //Carga las librerias al combobox desde una lista
     UTGlobal.MG_ArmarCombo(Cb_Tipo,
                            new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.PRODUCTO),
                                                                                          Convert.ToInt32(ENEstaticosOrden.PRODUCTO_GRUPO2)).ToList());
 }
Пример #3
0
 private void btn_Tipo_Click(object sender, EventArgs e)
 {
     try
     {
         int idLibreria = 0;
         var lLibreria  = new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.COMPRA_INGRESO),
                                                                                        Convert.ToInt32(ENEstaticosOrden.COMPRA_INGRESO_TIPO));
         if (lLibreria.Count() > 0)
         {
             idLibreria = lLibreria.Select(x => x.IdLibreria).Max();
         }
         VLibreriaLista libreria = new VLibreriaLista()
         {
             IdGrupo  = Convert.ToInt32(ENEstaticosGrupo.COMPRA_INGRESO),
             IdOrden  = Convert.ToInt32(ENEstaticosOrden.COMPRA_INGRESO_TIPO),
             IdLibrer = idLibreria + 1,
             Descrip  = Cb_Tipo.Text == "" ? "" : Cb_Tipo.Text,
             Fecha    = DateTime.Now.Date,
             Hora     = DateTime.Now.ToString("hh:mm"),
             Usuario  = UTGlobal.Usuario,
         };
         if (new ServiceDesktop.ServiceDesktopClient().LibreriaGuardar(libreria))
         {
             UTGlobal.MG_ArmarCombo(Cb_Tipo,
                                    new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.COMPRA_INGRESO),
                                                                                                  Convert.ToInt32(ENEstaticosOrden.COMPRA_INGRESO_TIPO)).ToList());
             Cb_Tipo.SelectedIndex = ((List <VLibreria>)Cb_Tipo.DataSource).Count() - 1;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, GLMensaje.Error);
     }
 }
Пример #4
0
        private void MP_Habilitar()
        {
            try
            {
                Tb_Id.ReadOnly                = false;
                Tb_CodProducto.ReadOnly       = false;
                Tb_Descripcion.ReadOnly       = false;
                Tb_CodBarras.ReadOnly         = false;
                Tb_Peso.IsInputReadOnly       = false;
                Cb_UnidadVenta.Enabled        = true;
                Cb_UniPeso.Enabled            = true;
                Cb_Grupo1.Enabled             = true;
                Cb_Grupo2.Enabled             = true;
                Cb_Grupo3.Enabled             = true;
                Cb_Grupo4.Enabled             = true;
                Cb_Grupo5.Enabled             = true;
                BtAdicionar.Enabled           = true;
                sw_TipoPro.IsReadOnly         = false;
                Tb_IdProducto.IsInputReadOnly = false;
                Tb_Descripcion.ReadOnly       = false;
                Tb_Cantidad.IsInputReadOnly   = false;
                UTGlobal.MG_CrearCarpetaImagenes(EnCarpeta.Imagen, ENSubCarpetas.ImagenesProducto);
                UTGlobal.MG_CrearCarpetaTemporal();
                Dgv_Buscardor.Enabled = false;
                Tb_CodProducto.Focus();

                Tb_Producto.ReadOnly          = false;
                Tb_IdProducto.IsInputReadOnly = false;
                Tb_Cantidad.IsInputReadOnly   = false;
            }
            catch (Exception ex)
            {
                MP_MostrarMensajeError(ex.Message);
            }
        }
Пример #5
0
 private void MP_ArmarComboInicial()
 {
     try
     {
         //Carga las librerias al combobox desde una lista
         UTGlobal.MG_ArmarCombo(Cb_Grupo1,
                                new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.PRODUCTO),
                                                                                              Convert.ToInt32(ENEstaticosOrden.PRODUCTO_GRUPO1)).ToList());
         UTGlobal.MG_ArmarCombo(Cb_Grupo2,
                                new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.PRODUCTO),
                                                                                              Convert.ToInt32(ENEstaticosOrden.PRODUCTO_GRUPO2)).ToList());
         UTGlobal.MG_ArmarCombo(Cb_Grupo3,
                                new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.PRODUCTO),
                                                                                              Convert.ToInt32(ENEstaticosOrden.PRODUCTO_GRUPO3)).ToList());
         UTGlobal.MG_ArmarCombo(Cb_Grupo4,
                                new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.PRODUCTO),
                                                                                              Convert.ToInt32(ENEstaticosOrden.PRODUCTO_GRUPO4)).ToList());
         UTGlobal.MG_ArmarCombo(Cb_Grupo5,
                                new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.PRODUCTO),
                                                                                              Convert.ToInt32(ENEstaticosOrden.PRODUCTO_GRUPO5)).ToList());
         UTGlobal.MG_ArmarCombo(Cb_UnidadVenta,
                                new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.PRODUCTO),
                                                                                              Convert.ToInt32(ENEstaticosOrden.PRODUCTO_UN_VENTA)).ToList());
         UTGlobal.MG_ArmarCombo(Cb_UniPeso,
                                new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.PRODUCTO),
                                                                                              Convert.ToInt32(ENEstaticosOrden.PRODUCTO_UN_PESO)).ToList());
     }
     catch (Exception ex)
     {
         MP_MostrarMensajeError(ex.Message);
     }
 }
Пример #6
0
 private void btn_UnidadPeso_Click(object sender, EventArgs e)
 {
     try
     {
         int idLibreria = 0;
         var lLibreria  = new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.PRODUCTO),
                                                                                        Convert.ToInt32(ENEstaticosOrden.PRODUCTO_UN_PESO));
         if (lLibreria.Count() > 0)
         {
             idLibreria = lLibreria.Select(x => x.IdLibreria).Max();
         }
         VLibreriaLista libreria = new VLibreriaLista()
         {
             IdGrupo  = Convert.ToInt32(ENEstaticosGrupo.PRODUCTO),
             IdOrden  = Convert.ToInt32(ENEstaticosOrden.PRODUCTO_UN_PESO),
             IdLibrer = idLibreria + 1,
             Descrip  = Cb_UniPeso.Text == "" ? "" : Cb_UniPeso.Text,
             Fecha    = DateTime.Now.Date,
             Hora     = DateTime.Now.ToString("hh:mm"),
             Usuario  = UTGlobal.Usuario,
         };
         if (new ServiceDesktop.ServiceDesktopClient().LibreriaGuardar(libreria))
         {
             UTGlobal.MG_ArmarCombo(Cb_UniPeso,
                                    new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.PRODUCTO),
                                                                                                  Convert.ToInt32(ENEstaticosOrden.PRODUCTO_UN_PESO)).ToList());
             Cb_UniPeso.SelectedIndex = ((List <VLibreria>)Cb_UniPeso.DataSource).Count() - 1;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Comuniquece con el administrador del sistema");
     }
 }
Пример #7
0
        private void MP_Limpiar()
        {
            try
            {
                Tb_IdCompraIngreso.Clear();
                Tb_NUmGranja.Clear();
                Tb_Placa.Clear();

                Tb_FechaEnt.Value = DateTime.Now;
                Tb_FechaRec.Value = DateTime.Now;
                if (_Limpiar == false)
                {
                    UTGlobal.MG_SeleccionarCombo(Cb_Tipo);
                }
                //((List<VCompraIngreso_01>)Dgv_Detalle.DataSource).Clear();
                Dgv_Detalle.DataSource   = null;
                Dgv_Seleccion.DataSource = null;
                Tb_Recep_TCantidad.Value = 0;
                Tb_Recep_TPrecio.Value   = 0;
                Tb_Recep_Total.Value     = 0;
                Tb_TCantidad.Value       = 0;
                Tb_TPrecio.Value         = 0;
                Tb_Total.Value           = 0;
                // ((DataTable)Dgv_Detalle.DataSource).Clear();
                //  Dgv_Detalle.DataSource = null;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.StackTrace, GLMensaje.Error);
            }
        }
Пример #8
0
        private void MP_InicioArmarCombo()
        {
            UTGlobal.MG_ArmarComboSucursal(Cb_Almacen1,
                                           new ServiceDesktop.ServiceDesktopClient().SucursalListarCombo().ToList());

            UTGlobal.MG_ArmarComboSucursal(Cb_Almacen2,
                                           new ServiceDesktop.ServiceDesktopClient().SucursalListarCombo().ToList());
        }
Пример #9
0
 private void MP_Iniciar()
 {
     LblTitulo.Text = _NombreFormulario;
     //Carga las librerias al combobox desde una lista
     UTGlobal.MG_ArmarCombo(Cb_CliCiudad,
                            new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.CLIENTE),
                                                                                          Convert.ToInt32(ENEstaticosOrden.CIUDAD_CLIENTE)).ToList());
     UTGlobal.MG_ArmarCombo(Cb_CliFacturacion,
                            new ServiceDesktop.ServiceDesktopClient().LibreriaListarCombo(Convert.ToInt32(ENEstaticosGrupo.CLIENTE),
                                                                                          Convert.ToInt32(ENEstaticosOrden.FACTURACION_CLIENTE)).ToList());
     MP_IniciarMapa();
     btnMax.Visible = false;
     MP_CargarEncabezado();
     MP_InHabilitar();
 }
Пример #10
0
        private void MP_Iniciar()
        {
            try
            {
                LblTitulo.Text = _NombreFormulario;
                //Carga las librerias al combobox desde una lista
                UTGlobal.MG_ArmarComboSucursal(Cb_Almacen,
                                               new ServiceDesktop.ServiceDesktopClient().SucursalListarCombo().ToList());

                MP_CargarCategoria();
                //MP_InHabilitar();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.StackTrace, "Comuniquece con el administrador del sistema");
            }
        }
Пример #11
0
 private void MP_Limpiar()
 {
     Tb_Id.Clear();
     Tb_CodProducto.Clear();
     Tb_Descripcion.Clear();
     Tb_CodBarras.Clear();
     Tb_Peso.Value       = 0;
     Tb_IdProducto.Value = 0;
     Tb_Cantidad.Value   = 0;
     Tb_Producto.Clear();
     if (_Limpiar == false)
     {
         UTGlobal.MG_SeleccionarCombo(Cb_UnidadVenta);
         UTGlobal.MG_SeleccionarCombo(Cb_UniPeso);
         UTGlobal.MG_SeleccionarCombo(Cb_Grupo1);
         UTGlobal.MG_SeleccionarCombo(Cb_Grupo2);
         UTGlobal.MG_SeleccionarCombo(Cb_Grupo3);
         UTGlobal.MG_SeleccionarCombo(Cb_Grupo4);
         UTGlobal.MG_SeleccionarCombo(Cb_Grupo5);
     }
 }
Пример #12
0
 private void MP_Habilitar()
 {
     Txb_CliCod.ReadOnly         = false;
     Txb_CliCodSpyre.ReadOnly    = false;
     Txb_CliDescripcion.ReadOnly = false;
     Txb_CliRazonSoc.ReadOnly    = false;
     Txb_CliNit.ReadOnly         = false;
     Chb_CliContado.Enabled      = true;
     Chb_CliCredito.Enabled      = true;
     Txb_CliDireccion.ReadOnly   = false;
     Txb_CliContacto1.ReadOnly   = false;
     Txb_CliContacto2.ReadOnly   = false;
     Txb_CliTel1.ReadOnly        = false;
     Txb_CliTel2.ReadOnly        = false;
     Txb_CliEmail1.ReadOnly      = false;
     Txb_CliEmail2.ReadOnly      = false;
     Cb_CliCiudad.Enabled        = true;
     Cb_CliFacturacion.Enabled   = true;
     BtAdicionar.Enabled         = true;
     UTGlobal.MG_CrearCarpetaImagenes(EnCarpeta.Imagen, ENSubCarpetas.ImagenesCliente);
     UTGlobal.MG_CrearCarpetaTemporal();
 }
Пример #13
0
 private void MP_Limpiar()
 {
     Txb_CliCod.Clear();
     Txb_CliCodSpyre.Clear();
     Txb_CliDescripcion.Clear();
     Txb_CliRazonSoc.Clear();
     Txb_CliNit.Clear();
     Chb_CliContado.Checked = true;
     Chb_CliCredito.Checked = false;
     Txb_CliDireccion.Clear();
     Txb_CliContacto1.Clear();
     Txb_CliContacto2.Clear();
     Txb_CliTel1.Clear();
     Txb_CliTel2.Clear();
     Txb_CliEmail1.Clear();
     Txb_CliEmail2.Clear();
     if (_Limpiar == false)
     {
         UTGlobal.MG_SeleccionarCombo(Cb_CliCiudad);
         UTGlobal.MG_SeleccionarCombo(Cb_CliFacturacion);
     }
 }
Пример #14
0
 private void MP_Limpiar()
 {
     try
     {
         Tb_Id.Clear();
         Cb_Almacen1.SelectedIndex = 0;
         Cb_Almacen2.SelectedIndex = 0;
         Tb_Observacion.Clear();
         Tb_Total1.Value     = 0;
         Tb_Total2.Value     = 0;
         Dgv_Detalle.Enabled = true;
         if (_Limpiar == false)
         {
             UTGlobal.MG_SeleccionarCombo(Cb_Almacen1);
             UTGlobal.MG_SeleccionarCombo(Cb_Almacen2);
         }
         // ((DataTable)Dgv_Detalle.DataSource).Clear();
         //  Dgv_Detalle.DataSource = null;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.StackTrace, GLMensaje.Error);
     }
 }
Пример #15
0
 private void MP_Limpiar()
 {
     try
     {
         Tb_Id.Clear();
         Tb_Proveedor.Clear();
         Tb_FechaVenta.Value = DateTime.Today;
         Tb_FechaVenc.Value  = DateTime.Today;
         Tb_Observacion.Clear();
         Tb_NFactura.Clear();
         Sw_Emision.Value   = true;
         Sw_TipoVenta.Value = true;
         if (_Limpiar == false)
         {
             UTGlobal.MG_SeleccionarCombo(Cb_Sucursal);
         }
         // ((DataTable)Dgv_Detalle.DataSource).Clear();
         //  Dgv_Detalle.DataSource = null;
     }
     catch (Exception ex)
     {
         MP_MostrarMensajeError(ex.Message);
     }
 }
Пример #16
0
 public override bool MH_NuevoRegistro()
 {
     try
     {
         int    id = 0;
         bool   resultado;
         string mensaje = "";
         //Llena el objeto
         VProducto Producto = new VProducto()
         {
             IdProd      = Tb_CodProducto.Text,
             Estado      = Convert.ToInt32(ENProductoEstado.Activo),
             Descripcion = Tb_Descripcion.Text,
             CodBar      = Tb_CodBarras.Text,
             Peso        = string.Empty == Tb_Peso.Text ? 0 : Convert.ToDecimal(Tb_Peso.Text),
             UniVenta    = Convert.ToInt32(Cb_UnidadVenta.Value),
             UniPeso     = Convert.ToInt32(Cb_UniPeso.Value),
             Grupo1      = Convert.ToInt32(Cb_Grupo1.Value),
             Grupo2      = Convert.ToInt32(Cb_Grupo2.Value),
             Grupo3      = Convert.ToInt32(Cb_Grupo3.Value),
             Grupo4      = Convert.ToInt32(Cb_Grupo4.Value),
             Grupo5      = Convert.ToInt32(Cb_Grupo5.Value),
             Tipo        = sw_TipoPro.Value == true ? 1 : 2,
             Imagen      = _imagen,
             IdProducto  = Tb_IdProducto.Text == string.Empty ? 0 : Convert.ToInt32(Tb_IdProducto.Value),
             Producto2   = Tb_Producto.Text == string.Empty ? "": Tb_Producto.Text,
             Cantidad    = Tb_Cantidad.Text == string.Empty ? 0 : Convert.ToDecimal(Tb_Cantidad.Text),
             Fecha       = DateTime.Now.Date,
             Hora        = DateTime.Now.ToString("hh:mm"),
             Usuario     = UTGlobal.Usuario,
         };
         if (VM_Nuevo) //Registro
         {
             resultado = new ServiceDesktop.ServiceDesktopClient().ProductoGuardar(Producto, ref id);
             if (resultado)
             {
                 UTGlobal.MG_MoverImagenRuta(Path.Combine(ConexionGlobal.gs_CarpetaRaiz, EnCarpeta.Imagen, ENSubCarpetas.ImagenesProducto), _imagen, Pc_ImgProducto);
                 MP_Filtrar(1);
                 MP_Limpiar();
                 Tb_Descripcion.Focus();
                 _Limpiar         = true;
                 _imagen          = "Default.jpg";
                 _ModificarImagen = false;
                 mensaje          = GLMensaje.Nuevo_Exito(_NombreFormulario, id.ToString());
             }
         }
         else//Modificar
         {
             id        = Convert.ToInt32(Tb_Id.Text);
             resultado = new ServiceDesktop.ServiceDesktopClient().ProductoModificar(Producto, id);
             if (resultado)
             {
                 if (_ModificarImagen)
                 {
                     UTGlobal.MG_MoverImagenRuta(Path.Combine(ConexionGlobal.gs_CarpetaRaiz, EnCarpeta.Imagen, ENSubCarpetas.ImagenesProducto), _imagen, Pc_ImgProducto);
                     _ModificarImagen = false;
                 }
                 Tb_CodProducto.Focus();
                 MP_Filtrar(2);
                 MP_InHabilitar();
                 _Limpiar = true;
                 _imagen  = "Default.jpg";
                 mensaje  = GLMensaje.Modificar_Exito(_NombreFormulario, id.ToString());
                 MH_Inhanbilitar();
             }
         }
         //Mensaje resultado de transaccion
         if (resultado)
         {
             ToastNotification.Show(this, mensaje, PRESENTER.Properties.Resources.GRABACION_EXITOSA, (int)GLMensajeTamano.Chico, eToastGlowColor.Green, eToastPosition.TopCenter);
         }
         else
         {
             mensaje = GLMensaje.Registro_Error(_NombreFormulario);
             ToastNotification.Show(this, mensaje, PRESENTER.Properties.Resources.CANCEL, (int)GLMensajeTamano.Chico, eToastGlowColor.Green, eToastPosition.TopCenter);
         }
         return(resultado);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.StackTrace, GLMensaje.Error);
         return(false);
     }
 }
Пример #17
0
        public override bool MH_NuevoRegistro()
        {
            int    id        = 0;
            bool   resultado = false;
            string mensaje   = "";

            VCliente Cliente = new VCliente()
            {
                IdSpyre     = Txb_CliCodSpyre.Text,
                Descripcion = Txb_CliDescripcion.Text,
                RazonSocial = Txb_CliRazonSoc.Text,
                Nit         = Txb_CliNit.Text,
                TipoCliente = Chb_CliContado.Checked ? 1 : 0,
                Direcccion  = Txb_CliDireccion.Text,
                Contacto1   = Txb_CliContacto1.Text,
                Contacto2   = Txb_CliContacto2.Text,
                Telfono1    = Txb_CliTel1.Text,
                Telfono2    = Txb_CliTel2.Text,
                Email1      = Txb_CliEmail1.Text,
                Email2      = Txb_CliEmail2.Text,
                Ciudad      = Convert.ToInt32(Cb_CliCiudad.Value),
                Facturacion = Convert.ToInt32(Cb_CliFacturacion.Value),
                Latitud     = Convert.ToDecimal(_latitud),
                Longittud   = Convert.ToDecimal(_longitud),
                Imagen      = _imagen,
                Fecha       = DateTime.Now.Date,
                Hora        = DateTime.Now.ToString("hh:mm"),
                Usuario     = UTGlobal.Usuario,
            };

            if (VM_Nuevo) //Nuevo
            {
                resultado = new ServiceDesktop.ServiceDesktopClient().ClienteGuardar(Cliente, ref id);
                if (resultado)
                {
                    Txb_CliCodSpyre.Focus();
                    UTGlobal.MG_MoverImagenRuta(Path.Combine(ConexionGlobal.gs_CarpetaRaiz, EnCarpeta.Imagen, ENSubCarpetas.ImagenesCliente), _imagen, Pc_Img);
                    MP_Filtrar(1);
                    MP_Limpiar();
                    _Limpiar         = true;
                    _imagen          = "Default.jpg";
                    _ModificarImagen = false;
                    mensaje          = GLMensaje.Nuevo_Exito(_NombreFormulario, id.ToString());
                }
            }
            else //Modifcar
            {
                id        = Convert.ToInt32(Txb_CliCod.Text);
                resultado = new ServiceDesktop.ServiceDesktopClient().ClienteModificar(Cliente, id);
                if (resultado)
                {
                    if (_ModificarImagen)
                    {
                        UTGlobal.MG_MoverImagenRuta(Path.Combine(ConexionGlobal.gs_CarpetaRaiz, EnCarpeta.Imagen, ENSubCarpetas.ImagenesCliente), _imagen, Pc_Img);
                        _ModificarImagen = false;
                    }
                    Txb_CliCodSpyre.Focus();
                    MP_Filtrar(1);
                    MP_InHabilitar();//El formulario
                    _Limpiar = true;
                    _imagen  = "Default.jpg";
                    mensaje  = GLMensaje.Modificar_Exito(_NombreFormulario, id.ToString());
                    MH_Habilitar();//El menu
                }
            }
            if (resultado)
            {
                ToastNotification.Show(this, mensaje, PRESENTER.Properties.Resources.GRABACION_EXITOSA, (int)GLMensajeTamano.Chico, eToastGlowColor.Green, eToastPosition.TopCenter);
            }
            else
            {
                mensaje = GLMensaje.Registro_Error(_NombreFormulario);
                ToastNotification.Show(this, mensaje, PRESENTER.Properties.Resources.CANCEL, (int)GLMensajeTamano.Chico, eToastGlowColor.Green, eToastPosition.TopCenter);
            }
            return(resultado);
        }