This commit is contained in:
chi
2020-10-12 13:28:18 +09:00
parent 9fd97e8877
commit 60cc309353
39 changed files with 21926 additions and 14776 deletions

View File

@@ -393,7 +393,7 @@ namespace FCOMMON
public static Dictionary<string, string> getUserList(int baseLevel = 1)
{
string where = "isnull(level,0) >= " + baseLevel.ToString();
return getTwoColumnList("Users", "id", "name", where, "name");
return getTwoColumnList("vGroupUser", "id", "name", where, "name");
}
public static System.Data.DataTable getUserTable(int baseLevel = 1)
@@ -697,9 +697,9 @@ namespace FCOMMON
cn.Open();
var sql = "select idx,isnull(name,''),pdate from Projects" +
" where gcode='{0}'" +
" and isnull(userManager,'') like '%{1}%'" +
" and (isnull(userManager,'') like '%{1}%'" +
" or isnull(userMain,'') like '%{1}%'" +
" or isnull(usersub,'') like '%{1}%'" +
" or isnull(usersub,'') like '%{1}%')" +
" order by pdate desc,name";
sql = string.Format(sql, FCOMMON.info.Login.gcode, userName);
var cmd = new SqlCommand(sql, cn);