Commit 47378bf7 authored by manohar's avatar manohar

UserInfoBean set to get connection


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102359 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 91d9d9df
...@@ -52,10 +52,22 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL ...@@ -52,10 +52,22 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
public void ejbPassivate() { public void ejbPassivate() {
}*/ }*/
CommonConstants commonConstants = new CommonConstants(); CommonConstants commonConstants = new CommonConstants();
public static UserInfoBean userInfo=null; //added by Dadaso pawar [MF3GSUN023]
// 08-jul-16 manoharan
public void setUserInfo(UserInfoBean userInfo)
{
this.userInfo=userInfo;
}
public UserInfoBean getUserInfo()
{
return this.userInfo;
}
@Override @Override
public String actionHandler() throws RemoteException, ITMException { public String actionHandler() throws RemoteException, ITMException {
return ""; return "";
} }
// end 08-jul-16 manoharan
@Override @Override
public String actionHandler(String actionType, String xmlString, public String actionHandler(String actionType, String xmlString,
...@@ -178,10 +190,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL ...@@ -178,10 +190,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
try try
{ {
//Changed by Poonam Gole for changing connection object :Start conn = connDriver.getConnectDB("DriverITM");
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
tranType = genericUtility.getColumnValue("tran_type", dom1); tranType = genericUtility.getColumnValue("tran_type", dom1);
tranIdReq = genericUtility.getColumnValue("tran_id__req", dom1); tranIdReq = genericUtility.getColumnValue("tran_id__req", dom1);
// System.out.println("tranType before null :::: " + tranType + "tranIdReq :::: " + tranIdReq); //COMMENTED BY ALKA 19/07/07 AS NOT REQUIRED // System.out.println("tranType before null :::: " + tranType + "tranIdReq :::: " + tranIdReq); //COMMENTED BY ALKA 19/07/07 AS NOT REQUIRED
...@@ -304,10 +313,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL ...@@ -304,10 +313,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
MfgCommon mfgCommon = new MfgCommon(); MfgCommon mfgCommon = new MfgCommon();
try { try {
//Changed by Poonam Gole for changing connection object :Start conn = connDriver.getConnectDB("DriverITM");
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
effDate = genericUtility.getColumnValue("eff_date", dom1); effDate = genericUtility.getColumnValue("eff_date", dom1);
siteCode = genericUtility.getColumnValue("site_code", dom1); siteCode = genericUtility.getColumnValue("site_code", dom1);
...@@ -773,10 +779,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL ...@@ -773,10 +779,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
//GenericUtility genericUtility = GenericUtility.getInstance(); //GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
try { try {
//Changed by Poonam Gole for changing connection object :Start conn = connDriver.getConnectDB("DriverITM");
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
woIss = genericUtility.getColumnValue("tran_id", dom1); woIss = genericUtility.getColumnValue("tran_id", dom1);
siteCode = genericUtility.getColumnValue("site_code", dom1); siteCode = genericUtility.getColumnValue("site_code", dom1);
...@@ -1061,10 +1064,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL ...@@ -1061,10 +1064,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
try try
{ {
//Changed by Poonam Gole for changing connection object :Start conn = connDriver.getConnectDB("DriverITM");
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
System.out.println("[Allocating .....]"); System.out.println("[Allocating .....]");
...@@ -2768,10 +2768,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL ...@@ -2768,10 +2768,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
try try
{ {
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
//Changed by Poonam Gole for changing connection object :Start conn = connDriver.getConnectDB("DriverITM");
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; connDriver = null;
......
...@@ -20,13 +20,13 @@ public class WoStockBean ...@@ -20,13 +20,13 @@ public class WoStockBean
public String itemCode = "",descr = "",workOrder = "",allockQty = "",allockQtyL=""; public String itemCode = "",descr = "",workOrder = "",allockQty = "",allockQtyL="";
public double stkQty = 0.0,nonStkQty = 0.0, qtyPer = 0; public double stkQty = 0.0,nonStkQty = 0.0, qtyPer = 0;
public double stkQtyL=0.0,nonStkQtyL=0.0; public double stkQtyL=0.0,nonStkQtyL=0.0;
// 08-jul-16 manoharan
public static UserInfoBean userInfo=null; //added by Dadaso pawar [MF3GSUN023]
public void setWorkOrder(String workOrderJsp) public void setWorkOrder(String workOrderJsp)
{ {
this.workOrder = workOrderJsp; this.workOrder = workOrderJsp;
} }
public static UserInfoBean userInfo=null; //added by Dadaso pawar [MF3GSUN023]
public void setUserInfo(UserInfoBean userInfo) public void setUserInfo(UserInfoBean userInfo)
{ {
this.userInfo=userInfo; this.userInfo=userInfo;
...@@ -35,12 +35,7 @@ public class WoStockBean ...@@ -35,12 +35,7 @@ public class WoStockBean
{ {
return this.userInfo; return this.userInfo;
} }
//added by Dadaso pawar [End] [MF3GSUN023] // end 08-jul-16 manoharan
/*public void setWoQty(String woQtyJsp)
{
this.woQty = woQtyJsp;
}
*/
public ArrayList getDetails() throws Exception public ArrayList getDetails() throws Exception
{ {
...@@ -56,6 +51,7 @@ public class WoStockBean ...@@ -56,6 +51,7 @@ public class WoStockBean
appConnect = new AppConnectParm(); appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty()); ctx = new InitialContext(appConnect.getProperty());
homeObj = (WOrderIssueActLocal)ctx.lookup("ibase/WOrderIssueAct/local"); // for BaseInfo ejb3 homeObj = (WOrderIssueActLocal)ctx.lookup("ibase/WOrderIssueAct/local"); // for BaseInfo ejb3
homeObj.setUserInfo(userInfo); // 08-jul-16 manoharan
stkWoRetArr = homeObj.getDetails(this.workOrder); stkWoRetArr = homeObj.getDetails(this.workOrder);
if(stkWoRetArr.size() > 0) if(stkWoRetArr.size() > 0)
{ {
......
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