コード例 #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");
 }
コード例 #7
0
 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!");
        }
コード例 #21
0
 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
ファイル: Cargo.cs プロジェクト: lctsistemas/PLANILLACONTABLE
 //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");
 }