Commit bb4ede8e authored by rtiwari's avatar rtiwari

change disparm variable to mfgparm variable


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93868 ce508802-f39f-4f6c-b175-0d175dae99d5
parent add5bbd1
...@@ -31,7 +31,7 @@ import javax.xml.rpc.ParameterMode; ...@@ -31,7 +31,7 @@ import javax.xml.rpc.ParameterMode;
import ibase.webitm.ejb.dis.DistCommon; import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.dis.GenerateSaleOrderPrc; import ibase.webitm.ejb.dis.GenerateSaleOrderPrc;
import ibase.webitm.ejb.dis.adv.StockTransferConf; import ibase.webitm.ejb.dis.adv.StockTransferConf;
import ibase.webitm.ejb.fin.FinCommon; //import ibase.webitm.ejb.fin.FinCommon;
@Stateless @Stateless
public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTransferPrcRemote public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTransferPrcRemote
...@@ -99,7 +99,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -99,7 +99,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
ResultSet rs = null; ResultSet rs = null;
GenericUtility genericUtility = null; GenericUtility genericUtility = null;
ITMDBAccessEJB itmDBAccessEJB = null; ITMDBAccessEJB itmDBAccessEJB = null;
DistCommon dComm = new DistCommon(); MfgCommon mfgComm = new MfgCommon();
try try
{ {
genericUtility = new GenericUtility(); genericUtility = new GenericUtility();
...@@ -147,8 +147,8 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -147,8 +147,8 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
if(locCodeTo != null || locCodeTo.trim().length() > 0) if(locCodeTo != null || locCodeTo.trim().length() > 0)
{ {
cnt=0; cnt=0;
invstat = dComm.getDisparams("999999","SUB_ST_INVSTAT", connOne); invstat = mfgComm.getEnvMfg("999999","SUB_ST_INVSTAT", connOne);
invstat1 = dComm.getDisparams("999999","MAIN_ST_INVSTAT", connOne); invstat1 = mfgComm.getEnvMfg("999999","MAIN_ST_INVSTAT", connOne);
if(invstat.equalsIgnoreCase(invstat1)) if(invstat.equalsIgnoreCase(invstat1))
{ {
errString = itmDBAccessEJB.getErrorString("","VTDISPVAR ","","",connOne); errString = itmDBAccessEJB.getErrorString("","VTDISPVAR ","","",connOne);
...@@ -208,7 +208,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -208,7 +208,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
} }
catch (SQLException ex) catch (SQLException ex)
{ {
Logger.getLogger(GenerateSaleOrderPrc.class.getName()).log(Level.SEVERE, null, ex); Logger.getLogger(WoTransferPrc.class.getName()).log(Level.SEVERE, null, ex);
} }
e.printStackTrace(); e.printStackTrace();
} }
...@@ -261,8 +261,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -261,8 +261,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
String userId = ""; String userId = "";
String termId = ""; String termId = "";
String sql = "",sql1="", acctCodeInv1 = "",cctrCodeInv1=""; String sql = "",sql1="", acctCodeInv1 = "",cctrCodeInv1="";
String ordtype = "",itemCode="",quantity="",duedate="",tranIdInvAlloc="",reasCode="", String itemCode="",tranIdInvAlloc="",reasCode="",refno = "",itemSer="",tranType="";
lotno="",lotsl="",refno = "",itemSer="",bomcode = "",tranType="",lotslto="",lotnoto="";
Date tranDate = null,orddate = null; Date tranDate = null,orddate = null;
int notrans =0; int notrans =0;
PreparedStatement pstmt = null,pstmt1= null; PreparedStatement pstmt = null,pstmt1= null;
...@@ -273,10 +272,8 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -273,10 +272,8 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
String retString = null; String retString = null;
String siteCode = "",empCode = ""; String siteCode = "",empCode = "";
String xmlString = ""; String xmlString = "";
DistCommon dComm = null; MfgCommon mfgComm = null;
StringBuffer xmlBuff = null; StringBuffer xmlBuff = null;
// Connection connOne = null;
// ConnDriver connDriver1 = null;
ArrayList list = null; ArrayList list = null;
boolean bool = false; boolean bool = false;
try try
...@@ -284,7 +281,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -284,7 +281,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
list = new ArrayList(); list = new ArrayList();
itmDBAccessEJB = new ITMDBAccessEJB(); itmDBAccessEJB = new ITMDBAccessEJB();
genericUtility = GenericUtility.getInstance(); genericUtility = GenericUtility.getInstance();
dComm = new DistCommon(); mfgComm = new MfgCommon();
System.out.println("@@@@@@@ wostock trans. function called::"); System.out.println("@@@@@@@ wostock trans. function called::");
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getDBDateFormat()); SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getDBDateFormat());
...@@ -321,9 +318,9 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -321,9 +318,9 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
siteCode = checkNull(rs.getString("site_code")); siteCode = checkNull(rs.getString("site_code"));
orddate = rs.getDate("ord_date"); orddate = rs.getDate("ord_date");
//duedate = rs.getString("due_date"); //duedate = rs.getString("due_date");
bomcode = checkNull(rs.getString("bom_code")); // bomcode = checkNull(rs.getString("bom_code"));
lotno = checkNull(rs.getString("lot_no")); //lotno = checkNull(rs.getString("lot_no"));
lotsl = checkNull(rs.getString("lot_sl")); //lotsl = checkNull(rs.getString("lot_sl"));
refno = checkNull(rs.getString("ref_no")); refno = checkNull(rs.getString("ref_no"));
} }
...@@ -368,7 +365,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -368,7 +365,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
String invstat = dComm.getDisparams("999999","MAIN_ST_INVSTAT", connOne); String invstat = mfgComm.getEnvMfg("999999","MAIN_ST_INVSTAT", connOne);
System.out.println("::: XML Cretation::::"); System.out.println("::: XML Cretation::::");
......
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