Ejemplo n.º 1
0
        private void AgModifChofer_Load(object sender, EventArgs e)
        {
            if (Codigo != null)
            {
                LBChofer.Text         = "MODIFICAR CHOFER";
                TB_Codigo.Text        = Codigo;
                TB_Nombre.Text        = Desc;
                TB_CodProveedor.Text  = Proveedor;
                TB_NombProveedor.Text = NomProve;
                FecVencLic.Text       = FechaVenc1;
                FecVencART.Text       = FechaVenc2;
                FecVencCargPel.Text   = FechaVenc3;
                FecEntLic.Text        = FechaEnt1;
                FecEntART.Text        = FechaEnt2;
                FecEntCargPel.Text    = FechaEnt3;
                ObservLicCon.Text     = Coment1;
                ObservART.Text        = Coment2;
                ObservCargPel.Text    = Coment3;
                if (int.Parse(Aplica) == 1)
                {
                    CB_CertPel.Checked = true;
                }

                TB_Nombre.ReadOnly = true;
                Modificar          = true;

                TB_Codigo.Focus();
            }
            else
            {
                LBChofer.Text = "INGRESO DE CHOFER";
                int Ultimo = CBOL.Ultimo();
                TB_Codigo.Text = (Ultimo + 1).ToString();
                CargarProveedores();
                TB_Nombre.Focus();
            }
        }
Ejemplo n.º 2
0
 private void IngVersLegajo_Shown(object sender, EventArgs e)
 {
     TB_Codigo.Focus();
 }
Ejemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     pnlConsulta.Visible = false;
     TB_Codigo.Focus();
 }
Ejemplo n.º 4
0
 private void btnCerrarAyuda_Click(object sender, EventArgs e)
 {
     pnlAyuda.Visible = false;
     TB_Codigo.Focus();
 }