프로젝트에 category 추가, 컬럼명을 한글로 변경

This commit is contained in:
chikyun.kim
2019-09-03 12:13:50 +09:00
parent d762d3e623
commit 509046bbc0
19 changed files with 3041 additions and 355 deletions

View File

@@ -774,7 +774,7 @@ namespace FCOMMON
var cmd2 = new SqlCommand("", cn);
cmd2.CommandText = string.Format("select count(*) from Items " +
" where ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Trim().Replace("'", "''") + model.Trim().Replace("'", "''"));
" where ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Replace(" ","").Replace("'", "''") + model.Replace(" ","").Replace("'", "''"));
var cnt = int.Parse(cmd2.ExecuteScalar().ToString());
if (cnt == 0)
{
@@ -816,7 +816,7 @@ namespace FCOMMON
}
else
{
cmd2.CommandText = string.Format("select idx from Items where ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Trim().Replace("'", "''") + model.Trim().Replace("'", "''"));
cmd2.CommandText = string.Format("select min(idx) from Items where ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Replace(" ", "").Replace("'", "''") + model.Replace(" ","").Replace("'", "''"));
retval = int.Parse(cmd2.ExecuteScalar().ToString());
}
cmd2.Dispose();