Commit cabf3ffa authored by steurwadkar's avatar steurwadkar

GSTR3B data generation process screen source code commit


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106532 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 13ae6d63
...@@ -23,11 +23,6 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe ...@@ -23,11 +23,6 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe
E12GenericUtility e12GenericUtility = new E12GenericUtility(); E12GenericUtility e12GenericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
public String wfValData() throws RemoteException, ITMException
{
return "";
}
public String wfValData(String currXmlDataStr, String hdrXmlDataStr, String allXmlDataStr, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException public String wfValData(String currXmlDataStr, String hdrXmlDataStr, String allXmlDataStr, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException
{ {
Document currDom = null; Document currDom = null;
...@@ -37,7 +32,7 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe ...@@ -37,7 +32,7 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe
try try
{ {
System.out.println("Inside GstDataIC wfValData"); System.out.println("Inside GenerateGSTR3BIC wfValData");
if(currXmlDataStr != null && currXmlDataStr.trim().length()!=0) if(currXmlDataStr != null && currXmlDataStr.trim().length()!=0)
{ {
currDom = e12GenericUtility.parseString(currXmlDataStr); currDom = e12GenericUtility.parseString(currXmlDataStr);
...@@ -52,16 +47,16 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe ...@@ -52,16 +47,16 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe
} }
errString = wfValData( currDom, hdrDom, allDom, objContext, editFlag, xtraParams ); errString = wfValData( currDom, hdrDom, allDom, objContext, editFlag, xtraParams );
}//end of try }
catch(Exception e) catch(Exception e)
{ {
errString = e12GenericUtility.createErrorString(e); errString = e12GenericUtility.createErrorString(e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); throw new ITMException(e);
}//end of catch }
return errString ; return errString ;
}//end of wfvalData() of xml string }
public String wfValData(Document currDom, Document hdrDom, Document allDom, String objContext, String editFlag,String xtraParams) throws RemoteException, ITMException public String wfValData(Document currDom, Document hdrDom, Document allDom, String objContext, String editFlag,String xtraParams) throws RemoteException, ITMException
{ {
...@@ -83,7 +78,7 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe ...@@ -83,7 +78,7 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe
{ {
conn = getConnection(); conn = getConnection();
String userID = e12GenericUtility.getValueFromXTRA_PARAMS( xtraParams, "LoginCode" ); String userID = e12GenericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" );
if ( objContext != null && objContext.trim().length() > 0 ) if ( objContext != null && objContext.trim().length() > 0 )
{ {
...@@ -120,36 +115,13 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe ...@@ -120,36 +115,13 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe
errString = getErrorString("prd_code","NOTANUMBR1",userID); errString = getErrorString("prd_code","NOTANUMBR1",userID);
break; break;
} }
/*sql = " SELECT COUNT(*) AS CNT FROM PERIOD WHERE TO_CHAR(TO_DATE(code,'yyyymm'),'mmyyyy') = ? ";
pstmt = connObject.prepareStatement(sql);
pstmt.setString(1, columnValue);
rSet = pstmt.executeQuery();
if (rSet.next())
{
count = rSet.getInt(1);
} }
if (rSet != null)
{
rSet.close();rSet = null;
} }
if (pstmt != null ) if ("gstin".equalsIgnoreCase( childNodeName ) )
{
pstmt.close();pstmt = null;
}*/
/*if(count == 0)
{
errString = itmDBAccessEJB.getErrorString("","VMPRDNTDF","","",connObject);
break;
}*/
}
}
if ("gst_type".equalsIgnoreCase( childNodeName ) )
{ {
if (childNode.getFirstChild()==null) if (childNode.getFirstChild()==null)
{ {
errString = getErrorString("gst_type","VTBLNKTYPE",userID); errString = getErrorString("gstin","VTBLNKTYPE",userID);
break; break;
} }
} }
...@@ -157,7 +129,7 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe ...@@ -157,7 +129,7 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe
} }
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception in GstDataIC wfValData == >"+e.getMessage()); System.out.println("GenerateGSTR3BIC.wfValData()["+e.getMessage()+"]");
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); throw new ITMException(e);
} }
...@@ -184,12 +156,12 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe ...@@ -184,12 +156,12 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
}//end of catch }
} //end of finally }
return (errString); return (errString);
} }
public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{ {
Document dom = null; Document dom = null;
Document dom1 = null; Document dom1 = null;
...@@ -328,15 +300,18 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe ...@@ -328,15 +300,18 @@ public class GenerateGSTR3BIC extends ValidatorEJB implements GenerateGSTR3BICRe
{ {
if(pstmt != null) if(pstmt != null)
{ {
pstmt.close();pstmt = null; pstmt.close();
pstmt = null;
} }
if(rs != null) if(rs != null)
{ {
rs.close();rs = null; rs.close();
rs = null;
} }
if(conn != null) if(conn != null)
{ {
conn.close();conn = null; conn.close();
conn = null;
} }
} }
catch(Exception d) catch(Exception d)
......
...@@ -8,10 +8,8 @@ import org.w3c.dom.*; ...@@ -8,10 +8,8 @@ import org.w3c.dom.*;
@javax.ejb.Local @javax.ejb.Local
public interface GenerateGSTR3BICLocal extends ValidatorLocal public interface GenerateGSTR3BICLocal extends ValidatorLocal
{ {
public String wfValData() throws RemoteException,ITMException;
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;
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException; public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
public String itemChanged(String xmlCurrFrmString, String xmlHdrFrmString,String xmlAllFrmString, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(String xmlCurrFrmString, String xmlHdrFrmString,String xmlAllFrmString, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
} }
\ No newline at end of file
...@@ -8,10 +8,8 @@ import org.w3c.dom.*; ...@@ -8,10 +8,8 @@ import org.w3c.dom.*;
@javax.ejb.Remote @javax.ejb.Remote
public interface GenerateGSTR3BICRemote extends ValidatorRemote public interface GenerateGSTR3BICRemote extends ValidatorRemote
{ {
public String wfValData() throws RemoteException,ITMException;
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;
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException; public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged() throws RemoteException,ITMException;
public String itemChanged(String xmlCurrFrmString, String xmlHdrFrmString,String xmlAllFrmString, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(String xmlCurrFrmString, String xmlHdrFrmString,String xmlAllFrmString, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(Document currDom, Document hdrDom, Document allDom, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
} }
\ No newline at end of file
package ibase.webitm.ejb.gst; package ibase.webitm.ejb.gst;
import java.rmi.RemoteException;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import ibase.webitm.ejb.ProcessLocal; import ibase.webitm.ejb.ProcessLocal;
...@@ -10,7 +8,6 @@ import ibase.webitm.utility.ITMException; ...@@ -10,7 +8,6 @@ import ibase.webitm.utility.ITMException;
@javax.ejb.Local @javax.ejb.Local
public interface GenerateGSTR3BPrcLocal extends ProcessLocal public interface GenerateGSTR3BPrcLocal extends ProcessLocal
{ {
public String process() throws RemoteException,ITMException; public String process(String xmlString, String xmlString2, String objContext, String xtraParams) throws ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException; public String process(Document headerDom, Document detailDom, String objContext, String xtraParams) throws ITMException;
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
} }
\ No newline at end of file
package ibase.webitm.ejb.gst; package ibase.webitm.ejb.gst;
import java.rmi.RemoteException;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import ibase.webitm.ejb.ProcessRemote; import ibase.webitm.ejb.ProcessRemote;
...@@ -10,8 +8,7 @@ import ibase.webitm.utility.ITMException; ...@@ -10,8 +8,7 @@ import ibase.webitm.utility.ITMException;
@javax.ejb.Remote @javax.ejb.Remote
public interface GenerateGSTR3BPrcRemote extends ProcessRemote public interface GenerateGSTR3BPrcRemote extends ProcessRemote
{ {
public String process() throws RemoteException,ITMException; public String process(String xmlString, String xmlString2, String objContext, String xtraParams) throws ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException; public String process(Document headerDom, Document detailDom, String objContext, String xtraParams) throws ITMException;
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException;
} }
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