Exemple #1
0
 /// <summary>验证数据有效性</summary>
 private void InvalidateValue()
 {
     if (ModelDesignProject.ExistId(LibSysUtils.ToInt32(this.txtDSID.Text.Trim())))
     {
         ExceptionManager.ThrowError("该DSID已存在");
         //return;
     }
     if (ModelDesignProject.ExistDSName(this.txtDSName.Text.Trim()))
     {
         ExceptionManager.ThrowError("该数据源名称已经存在");
     }
 }