private void Button_AgregarArea_Click(object sender, EventArgs e) { V_Area v_Area = new V_Area(); v_Area.Show(); Listar.Areas(this.comboBox_area); Listar.Grupo(this.comboBox_grupo); Listar.Persona(this.comboBox_persona); }
private void ComboBox_grupo2_SelectedIndexChanged(object sender, EventArgs e) { Listar.Persona(this.comboBox_nombre, this.comboBox_grupo2.Text); if (this.comboBox_grupo.Items.Count == 1) { this.comboBox_grupo.Text = this.comboBox_Area.Text; this.comboBox_grupo.Enabled = false; } else { this.comboBox_grupo.Enabled = true; } }
private void ComboBoxArea_SelectedIndexChanged(object sender, EventArgs e) { Listar.Grupo(this.comboBox_grupo, this.comboBox_area); if (this.comboBox_grupo.Items.Count == 1) { comboBox_persona.Enabled = true; this.comboBox_grupo.Enabled = false; Listar.Persona(comboBox_persona, comboBox_area.Text); } else { this.comboBox_persona.Enabled = false; this.comboBox_grupo.Enabled = true; } }
private void Button_AgregarPersonaRetira_Click(object sender, EventArgs e) { V_PersonasAutorizadas v_PersonaRetira = new V_PersonasAutorizadas(); v_PersonaRetira.ShowDialog(this); if (comboBox_area.Text.Length != 0) { v_PersonaRetira.Area = comboBox_area.Text; } if (comboBox_grupo.Text.Length != 0) { v_PersonaRetira.Grupo = comboBox_grupo.Text; } this.Show(); Listar.Persona(this.comboBox_persona); }
private void LimpiarTodo() { Listar.Areas(this.comboBox_area); this.comboBox_grupo.Items.Clear(); this.comboBox_grupo.Enabled = false; this.comboBox_persona.Items.Clear(); this.comboBox_persona.Text = ""; this.comboBox_categoria.Text = ""; Listar.Categorias(this.comboBox_categoria); this.comboBox_nombre.Text = ""; Listar.Insumos(this.comboBox_nombre, this.comboBox_categoria); this.comboBox_cantidad.Text = ""; this.comboBox_cantidad.Items.Clear(); Listar.Persona(this.comboBox_persona); this.textBoxPersonaRetira.Text = ""; _listarInsumos.Clear(); this.dataGridView1.Rows.Clear(); }
private void V_principal_Load(object sender, EventArgs e) { Screen screen = Screen.PrimaryScreen; int _height = screen.Bounds.Height - 50; int _width = screen.Bounds.Width; this.Size = new Size(_width, _height); if (ControladorFachada.EsAdmin()) { EsAdmin(); } else { EsUsuario(); } Listar.Areas(this.comboBox_area); Listar.Persona(this.comboBox_persona); Listar.Categorias(this.comboBox_categoria); Listar.Insumos(this.comboBox_nombre, this.comboBox_categoria); }
private void ComboBox_grupo_SelectedIndexChanged(object sender, EventArgs e) { this.comboBox_persona.Enabled = true; Listar.Persona(this.comboBox_persona, this.comboBox_grupo.Text); }