프로젝트정보추가 site/plant/package/package

This commit is contained in:
chi
2023-01-13 20:05:38 +09:00
parent ff2b5834fa
commit cd902327c8
20 changed files with 2555 additions and 1243 deletions

View File

@@ -941,7 +941,18 @@ namespace FCOMMON
" from common" +
" where gcode='" + FCOMMON.info.Login.gcode + "' and grp = '" + GroupCode + "'" +
" and isnull(code,'') <> ''" +
" order by isnull(" + sort + ",'')";
" order by ";
var sortidx = 0;
var sortlist = sort.Split(',');
foreach(var sortstr in sortlist)
{
if (string.IsNullOrEmpty(sortstr)) continue;
if (sortidx > 0) sql += ",";
sql += "isnull(" + sortstr + ",'')";
sortidx += 1;
}
var cmd = new SqlCommand(sql, cn);
var rdr = cmd.ExecuteReader();
while (rdr.Read())