Commit e65f3dbf authored by ajadhav's avatar ajadhav

call nfCheckPeriod() method using finCommon object

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177012 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 805710b0
...@@ -21,6 +21,7 @@ import javax.ejb.Stateless; // added for ejb3 ...@@ -21,6 +21,7 @@ import javax.ejb.Stateless; // added for ejb3
public class RcpBackflushMulti extends ValidatorEJB implements RcpBackflushMultiLocal, RcpBackflushMultiRemote //SessionBean public class RcpBackflushMulti extends ValidatorEJB implements RcpBackflushMultiLocal, RcpBackflushMultiRemote //SessionBean
{ {
ibase.webitm.ejb.fin.FinCommon finCommon = new ibase.webitm.ejb.fin.FinCommon();
//GenericUtility genericUtility = GenericUtility.getInstance(); //GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility= new E12GenericUtility(); E12GenericUtility genericUtility= new E12GenericUtility();
/*public void ejbCreate() throws RemoteException, CreateException /*public void ejbCreate() throws RemoteException, CreateException
...@@ -123,7 +124,10 @@ public class RcpBackflushMulti extends ValidatorEJB implements RcpBackflushMult ...@@ -123,7 +124,10 @@ public class RcpBackflushMulti extends ValidatorEJB implements RcpBackflushMult
{ {
tranDate = genericUtility.getColumnValue("tran_date", dom); tranDate = genericUtility.getColumnValue("tran_date", dom);
siteCode = genericUtility.getColumnValue("site_code", dom); siteCode = genericUtility.getColumnValue("site_code", dom);
errCode = nfCheckPeriod("PUR", genericUtility.getDateObject(tranDate), siteCode); //Changes and Commented By Ajay on 20-12-2017:START
//errCode = nfCheckPeriod("PUR", genericUtility.getDateObject(tranDate), siteCode);
errCode=finCommon.nfCheckPeriod("PUR", genericUtility.getDateObject(tranDate), siteCode, conn);
//Changes and Commented By Ajay on 20-12-2017:END
if (errCode != null && errCode != "") if (errCode != null && errCode != "")
{ {
System.out.println("errCode from nfCheckPeriod :: [" + errCode + "]"); System.out.println("errCode from nfCheckPeriod :: [" + errCode + "]");
......
...@@ -18,6 +18,7 @@ import javax.ejb.Stateless; // added for ejb3 ...@@ -18,6 +18,7 @@ import javax.ejb.Stateless; // added for ejb3
@Stateless // added for ejb3 @Stateless // added for ejb3
public class WOMultiReceipt extends ValidatorEJB implements WOMultiReceiptLocal, WOMultiReceiptRemote //SessionBean public class WOMultiReceipt extends ValidatorEJB implements WOMultiReceiptLocal, WOMultiReceiptRemote //SessionBean
{ {
ibase.webitm.ejb.fin.FinCommon finCommon = new ibase.webitm.ejb.fin.FinCommon();
/*public void ejbCreate() throws RemoteException, CreateException /*public void ejbCreate() throws RemoteException, CreateException
{ {
System.out.println("WOMultiReceiptEJB is Creating.........."); System.out.println("WOMultiReceiptEJB is Creating..........");
...@@ -49,6 +50,7 @@ public class WOMultiReceipt extends ValidatorEJB implements WOMultiReceiptLocal ...@@ -49,6 +50,7 @@ public class WOMultiReceipt extends ValidatorEJB implements WOMultiReceiptLocal
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{ {
Document dom = null; Document dom = null;
Document dom1 = null; Document dom1 = null;
Document dom2 = null; Document dom2 = null;
...@@ -144,8 +146,11 @@ public class WOMultiReceipt extends ValidatorEJB implements WOMultiReceiptLocal ...@@ -144,8 +146,11 @@ public class WOMultiReceipt extends ValidatorEJB implements WOMultiReceiptLocal
String ordDate = genericUtility.getColumnValue("tran_date", dom); String ordDate = genericUtility.getColumnValue("tran_date", dom);
orderDate = sdf.parse(ordDate); orderDate = sdf.parse(ordDate);
siteCode = genericUtility.getColumnValue("site_code", dom); siteCode = genericUtility.getColumnValue("site_code", dom);
errCode = nfCheckPeriod("PUR", orderDate, siteCode); //Changes and Commented By Ajay on 20-12-2017:START
if(errCode != null && errCode.trim().length() != 0) //errCode = nfCheckPeriod("PUR", orderDate, siteCode);
errCode=finCommon.nfCheckPeriod("PUR", orderDate, siteCode, conn);
//Changes and Commented By Ajay on 20-12-2017:END
if(errCode != null && errCode.trim().length() != 0)
{ {
errString = getErrorString("tran_date",errCode,userId); errString = getErrorString("tran_date",errCode,userId);
break ; break ;
......
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