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