Beispiel #1
0
 private void Mostrar()
 {
     try
     {
         DataListado.DataSource = ELinea.Mostrar();
         OcultarColumnas();
     }
     catch (Exception Exc)
     {
         MensajeError(Exc.Message);
     }
 }
Beispiel #2
0
        private void TxtCod_linea_DoubleClick(object sender, EventArgs e)
        {
            FLineaLista Listado = new FLineaLista();

            Dt = ELinea.Mostrar();
            if (Dt.Rows.Count == 0)
            {
                MensajeError("No Existen Registros!");
            }
            else
            {
                Listado.TxtFlag = "Pais";
                Listado.ShowDialog();
            }
        }
Beispiel #3
0
 private void TxtCod_linea_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F12)
     {
         FLineaLista Listado = new FLineaLista();
         Dt = ELinea.Mostrar();
         if (Dt.Rows.Count == 0)
         {
             MensajeError("No Existen Registros!");
         }
         else
         {
             Listado.TxtFlag = "Pais";
             Listado.ShowDialog();
         }
     }
 }
Beispiel #4
0
        private void TxtCod_linea_DoubleClick(object sender, EventArgs e)
        {
            FLineaLista Listado = new FLineaLista
            {
                TxtFlag = "Articulo"
            };

            Dt = ELinea.Mostrar();
            if (Dt.Rows.Count == 0)
            {
                MensajeError("No Existen Registros Disponibles!");
            }
            else if (Dt.Rows.Count != 0)
            {
                Listado.ShowDialog();
                TxtCod_sublinea.Text  = string.Empty;
                TxtDesc_sublinea.Text = string.Empty;
            }
            ;
        }
Beispiel #5
0
 private void Registros()
 {
     Dt = ELinea.Mostrar();
     LbTotalReg.Text = Convert.ToString(Dt.Rows.Count.ToString());
 }