Esempio n. 1
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);
     }
 }
Esempio n. 2
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);
     }
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
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();
            }
        }
Esempio n. 5
0
 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;
 }
Esempio n. 6
0
        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");
 }
Esempio n. 9
0
 private void txtpassword_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtpassword, "Contraseña requerida!");
 }
Esempio n. 10
0
 private void cbxsuspension_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_combo(cbxsuspension, "¡Requerido!");
 }
Esempio n. 11
0
 private void txthora_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txthora, "Codigo de hora requerido!");
 }
Esempio n. 12
0
 //VALIDAR CAJA
 private void txtnom_cargo_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtnom_cargo, "Ingrese Cargo");
 }
Esempio n. 13
0
 private void txtcoddoc_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtcoddoc, "¡Campo requerido!");
 }
Esempio n. 14
0
 private void cbxregimen_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_combo(cbxregimen, "Campo Requerido");
 }
Esempio n. 15
0
 private void txtdescCorta_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtdescCorta, "Campo Requerido");
 }
Esempio n. 16
0
 private void txtrol_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtrol, "Rol requerido!");
 }
Esempio n. 17
0
 private void txtTipoPlanilla_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtTipoPlanilla, "Campo Requerido");
 }
Esempio n. 18
0
 private void txtdescSubsi_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtdescSubsi, "¡Requerido!");
 }
Esempio n. 19
0
 private void cbxtiposub_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_combo(cbxtiposub, "¡Requerido!");
 }
Esempio n. 20
0
 private void Txtdireccion_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(Txtdireccion, "¡Campo Requerido!");
 }
Esempio n. 21
0
 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!");
 }
Esempio n. 23
0
 private void txtdocumento_Validated(object sender, EventArgs e)
 {
     ValidateError.Validate_text(txtdocumento, "¡Campo requerido!");
 }
Esempio n. 24
0
 private void txtasig_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtasig, "Campo asignacion familiar requerido");
 }
Esempio n. 25
0
        //...

        private void txtBanco_Validating(object sender, CancelEventArgs e)
        {
            ValidateError.Validate_text(txtBanco, "Campo requerido!");
        }
Esempio n. 26
0
 private void cborol_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_combo(cborol, "Campo rol requerido!");
 }
Esempio n. 27
0
 private void cbxmes_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_combo(cbxmes, "Mes requerido!");
 }
Esempio n. 28
0
 private void txtnom_usuario_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txtnom_usuario, "Nombre de usuario requerido!");
 }
Esempio n. 29
0
 private void txttope_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ValidateError.Validate_text(txttope, "Tope horario nocturno requerido!");
 }
Esempio n. 30
0
 //VALIDACION PARA ERROR PROVIDER
 private void txtcodigosubsidio_Validating(object sender, CancelEventArgs e)
 {
     ValidateError.Validate_text(txtcodigosubsidio, "¡Requerido!");
 }