Commit 244e7f72 authored by prahate's avatar prahate

Added checknull condition.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@194912 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dee809c6
...@@ -1501,7 +1501,8 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm ...@@ -1501,7 +1501,8 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
System.out.println("errCode in despatch posting===="+errString); System.out.println("errCode in despatch posting===="+errString);
System.out.println(">>The selected transaction is confirmed!!!!"); System.out.println(">>The selected transaction is confirmed!!!!");
//errString= "<?xml version='1.0'?><Root><message>VTPOSTDES</message><TranID>"+tranId+"</TranID></errors></Root>"; //errString= "<?xml version='1.0'?><Root><message>VTPOSTDES</message><TranID>"+tranId+"</TranID></errors></Root>";
errString="VTPOSTDES"; //errString="VTPOSTDES";
errString = itmDBAccessEJB.getErrorString("","VTCONFIRM","","",conn);
System.out.println("@@@@@ retString:[" + errString+"]"); System.out.println("@@@@@ retString:[" + errString+"]");
} }
} }
......
...@@ -313,12 +313,12 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -313,12 +313,12 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
status=rs.getString(1); status=checkNull(rs.getString(1));
empCodeaprv=rs.getString(2); empCodeaprv=checkNull(rs.getString(2));
ordDate=rs.getTimestamp(3); ordDate=rs.getTimestamp(3);
lsconfirmed=rs.getString(4); lsconfirmed=checkNull(rs.getString(4));
lsproviid=rs.getString(5); lsproviid=checkNull(rs.getString(5));
lspotype=rs.getString(6); lspotype=checkNull(rs.getString(6));
} }
rs.close(); rs.close();
rs = null; rs = null;
...@@ -389,7 +389,12 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -389,7 +389,12 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
/*} /*}
if(errCode == null || errCode.trim().length() == 0) if(errCode == null || errCode.trim().length() == 0)
{*///COMMENTED BY NANDKUMAR GADKARI ON 03/05/18 {*///COMMENTED BY NANDKUMAR GADKARI ON 03/05/18
lspotype = lspotype.trim(); System.out.println("lspotype : "+lspotype);
if(lspotype != null)
{
lspotype = lspotype.trim();
}
System.out.println("lspotype after : "+lspotype);
if("Q".equals(lspotype) || "H".equals(lspotype)) if("Q".equals(lspotype) || "H".equals(lspotype))
{ {
...@@ -1998,7 +2003,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -1998,7 +2003,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
if(rs.next()) if(rs.next())
{ {
lspotype=rs.getString(1); lspotype=checkNull(rs.getString(1));
} }
//Add by Ajay on 18/04/18:START //Add by Ajay on 18/04/18:START
......
...@@ -532,9 +532,9 @@ public class PostOrderActivity { ...@@ -532,9 +532,9 @@ public class PostOrderActivity {
rs=pstmt.executeQuery(); rs=pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
pordType=rs.getString(1); pordType=E12GenericUtility.checkNull(rs.getString(1));
poCurrCode=rs.getString(2); poCurrCode=E12GenericUtility.checkNull(rs.getString(2));
acceptCriteria = rs.getString(3);//Added By PriyankaC on 05JAN18. acceptCriteria = E12GenericUtility.checkNull(rs.getString(3));//Added By PriyankaC on 05JAN18.
} }
rs.close(); rs.close();
rs=null; rs=null;
......
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