private void txtnum_cuenta_Validating(object sender, CancelEventArgs e) { if (cbotipopago.Text.Contains("DEPOSITO EN CUENTA") && cbotipopago.Text != string.Empty) { ValidateError.Validate_text(txtnum_cuenta, "Requerido"); } else { ValidateError.Validate_text(txtnum_cuenta, null); } }
private void txtcussp_Validating(object sender, CancelEventArgs e) { if (!cbore_pensionario.Text.Contains("O.N.P") && cbore_pensionario.Text != string.Empty) { ValidateError.Validate_text(txtcussp, "Requerido"); } else { ValidateError.Validate_text(txtcussp, null); } }
public static Response Error(string key) { ValidateError validateError = ValidateMessage(key); Response response = new Response { State = validateError.Code, Message = validateError.LongName, Data = null, Exceptions = null }; return response; }
private void dgvvista_user_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { frmempresa femp = (frmempresa)Owner; if (dgvvista_user.Rows.GetFirstRow(DataGridViewElementStates.Selected) != -1) { femp.txtiduser.Text = dgvvista_user.CurrentRow.Cells[0].Value.ToString(); femp.txtusuario.Text = dgvvista_user.CurrentRow.Cells[2].Value.ToString(); ValidateError.Validate_text(femp.txtusuario, null); this.Close(); } }
public static Response Success(object data) { ValidateError validateError = ValidateMessage("Completed"); Response response = new Response { State = validateError.Code, Message = validateError.LongName, Data = data, Exceptions = null }; return response; }
public bool Equals(ValidateError other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.Level, Level) && Equals(other.Description, Description)); }
private void dgvvista_emp_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DataGridViewRow ro = dgvvista_emp.CurrentRow; if (dgvvista_emp.Rows.GetFirstRow(DataGridViewElementStates.Selected) != -1) { frmsucursal su = (frmsucursal)Owner; su.txtidempresa.Text = ro.Cells[4].Value.ToString(); su.txtcodigo_sucursal.Text = ro.Cells[5].Value.ToString(); su.txtrazon_social.Text = ro.Cells[6].Value.ToString(); su.txtdomicilio.Text = ro.Cells[9].Value.ToString(); su.txtruc.Text = ro.Cells[10].Value.ToString(); su.txtregimen.Text = ro.Cells[11].Value.ToString(); su.txtusuario.Text = ro.Cells[12].Value.ToString(); ValidateError.Validate_text(su.txtusuario, null); this.Close(); } }
private void txtdias_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_text(txtdias, "Ingrese el numero dias"); }
private void txtpassword_Validating(object sender, System.ComponentModel.CancelEventArgs e) { ValidateError.Validate_text(txtpassword, "Contraseña requerida!"); }
private void cbxsuspension_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_combo(cbxsuspension, "¡Requerido!"); }
private void txthora_Validating(object sender, System.ComponentModel.CancelEventArgs e) { ValidateError.Validate_text(txthora, "Codigo de hora requerido!"); }
//VALIDAR CAJA private void txtnom_cargo_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_text(txtnom_cargo, "Ingrese Cargo"); }
private void txtcoddoc_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_text(txtcoddoc, "¡Campo requerido!"); }
private void cbxregimen_Validating(object sender, System.ComponentModel.CancelEventArgs e) { ValidateError.Validate_combo(cbxregimen, "Campo Requerido"); }
private void txtdescCorta_Validating(object sender, System.ComponentModel.CancelEventArgs e) { ValidateError.Validate_text(txtdescCorta, "Campo Requerido"); }
private void txtrol_Validating(object sender, System.ComponentModel.CancelEventArgs e) { ValidateError.Validate_text(txtrol, "Rol requerido!"); }
private void txtTipoPlanilla_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_text(txtTipoPlanilla, "Campo Requerido"); }
private void txtdescSubsi_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_text(txtdescSubsi, "¡Requerido!"); }
private void cbxtiposub_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_combo(cbxtiposub, "¡Requerido!"); }
private void Txtdireccion_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_text(Txtdireccion, "¡Campo Requerido!"); }
private void Cboregimen_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_combo(Cboregimen, "¡Campo Requerido!"); }
private void txtAbrev_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_text(txtAbrev, "¡Campo Requerido!"); }
private void txtdocumento_Validated(object sender, EventArgs e) { ValidateError.Validate_text(txtdocumento, "¡Campo requerido!"); }
private void txtasig_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_text(txtasig, "Campo asignacion familiar requerido"); }
//... private void txtBanco_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_text(txtBanco, "Campo requerido!"); }
private void cborol_Validating(object sender, System.ComponentModel.CancelEventArgs e) { ValidateError.Validate_combo(cborol, "Campo rol requerido!"); }
private void cbxmes_Validating(object sender, System.ComponentModel.CancelEventArgs e) { ValidateError.Validate_combo(cbxmes, "Mes requerido!"); }
private void txtnom_usuario_Validating(object sender, System.ComponentModel.CancelEventArgs e) { ValidateError.Validate_text(txtnom_usuario, "Nombre de usuario requerido!"); }
private void txttope_Validating(object sender, System.ComponentModel.CancelEventArgs e) { ValidateError.Validate_text(txttope, "Tope horario nocturno requerido!"); }
//VALIDACION PARA ERROR PROVIDER private void txtcodigosubsidio_Validating(object sender, CancelEventArgs e) { ValidateError.Validate_text(txtcodigosubsidio, "¡Requerido!"); }