프로젝트 관련 업데이트

This commit is contained in:
chikyun.kim
2019-01-25 10:38:59 +09:00
parent a45bf77419
commit b8aeffa10a
17 changed files with 3636 additions and 1020 deletions

View File

@@ -19,7 +19,18 @@ namespace FCOMMON
{
public static partial class Util
{
public static string MakeFilterString(string[] cols,string search)
{
string filterStr = "";
foreach (var col in cols)
{
if (filterStr != "") filterStr += " OR ";
filterStr += string.Format("isnull({0},'') like '%#%'", col);
}
return filterStr.Replace("#", search.Replace("'","''"));
}
public static void CopyData(System.Data.DataRow drFrom, System.Data.DataRow drTo)
{
for (int i = 0; i < drFrom.ItemArray.Length; i++)