strSql.Append(" and (SHORTNAME in (SELECT SHORTNAME from info_client_range where USERID='"+userid+"' ) or SHORTNAME not in (SELECT SHORTNAME from info_client_range )) ");
StringstrSql="SELECT *,CODENAME + '-' + NAME AS CodeAndName,MODIFIEDUSERNAME=(select top 1 SHOWNAME from [user] where gid=[company].MODIFIEDUSER) FROM [company] ";