private void FgDetalle_KeyPressEdit(object sender, C1.Win.C1FlexGrid.KeyPressEditEventArgs e) { if (e.KeyChar.ToString() == "F2") { GrabarVenta(); } }
private void FgFix_KeyPressEdit(object sender, C1.Win.C1FlexGrid.KeyPressEditEventArgs e) { int n_col = FgFix.Col - 1; // RESTAMOS 1 PARA IGUALARLO AL INDICE DEL ARRAY DEL FILTRO if ((arrCabeceraFlex[n_col, 2].ToString() == "N") || (arrCabeceraFlex[n_col, 2].ToString() == "D")) { if (!strNumerovalidos.Contains(e.KeyChar)) { e.Handled = true; } } if (arrCabeceraFlex[n_col, 2].ToString() == "C") { if (!strCaracteres.Contains(e.KeyChar)) { e.Handled = true; } } if (arrCabeceraFlex[n_col, 2].ToString() == "F") { if (!strCarFecha.Contains(e.KeyChar)) { e.Handled = true; } } }
private void FgItems_KeyPressEdit(object sender, C1.Win.C1FlexGrid.KeyPressEditEventArgs e) { if (e.Col == 4) { if (!strNumerovalidos.Contains(e.KeyChar)) { e.Handled = true; } } }
private void FgDato_KeyPressEdit(object sender, C1.Win.C1FlexGrid.KeyPressEditEventArgs e) { if (b_cargado == true) { return; } if (!strNumerovalidos.Contains(e.KeyChar)) { e.Handled = true; } }
private void FgItems_KeyPressEdit(object sender, C1.Win.C1FlexGrid.KeyPressEditEventArgs e) { if (n_QueHace == 3) { return; } if ((e.Col == 5) || (e.Col == 5)) { if (!strNumerovalidos.Contains(e.KeyChar)) { e.Handled = true; } } }
private void FgItems_KeyPressEdit(object sender, C1.Win.C1FlexGrid.KeyPressEditEventArgs e) { //if (e.Col == 2) //{ // if (!c_Caracteres.Contains(e.KeyChar)) // { // e.Handled = true; // } //} if (e.Col == 2) { if (!c_Numerovalidos.Contains(e.KeyChar)) { e.Handled = true; } } }
private void FgRec_KeyPressEdit(object sender, C1.Win.C1FlexGrid.KeyPressEditEventArgs e) { //if ((e.Col == 1) || (e.Col == 2) || (e.Col == 6)) //{ // if (!strCaracteres.Contains(e.KeyChar)) // { // e.Handled = true; // } //} if (e.Col == 5) { if (!strNumerovalidos.Contains(e.KeyChar)) { e.Handled = true; } } }
private void FgItems_KeyPressEdit(object sender, C1.Win.C1FlexGrid.KeyPressEditEventArgs e) { }