장비목록 그룹별 분리

This commit is contained in:
chi
2023-01-09 09:37:52 +09:00
parent a1332a2720
commit 32b5059af8
15 changed files with 830 additions and 383 deletions

View File

@@ -19,12 +19,12 @@ namespace FEQ0000
List<string> retval = new List<string>();
var cn = getCn();
cn.Open();
var sql = "select {0} from {1} where isnull({0},'') != '' group by {0} order by {0}";
var sql = "select {0} from {1} where gcode='" + FCOMMON.info.Login.gcode + "' and isnull({0},'') != '' group by {0} order by {0}";
if (GroupColumn.IndexOf("+") == -1)
sql = string.Format(sql, "[" + GroupColumn + "]", table);
else
sql = string.Format(sql, GroupColumn , table);
sql = string.Format(sql, GroupColumn, table);
var cmd = new System.Data.SqlClient.SqlCommand(sql, cn);