..
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user