private void FrmTejeduriaRutaProces_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.N && e.Control) { Nuevo(); } else if (e.KeyCode == Keys.I && e.Control) { NuevoItem(); } else if (e.KeyCode == Keys.B && e.Control) { FrnTejeduria_qry frmoc = new FrnTejeduria_qry(); frmoc.pasard += new FrnTejeduria_qry.pasar(EjecutarTejeduria); frmoc.ShowDialog(); } else if (e.KeyCode == Keys.Escape) { this.Close(); } }
private void btnBuscTejido_Click(object sender, EventArgs e) { FrnTejeduria_qry frmoc = new FrnTejeduria_qry(); frmoc.pasard += new FrnTejeduria_qry.pasar(EjecutarTejeduria); frmoc.ShowDialog(); }
private void FrmTejeduria_mnt_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.N && e.Control) { Nuevo(); } else if (e.KeyCode == Keys.I && e.Control) { try { frmModalDetalle frmps = new frmModalDetalle(); frmps.FormParent = this; frmps.EstadoDet = 1; frmps.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } } else if (e.KeyCode == Keys.R && e.Control) { NuevoItem(); } else if (e.KeyCode == Keys.B && e.Control) { FrnTejeduria_qry frmoc = new FrnTejeduria_qry(); frmoc.pasard += new FrnTejeduria_qry.pasar(EjecutarTejeduria); frmoc.ShowDialog(); } else if (e.KeyCode == Keys.G && e.Control) { var idCli = txt_IdCli.Text; var idTejido = txt_idTejido.Text; var idMercado = cb_Mercado.Text; var idDestino = cb_Destino.Text; var idAncho = txt_InfTecCrudo_idancho.Text; var idColor = txtIdColor.Text; if ((idCli != "") & (idTejido != "") & (idMercado != "") & (idDestino != "") & (idAncho != "") & (idColor != "")) { Grabar(); } else { MessageBox.Show("Falta ingresar un dato", "Verificar", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else if (e.KeyCode == Keys.E && e.Control) { HabilitarTexto(groupBox1); HabilitarTexto(groupBox2); HabilitarTexto(groupBox3); HabilitarTexto(groupBox4); HabilitarTexto(groupBox5); HabilitarTexto(groupBox8); } else if(e.KeyCode == Keys.Escape) { this.Close(); } }