personal inventory : 날짜 선택하도록 lov 추가
This commit is contained in:
@@ -16,7 +16,7 @@ namespace FCOMMON
|
||||
}
|
||||
|
||||
|
||||
public static List<String> getGroupList(string GroupColumn, string table, string where = "")
|
||||
public static List<String> getGroupList(string GroupColumn, string table, string where = "",Boolean desc=false)
|
||||
{
|
||||
List<string> retval = new List<string>();
|
||||
var cn = getCn();
|
||||
@@ -28,7 +28,8 @@ namespace FCOMMON
|
||||
if (where != "") sql += " and " + where;
|
||||
|
||||
sql += " group by {0} " +
|
||||
" order by {0}";
|
||||
" order by {0} ";
|
||||
if (desc) sql += " desc";
|
||||
|
||||
sql = string.Format(sql, "[" + GroupColumn + "]", table);
|
||||
var cmd = new System.Data.SqlClient.SqlCommand(sql, cn);
|
||||
@@ -42,9 +43,9 @@ namespace FCOMMON
|
||||
cn.Dispose();
|
||||
return retval;
|
||||
}
|
||||
public static List<String> getDateList(string table, string where = "")
|
||||
public static List<String> getDateList(string table, string where = "",Boolean desc =false)
|
||||
{
|
||||
return getGroupList("pdate", table, where);
|
||||
return getGroupList("pdate", table, where,desc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user