Commit 726aec4a authored by agaikwad's avatar agaikwad

Request_id-D14LSUN004. Added trim() condition for Task code.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98239 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7be5f897
......@@ -2031,7 +2031,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
else if (childNodeName.equalsIgnoreCase("task_code"))
{
rel_agnst = genericUtility.getColumnValue("rel_agnst", dom);
task_code = checkNull(genericUtility.getColumnValue("task_code", dom));
task_code = checkNull(genericUtility.getColumnValue("task_code", dom).trim());
System.out.println("Task codeeeeeeeeeeeee"+task_code);
if (rel_agnst.equalsIgnoreCase("05"))
{
......@@ -2049,7 +2049,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
{
sql = "select count(*) from proj_task where task_code =?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, task_code);
pstmt.setString(1, task_code.trim());
rs = pstmt.executeQuery();
if (rs.next())
{
......@@ -2079,7 +2079,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
{
sql = "select count(*) from gencodes where fld_Name = 'TASK_CODE' AND fld_value = ? AND mod_name = 'W_PORDER'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, task_code);
pstmt.setString(1, task_code.trim());
rs = pstmt.executeQuery();
if (rs.next())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment