예제 #1
0
        private void B_NuevoPuesto_Click(object sender, EventArgs e)
        {
            P_Adm_Departamento.Hide();

            P_Posicion.Show();
            DvgPosiciones.Show();
            DgvDept.Hide();
            try
            {
                DataSet ds = ProDepartamento.VistaPosicion();

                dt = ds.Tables[0];
                DvgPosiciones.DataSource = dt;
                // dt = ds.Tables[0];
            }
            catch (Exception error)
            {
                MessageBox.Show(error.Message + error.StackTrace);
            }
        }
예제 #2
0
        private void PuestosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            P_Adm_Departamento.Hide();
            G_Dept.Hide();
            G_Posiciones.Show();
            P_Posicion.Show();
            DvgPosiciones.Show();
            //DgvDept.Hide();
            DvgPosiciones.Enabled = false;

            try
            {
                DataSet ds = ProDepartamento.VistaPosicion();

                dt = ds.Tables[0];
                DvgPosiciones.DataSource = dt;
                // dt = ds.Tables[0];
            }
            catch (Exception error)
            {
                MessageBox.Show(error.Message + error.StackTrace);
            }
        }
예제 #3
0
 private void Button3_Click(object sender, EventArgs e)
 {
     DgvDept.Hide();
     P_Adm_Departamento.Hide();
     P_Posicion.Show();
 }