Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }