프로젝트에 category 추가, 컬럼명을 한글로 변경
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user