10-01
This commit is contained in:
@@ -57,6 +57,14 @@ namespace FCOMMON
|
||||
var list = getUserList(baseLevel);
|
||||
return MakeDataTable(list);
|
||||
}
|
||||
|
||||
private static Dictionary<string,string> MakeDataTable(List<string> list)
|
||||
{
|
||||
var retval = new Dictionary<string, string>();
|
||||
foreach (var item in list)
|
||||
retval.Add(item, item);
|
||||
return retval;
|
||||
}
|
||||
private static System.Data.DataTable MakeDataTable(Dictionary<string,string> list)
|
||||
{
|
||||
System.Data.DataTable dt = new System.Data.DataTable();
|
||||
@@ -118,6 +126,11 @@ namespace FCOMMON
|
||||
return retval;
|
||||
|
||||
}
|
||||
public static Dictionary<string,string> getGroupTable(string GroupColumn, string table, string where = "", Boolean desc = false)
|
||||
{
|
||||
var list = getGroupList(GroupColumn, table, where, desc);
|
||||
return MakeDataTable(list);
|
||||
}
|
||||
public static List<String> getGroupList(string GroupColumn, string table, string where = "",Boolean desc=false)
|
||||
{
|
||||
List<string> retval = new List<string>();
|
||||
|
||||
Reference in New Issue
Block a user