private void validateVillageName_ServerValidate(object source, ServerValidateEventArgs args) { if (!string.IsNullOrEmpty(this.txtVillageName.Text.Trim())) { BusinessRule.Common rule = new BusinessRule.Common(); args.IsValid = rule.IsFieldExclusive("VillageName", this.txtVillageName.Text.Trim(), "CWInfo", true, this.PKID); } }
private void validateOneChildNo_ServerValidate(object source, ServerValidateEventArgs args) { if (!string.IsNullOrEmpty(this.txtOneChildNo.Text.Trim())) { BusinessRule.Common rule = new BusinessRule.Common(); args.IsValid = rule.IsFieldExclusive("OneChildNo", this.txtOneChildNo.Text.Trim(), "CWOneChild", true, this.PKID); } }
private void validateAlias_ServerValidate(object source, ServerValidateEventArgs args) { BusinessRule.Common rule = new BusinessRule.Common(); args.IsValid = rule.IsFieldExclusive("Alias", this.tbxAlias.Text.Trim(), "User", true, this.PKID); }
private void valiateRoleName_ServerValidate(object source, ServerValidateEventArgs args) { BusinessRule.Common rule = new BusinessRule.Common(); args.IsValid = rule.IsFieldExclusive("RoleName", this.tbxRoleName.Text.Trim(), "Role", true, this.PKID); }