Commit 1b30ea6f authored by agaikwad's avatar agaikwad

Request_id-D14LSUN004


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98268 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fb048802
...@@ -1910,7 +1910,8 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde ...@@ -1910,7 +1910,8 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
System.out.println("Inside line_no__prev"); System.out.println("Inside line_no__prev");
linnoprev = checkNull(genericUtility.getColumnValue("line_no__prev", dom)); linnoprev = checkNull(genericUtility.getColumnValue("line_no__prev", dom));
purcOrder = checkNull(genericUtility.getColumnValue("purc_order", dom).trim()); purcOrder = checkNull(genericUtility.getColumnValue("purc_order", dom).trim());
System.out.println("Inside null condition"+linnoprev); String lineOrder1= checkNull(genericUtility.getColumnValue("line_no__ord", dom));
System.out.println("Line no order is:"+lineOrder1);
System.out.println("Amend Line NO Prev is:"+linnoprev); System.out.println("Amend Line NO Prev is:"+linnoprev);
if(linnoprev!=null && linnoprev.trim().length()> 0 && !linnoprev.equals("null")) if(linnoprev!=null && linnoprev.trim().length()> 0 && !linnoprev.equals("null"))
{ {
...@@ -1928,8 +1929,9 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde ...@@ -1928,8 +1929,9 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
break; break;
} }
} }
if(isLine == false) if(isLine == false || linnoprev.equalsIgnoreCase(lineOrder1))
{ {
System.out.println("Inside Errrr");
errCode = "VTPRVLINE"; errCode = "VTPRVLINE";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
...@@ -2031,15 +2033,15 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde ...@@ -2031,15 +2033,15 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
else if (childNodeName.equalsIgnoreCase("task_code")) else if (childNodeName.equalsIgnoreCase("task_code"))
{ {
rel_agnst = genericUtility.getColumnValue("rel_agnst", dom); rel_agnst = genericUtility.getColumnValue("rel_agnst", dom);
task_code = checkNull(genericUtility.getColumnValue("task_code", dom).trim()); task_code = checkNull(genericUtility.getColumnValue("task_code", dom));
System.out.println("Task codeeeeeeeeeeeee"+task_code); System.out.println("Task code is"+task_code);
if (rel_agnst.equalsIgnoreCase("05")) if (rel_agnst.equalsIgnoreCase("05"))
{ {
System.out.println("Task codeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1111"); System.out.println("Enter the Project task ");
if (task_code == null||task_code.trim().length() == 0 ) if (task_code == null||task_code.trim().length() == 0 )
{ {
System.out.println("Task codeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"); System.out.println("Project Task is null");
errCode = "VTNULTASK"; errCode = "VTNULTASK";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
...@@ -2072,9 +2074,15 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde ...@@ -2072,9 +2074,15 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
else if (rel_agnst.equalsIgnoreCase("06")) else if (rel_agnst.equalsIgnoreCase("06"))
{ {
System.out.println("Enter the user Defined Milestone");
if (task_code == null || task_code.trim().length() == 0 ) if (task_code == null || task_code.trim().length() == 0 )
{ {
System.out.println("user Defined Milestone is nulll");
errCode = "VTNULTASK"; errCode = "VTNULTASK";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
} else if (task_code != null && task_code.trim().length() > 0 ) } else if (task_code != null && task_code.trim().length() > 0 )
{ {
sql = "select count(*) from gencodes where fld_Name = 'TASK_CODE' AND fld_value = ? AND mod_name = 'W_PORDER'"; sql = "select count(*) from gencodes where fld_Name = 'TASK_CODE' AND fld_value = ? AND mod_name = 'W_PORDER'";
......
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