This commit is contained in:
chikyun.kim
2018-09-14 17:40:26 +09:00
parent 695d53aae7
commit 6cdd8d4c03
49 changed files with 10960 additions and 2165 deletions

View File

@@ -14,13 +14,13 @@ namespace Project.Manager
cn.ConnectionString = cs;
return cn;
}
public static List<String> getEQGroupLiist(string GroupColumn)
public static List<String> getEQGroupLiist(string GroupColumn,string table)
{
List<string> retval = new List<string>();
var cn = getCn();
cn.Open();
var sql = "select {0} from Equipment where isnull({0},'') != '' group by {0} order by {0}";
sql = string.Format(sql, "[" + GroupColumn +"]");
var sql = "select {0} from {1} where isnull({0},'') != '' group by {0} order by {0}";
sql = string.Format(sql, "[" + GroupColumn +"]",table);
var cmd = new System.Data.SqlClient.SqlCommand(sql,cn);
var rdr = cmd.ExecuteReader();
while(rdr.Read())