string userName="";
string id="";
1、添加
如何用户名=userName则提示“已存在”,不允许添加
2、编辑
如果标识!=id and 用户名!=username则提示“已存在”,不允许编辑