Exemple #1
0
        private void btnPruebaCorreo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            XtraInputBoxArgs args = new XtraInputBoxArgs();

            // set required Input Box options
            args.Caption            = "Ingrese EMail Destino";
            args.Prompt             = "Direccion de Correo";
            args.DefaultButtonIndex = 0;
            //args.Showing += Args_Showing;
            // initialize a DateEdit editor with custom settings
            TextEdit editor = new TextEdit();

            args.Editor = editor;
            // a default DateEdit value
            args.DefaultResponse = "Correo Destino";
            // display an Input Box with the custom editor
            string result = string.Empty;

            result = XtraInputBox.Show(args).ToString();
            if (result != string.Empty)
            {
                CLS_Email Envio = new CLS_Email();
                Envio.EmailDestino = result;
                Envio.SendMailPrueba();
            }
        }
Exemple #2
0
 private void btnProbar_Click(object sender, EventArgs e)
 {
     if (dtgValoresCorreosDestino.RowCount > 0)
     {
         CLS_Email Envio = new CLS_Email();
         Envio.SendMailPrueba();
     }
 }
Exemple #3
0
 private void btnProbar_Click(object sender, EventArgs e)
 {
     if (dtgValoresCorreosDestino.RowCount > 0)
     {
         CapaDeDatos.CLS_Email Envio = new CLS_Email();
         Envio.SendMailPrueba();
         XtraMessageBox.Show("Se han enviado el Correo con Exito");
     }
 }
Exemple #4
0
 private void btnEnviar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     DialogResult = XtraMessageBox.Show("¿Desea enviar la captura de inventario", "Inventario Ciego", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
     if (DialogResult == DialogResult.Yes)
     {
         MensajeCargando(1);
         CLS_ConfigInventario sel = new CLS_ConfigInventario();
         sel.MtdSeleccionarConfiguracion();
         if (sel.Exito)
         {
             if (sel.Datos.Rows.Count > 0)
             {
                 if (sel.Datos.Rows[0]["InventarioRutaArchivosPDF"].ToString() != string.Empty)
                 {
                     AgregarAleatorios();
                     string NombreArchivo = sel.Datos.Rows[0]["InventarioRutaArchivosPDF"].ToString() + "\\" + cboSucursales.Text + "_Folio_" + txtFolio.Text + ".pdf";
                     CrearPDF(NombreArchivo);
                     CLS_Email send = new CLS_Email();
                     send.SendMailReportes("Inventario Ciego", 6, NombreArchivo);
                     if (send.Exito)
                     {
                         MarcarEnviado();
                         LimpiarCampos();
                         MensajeCargando(2);
                         XtraMessageBox.Show("Se ha enviado el Inventario con exito");
                     }
                     else
                     {
                         MensajeCargando(2);
                         XtraMessageBox.Show(send.Mensaje);
                     }
                 }
                 else
                 {
                     MensajeCargando(2);
                     XtraMessageBox.Show("No se ha establecido la ruta de Archivos PDF en parametros de Inventario");
                 }
             }
             else
             {
                 MensajeCargando(2);
             }
         }
         else
         {
             MensajeCargando(2);
             XtraMessageBox.Show(sel.Mensaje);
         }
     }
 }