Commit 041eb041 authored by dpawar's avatar dpawar

added condition for check null


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95200 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d4a624d2
......@@ -1185,7 +1185,8 @@ public class BOMAct extends ActionHandlerEJB implements BOMActLocal,
// Added by Dadaso pawar [MF3GSUN023]
BOMStockBean bomStockBeanObj=new BOMStockBean();
UserInfoBean userInfoL=bomStockBeanObj.getUserInfo();
UserInfoBean userInfoL=bomStockBeanObj.getUserInfo();
if(userInfoL !=null){
String siteCodeL=userInfoL.getSiteCode();
siteCodeL=siteCodeL== null ? "" :siteCodeL.trim();
System.out.println("Site code bom----->>>["+siteCodeL+"]");
......@@ -1239,9 +1240,10 @@ public class BOMAct extends ActionHandlerEJB implements BOMActLocal,
rs1 = null;
pstmt1.close();
pstmt1 = null;
}
// end dadaso pawar
stkBOMList.add(thisBean);
}
rs.close();
rs = null;
......
......@@ -2727,6 +2727,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
@Override
public ArrayList getDetails(String woCode) throws ITMException
{
System.out.println("---getDetails method called12345-------------------");
PreparedStatement pstmt = null, pstmt1 = null;
ResultSet rs = null;
Connection conn = null;
......@@ -2752,7 +2753,8 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
{
currDate = rs.getTimestamp(1);
}
System.out.println("Current Date::::::"+currDate);
System.out.println("Current Date11::::::"+currDate);
System.out.println("woCode---->>["+woCode+"]");
rs.close();
pstmt.close();
......@@ -2855,10 +2857,11 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
//Added by Dadaso pawar on 07/01/14 [MF3GSUN023] [Start]
WoStockBean WoStockBeanObj=new WoStockBean();
UserInfoBean userInfoL=WoStockBeanObj.getUserInfo();
UserInfoBean userInfoL=WoStockBeanObj.getUserInfo();
if(userInfoL !=null){
String siteCodeL=userInfoL.getSiteCode();
siteCodeL=siteCodeL== null ? "" :siteCodeL.trim();
System.out.println("Site code----->>>["+siteCodeL+"]");
System.out.println("Login Site code----->>>["+siteCodeL+"]");
StringBuffer sbNew = new StringBuffer();
sbNew.append("select nvl(sum(a.quantity - a.alloc_qty),0), nvl(sum(a.alloc_qty),0) from stock a, invstat b "
......@@ -2909,7 +2912,9 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
}
rs1.close();
rs1 = null;
}
//Added by Dadaso pawar on 07/01/14 [MF3GSUN023] [End]
stkWoList.add(thisBean);
}
......
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