public ReactivarEspecial(String ales_id, Lista_especiales e) { id = ales_id; InitializeComponent(); inst_esp = e; }
public AlumnosEspeciales(Lista_especiales x, Boolean s,String id_esp,String exp_esp) { id = id_esp; a = s; InitializeComponent(); vent = x; dateTimePicker1.MinDate = Convert.ToDateTime(abrir.consultaLibreS("SELECT getdate()")); if (!a) { DateTime h =Convert.ToDateTime( abrir.consultaLibreS("SELECT GETDATE()")); if ((h.CompareTo(dateTimePicker1.Value) == 1)) { if (!validar.verificarEspacios(groupBox1)) { MessageBox.Show("La fecha de tiempo de uso debe ser mayor a la fecha actual.", "Sanción", MessageBoxButtons.OK, MessageBoxIcon.Information); }else{ MessageBox.Show("Porfavor es necesario ingresar todos los campos.", "Usuarios especiales", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } } else { button1.Text = "Guardar"; info = abrir.consultaLibreDT("SELECT * FROM AlumnoEspecial WHERE ales_exp_ext='" + exp_esp + "' and ales_id = " + id); textBox1.Text = info.Rows[0][1].ToString(); textBox2.Text = info.Rows[0][2].ToString(); textBox3.Text = info.Rows[0][3].ToString(); textBox4.Text = info.Rows[0][4].ToString(); Justif.Text = info.Rows[0][7].ToString(); dateTimePicker1.Visible = false; label8.Visible = false; label5.Location = new Point(11, 117); Justif.Location = new Point(14, 140); button1.Location = new Point(14, 225); button6.Location = new Point(88, 225); this.Size = new Size(520, 340); groupBox1.Size = new Size(494, 270); } } }
public InactivoEsp(Lista_especiales e) { InitializeComponent(); esp = e; }
public Eliminarespecial(Lista_especiales e) { InitializeComponent(); esp = e; }
private void button2_Click(object sender, EventArgs e) { Lista_especiales ver = new Lista_especiales(); ver.ShowDialog(); }
public ReactivarEsp(Lista_especiales e) { InitializeComponent(); dateTimePicker1.MinDate = Convert.ToDateTime(abrir.consultaLibreS("SELECT getdate()")); esp = e; }
private void btEspeciales_Click(object sender, EventArgs e) { Lista_especiales le = new Lista_especiales(); le.ShowDialog(); }