Пример #1
0
 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);
     }
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
        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();
            }
        }
Пример #4
0
        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();
            }
        }
Пример #5
0
 private void txtnom_usuario_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtnom_usuario, "Nombre de usuario requerido!");
 }
Пример #6
0
 private void txtdescCorta_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtdescCorta, "Campo Requerido");
 }
 private void txtAbrev_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtAbrev, "¡Campo Requerido!");
 }
Пример #8
0
 private void txtcodigo_sucursal_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtcodigo_sucursal, "¡Código requerido!");
 }
Пример #9
0
 private void txtrol_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtrol, "Rol requerido!");
 }
Пример #10
0
 private void Txtdireccion_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(Txtdireccion, "¡Campo Requerido!");
 }
Пример #11
0
 private void txtdocumento_Validated(object sender, EventArgs e)
 {
     ValidateError.Validate_text(txtdocumento, "¡Campo requerido!");
 }
Пример #12
0
 private void txtrazon_social_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtrazon_social, "Campo razon social requerido");
 }
Пример #13
0
 private void txtcodigo_empresa_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtcodigo_empresa, "Codigo de empresa requerido");
 }
Пример #14
0
 private void txtremune_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtremune, "Campo remuneracion requerido");
 }
Пример #15
0
 private void txtasig_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtasig, "Campo asignacion familiar requerido");
 }
Пример #16
0
 private void txtApeMat_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtApeMat, "Campo requerido");
 }
Пример #17
0
 private void txtdireccion_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtdireccion, "¡Dirección requerido!");
 }
Пример #18
0
 private void txtlocalidad_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtlocalidad, "Localidad requerido!");
 }
Пример #19
0
 private void txtpassword_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtpassword, "Contraseña requerida!");
 }
Пример #20
0
        //...

        private void txtBanco_Validating(object sender, CancelEventArgs e)
        {
            ValidateError.Validate_text(txtBanco, "Campo requerido!");
        }
 private void txtdias_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtdias, "Ingrese el numero dias");
 }
Пример #22
0
 private void txthora_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txthora, "Codigo de hora requerido!");
 }
Пример #23
0
 private void txtcoddoc_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtcoddoc, "¡Campo requerido!");
 }
Пример #24
0
 private void txtruc_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtruc, "Campo RUC requerido");
 }
Пример #25
0
 //VALIDACION PARA ERROR PROVIDER
 private void txtcodigosubsidio_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtcodigosubsidio, "¡Requerido!");
 }
Пример #26
0
 private void txtusuario_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtusuario, "Campo usuario requerido");
 }
Пример #27
0
 //VALIDAR CAJA
 private void txtnom_cargo_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtnom_cargo, "Ingrese Cargo");
 }
Пример #28
0
 private void txtdescSubsi_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtdescSubsi, "¡Requerido!");
 }
Пример #29
0
 private void txttope_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txttope, "Tope horario nocturno requerido!");
 }
Пример #30
0
 private void txtTipoPlanilla_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtTipoPlanilla, "Campo Requerido");
 }