personal inventory : 날짜 선택하도록 lov 추가

This commit is contained in:
chikyun.kim
2018-09-19 09:35:08 +09:00
parent 2d4fe18264
commit 481d6bf78d
13 changed files with 453 additions and 295 deletions

View File

@@ -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);
}
}
}