private void FrmRptCientesAtrasados_Load(object sender, EventArgs e)
 {
     BL.ClsReportes ClsReportes = new BL.ClsReportes();
     try
     {
         this.Cursor         = Cursors.WaitCursor;
         dtResult            = ClsReportes.clientesMorosos();
         grdDatos.DataSource = dtResult;
     }
     catch (Exception ex)
     {
         ClsHelper.erroLog(ex);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Beispiel #2
0
        private void mostrarAlerta()
        {
            try
            {
                //Espera 1 minuto

                BL.ClsReportes ClsReportes = new BL.ClsReportes();
                DataTable      dtMorosos   = new DataTable();
                dtMorosos = ClsReportes.clientesMorosos();
                if (dtMorosos.Rows.Count > 0)
                {
                    // Create a regular custom button.
                    //AlertButton btn1 = new AlertButton(/*Image.FromFile(@"c:\folder-16x16.png")*/);
                    //btn1.Hint = "Ver Listado";
                    //btn1.Name = "btnListado";
                    //// Create a check custom button.
                    //AlertButton btn2 = new AlertButton(Image.FromFile(@"c:\clock-16x16.png"));
                    //btn2.Style = AlertButtonStyle.CheckButton;
                    //btn2.Down = true;
                    //btn2.Hint = "Alert On";
                    //btn2.Name = "buttonAlert";
                    // Add buttons to the AlertControl and subscribe to the events to process button clicks
                    //alertControl1.Buttons.Add(btn1);
                    //alertControl1.Buttons.Add(btn2);
                    alertControl1.ButtonClick += new AlertButtonClickEventHandler(btnListado_Click);
                    //alertControl1.ButtonDownChanged +=
                    //    new AlertButtonDownChangedEventHandler(alertControl1_ButtonDownChanged);

                    // Show a sample alert window.
                    AlertInfo info = new AlertInfo("Clientes con pagos Atrasados", "¡Se han encontrado algunos clientes que tienen cuotas atrasadas!");
                    alertControl1.AutoFormDelay = 60000;

                    alertControl1.Show(this, info);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }