Commit 7333957b authored by ssalve's avatar ssalve

Source code for GstrPosEJB


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106195 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5ec04b64
/*
* Author:Wasim Ansari
* Date:03-05-2017
* Request ID:F17BBAS001 (GST Wizard Post Save Component for Reconciliation Trace)
*/
package ibase.webitm.ejb.gst;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import javax.ejb.Stateless;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@Stateless
public class GstrPosEJB extends ValidatorEJB implements GstrPosEJBRemote,GstrPosEJBLocal
{
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB();
/**
* Default constructor.
*/
public GstrPosEJB() {
// TODO Auto-generated constructor stub
}
@Override
public String postSave(String xmlStringAll, String tranID, String editFlag, String xtraParams, Connection conn) throws RemoteException, ITMException
{
String retString="";
try
{
retString = postSave(xmlStringAll, xtraParams, "", conn);
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
return retString;
}
public String postSave(String xmlstring, String xtraParams, String forcedFlag, Connection conn) throws RemoteException,ITMException
{
System.out.println("Inside GstrPosEJB Post Save ["+xmlstring+"] \n xtraParams ["+xtraParams+"] \n forcedFlag["+forcedFlag+"]");
PreparedStatement pstmt = null;
ResultSet rs = null;
Timestamp currDate = null;
Timestamp validUptoDate = null;
boolean isError = false,isLocCon = false;
Document dom = null;
String sql = "",retString = "";
int cnt = 0;
FinCommon finCommon = null;
String loginSite = "";
java.sql.Date chg_date=null;
String val = "";
String loginSiteCode = "";
String name="",addr1="",addr2="",addr3="",city="",state="",pin="",taxRegNo="",tran_type="",tranId="";
//Changed By Pragyan
String recordType = "", // Gstr type rec_type
sPos = "", // Supplier Place Of Supplay gst_code
cPos = "", // Customer Place Of Supplay
gstType ="",
/*gst_type
* <item display="Invoices" data="I"/>
<item display="Exports" data="E"/>
<item display="Nil Rated Outward Supplies" data="L"/>
<item display="Credit/Debit Notes" data="N"/>
<item display="Advance Tax Received" data="A"/>
<item display="Advance Tax Adjusted" data="T"/>*/
docType ="",
//Document Type
/*doc_type
* <item display="Regular B2B Invoices" data="R"/>
<item display="With Payment" data="WPAY"/>
<item display="Without Payment" data="WOPAY"/>
<item display="SEZ Exports with Payment" data="SEWP"/>
<item display="SEZ exports without Payment" data="SEWOP"/>
<item display="Deemed Exports" data="DE"/>
<item display="Debit" data="D"/>
<item display="Credit" data="C"/>
<item display="NIL rated supplies" data="NRATD"/>
<item display="NIL exempted supplies" data="EXEMP"/>
<item display="NIL non GST supplies" data="NOGST"/>
*/
reverseCharge ="N",//Reverse Charge reverse_chrg
eCommGtin ="",//Ecommerce Gtin ecom_reg_no
gtin = "",//Supplier GTIN
tranType = "";
double invAmt =0.0,b2clInvVal = 0.0;//amount
try
{
System.out.println("===================Inside GstrPosEJB class========================");
if(conn == null || conn.isClosed())
{
System.out.println("@@Connection is null");
conn = getConnection();
isLocCon = true;
}
else
{
System.out.println("@@Connection is not null");
}
System.out.println("Detail2 in xmlstring ["+xmlstring.contains("Detail2")+"]");
System.out.println("Detail2 in xmlstring ["+xmlstring.indexOf("Detail2")+"]");
if(xmlstring != null && (xmlstring.indexOf("Detail1") != -1))
{
finCommon = new FinCommon();
currDate = new java.sql.Timestamp(System.currentTimeMillis());
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat());
SimpleDateFormat sdfAppl = new SimpleDateFormat(genericUtility.getApplDateFormat());
String currDateStr = sdfAppl.format(currDate.getTime());
currDate = Timestamp.valueOf(genericUtility.getValidDateString(currDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
//currDate = Timestamp.valueOf(genericUtility.getValidDateString(currDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()));
System.out.println("currDate:::::::::"+currDate);
dom = genericUtility.parseString(xmlstring);
NodeList detail1NodeList =dom.getElementsByTagName("Detail1");
int detail3NodeListlen = detail1NodeList.getLength();
loginSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
System.out.println("loginSite>>>>>>>>>>"+loginSite);
for(int ctrH = 0; ctrH < detail3NodeListlen ; ctrH++)
{
NodeList childNodeList = detail1NodeList.item(ctrH).getChildNodes();
int childNodeListlen = childNodeList.getLength();
System.out.println("childNodeListlen>>>>>"+childNodeListlen);
for(int ctrD = 0; ctrD < childNodeListlen ; ctrD++)
{
Node childNode = childNodeList.item(ctrD);
System.out.println("childNode.getNodeName()>>"+childNode.getNodeName());
if(childNode != null && "tran_type".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
tran_type = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
System.out.println("GSTR Customer tran_type is===="+tran_type);
}
else if(childNode != null && "tax_reg_no".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
taxRegNo = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
System.out.println("GSTR Customer tax_reg_no is===="+taxRegNo);
}
else if(childNode != null && "name".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
name = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
System.out.println("GSTR Customer Name is===="+name);
}
else if(childNode != null && "addr1".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
addr1 = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
System.out.println("GSTR Customer addr1 is===="+addr1);
}
else if(childNode != null && "addr2".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
addr2 = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
System.out.println("GSTR Customer addr2 is===="+addr2);
}
else if(childNode != null && "addr3".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
addr3 = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
System.out.println("GSTR Customer addr3 is===="+addr3);
}
else if(childNode != null && "city".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
city = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
System.out.println("GSTR Customer city is===="+city);
}
else if(childNode != null && "gst_state_code".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
state = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
System.out.println("GSTR Customer state is===="+state);
}
else if(childNode != null && "pin".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
pin = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
System.out.println("GSTR Customer pin is===="+pin);
}
//Changed By Pragyan.start
else if(childNode != null && "rec_type".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
recordType = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
}
else if(childNode != null && "gst_type".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
gstType = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
}
else if(childNode != null && "doc_type".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
docType = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
}
else if(childNode != null && "reverse_chrg".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
reverseCharge = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
}
else if(childNode != null && "ecom_reg_no".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
eCommGtin = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
}
else if(childNode != null && "gst_code".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
cPos = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
}
else if(childNode != null && "amount".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
invAmt = Double.parseDouble(childNode.getFirstChild().getNodeValue());
}
else if(childNode != null && "tran_id".equalsIgnoreCase(childNode.getNodeName()) && childNode.getFirstChild() != null)
{
tranId = checkNullAndTrim(childNode.getFirstChild().getNodeValue());
}
//Changed By Pragyan.end
}
}
System.out.println("tax_reg_no["+taxRegNo+"]"+"name["+name+"]"+"addr1["+addr1+"]"+"addr2["+addr2+"]"+"addr3["+addr3+"]"+"city["+city+"]"+"state["+state+"]"+"pin["+pin+"]");
if("01".equalsIgnoreCase(tran_type) || "02".equalsIgnoreCase(tran_type) || "03".equalsIgnoreCase(tran_type) || "29".equalsIgnoreCase(tran_type) || "30".equalsIgnoreCase(tran_type))
{
sql = "select count(*) as cnt from gst_registration where gst_no=?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,taxRegNo);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt("cnt");
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(cnt > 0)
{
sql = "update gst_registration set name=?,addr1=?,addr2=?,addr3=?,city=?,state_code=?,pin=? where gst_no=?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,name);
pstmt.setString(2,addr1);
pstmt.setString(3,addr2);
pstmt.setString(4,addr3);
pstmt.setString(5,city);
pstmt.setString(6,state);
pstmt.setString(7,pin);
pstmt.setString(8,taxRegNo);
pstmt.executeUpdate();
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
else
{
sql = " insert into gst_registration (gst_no,name,addr1,addr2,addr3,city,state_code,pin) values(?,?,?,?,?,?,?,?)";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,taxRegNo);
pstmt.setString(2,name);
pstmt.setString(3,addr1);
pstmt.setString(4,addr2);
pstmt.setString(5,addr3);
pstmt.setString(6,city);
pstmt.setString(7,state);
pstmt.setString(8,pin);
pstmt.addBatch();
pstmt.executeBatch();
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
}
//Changed By Pragyan 04/07/17 to update tran type logics.start.
sPos = getGstStateCode(loginSite,conn);
System.out.println("Record Type["+recordType+"]Gst Type ["+gstType+"]Doc Type["+docType+"]");
System.out.println("CTIN["+taxRegNo+"]Ecom Gtin["+eCommGtin+"]Suppplier POS["+sPos+"] Customer Pos["+cPos+"]Revrse Charge["+reverseCharge+"]Invoice amount ["+invAmt+"]");
if("1".equalsIgnoreCase(recordType))
{
b2clInvVal = Double.parseDouble(finCommon.getFinparams("999999", "GST_B2CL_INV_VAL", conn));
if("I".equalsIgnoreCase(gstType))
{
if( taxRegNo.length() > 0
&& ("N".equalsIgnoreCase(reverseCharge) || "".equalsIgnoreCase(reverseCharge))
&& ("R".equalsIgnoreCase(docType) || "".equalsIgnoreCase(docType))
&& ("".equalsIgnoreCase(eCommGtin) || eCommGtin.length() <=0))
{
tranType = "01";
}
else if(taxRegNo.length() > 0
&& "Y".equalsIgnoreCase(reverseCharge)
&& ("R".equalsIgnoreCase(docType) || "".equalsIgnoreCase(docType))
&& ("".equalsIgnoreCase(eCommGtin) || eCommGtin.length() <=0))
{
tranType = "02";
}
else if((taxRegNo.length() > 0)
&& ("N".equalsIgnoreCase(reverseCharge) || "".equalsIgnoreCase(reverseCharge))
&& ("R".equalsIgnoreCase(docType) || "".equalsIgnoreCase(docType))
&& (!"".equalsIgnoreCase(eCommGtin) && eCommGtin.length() > 0))
{
tranType = "03";
}
else if((taxRegNo.length() == 0) //B2CL Inter State and inv amt > 250000
&& ("N".equalsIgnoreCase(reverseCharge) || "".equalsIgnoreCase(reverseCharge))
&& (eCommGtin.length() == 0)
&& (!sPos.equalsIgnoreCase(cPos))
&& (invAmt > b2clInvVal))//Should be taken from finParm.
{
tranType = "04";
}
else if((taxRegNo.length() == 0) //B2CL Inter State with ecommerce opt and inv amt > 250000
&& ("N".equalsIgnoreCase(reverseCharge) || "".equalsIgnoreCase(reverseCharge))
&& (eCommGtin.length() > 0)
&& (!sPos.equalsIgnoreCase(cPos))
&& (invAmt > b2clInvVal))//Should be taken from finParm.
{
tranType = "05";
}
else if((taxRegNo.length() == 0) //B2CS Inter State with out ecommerce opt and inv amt < 250000
&& "N".equalsIgnoreCase(reverseCharge)
&& (eCommGtin.length() == 0)
&& (!sPos.equalsIgnoreCase(cPos))
&& (invAmt <= b2clInvVal))//Should be taken from finParm.
{
tranType = "11";
}
else if((taxRegNo.length() == 0) //B2CS Inter State with ecommerce opt and inv amt < 250000 && "N".equalsIgnoreCase(reverseCharge)
&& (eCommGtin.length() > 0)
&& (!sPos.equalsIgnoreCase(cPos))
&& (invAmt <= b2clInvVal))//Should be taken from finParm.
{
tranType = "12";
}
else if((taxRegNo.length() == 0) //B2CS Intra State with out ecommerce opt and inv amt < 250000
&& ("N".equalsIgnoreCase(reverseCharge) || "".equalsIgnoreCase(reverseCharge))
&& (eCommGtin.length() == 0)
&& (sPos.equalsIgnoreCase(cPos))
&& (invAmt <= b2clInvVal))//Should be taken from finParm.
{
tranType = "13";
}
else if((taxRegNo.length() == 0) //B2CS Intra State with ecommerce opt and inv amt < 250000 && "N".equalsIgnoreCase(reverseCharge)
&& (eCommGtin.length() > 0)
&& (sPos.equalsIgnoreCase(cPos))
&& (invAmt <= b2clInvVal))//Should be taken from finParm.
{
tranType = "14";
}
}
else if("E".equalsIgnoreCase(gstType))
{
if("WPAY".equalsIgnoreCase(docType))
{
tranType = "06";
}
else if("WOPAY".equalsIgnoreCase(docType))
{
tranType = "07";
}
else if("SEWP".equalsIgnoreCase(docType))
{
tranType = "08";
}
else if("SEWOP".equalsIgnoreCase(docType))
{
tranType = "09";
}
else if((taxRegNo.length() > 0) && "DE".equalsIgnoreCase(docType))
{
tranType = "10";
}
}
else if("L".equalsIgnoreCase(gstType))
{
/*<item display="NIL rated supplies" data="NRATD"/>
<item display="NIL exempted supplies" data="EXEMP"/>
<item display="NIL non GST supplies" data="NOGST"/>*/
if((taxRegNo.length() > 0) //NIL rated Inter supplies to registred
&& (!sPos.equalsIgnoreCase(cPos))
&& "NRATD".equalsIgnoreCase(docType))
{
tranType = "15";
}
else if((taxRegNo.length() > 0) //exmpted Inter supplies to registred
&& (!sPos.equalsIgnoreCase(cPos))
&& "EXEMP".equalsIgnoreCase(docType))
{
tranType = "16";
}
else if((taxRegNo.length() > 0) //non gst Inter supplies to registred
&& (!sPos.equalsIgnoreCase(cPos))
&& "NOGST".equalsIgnoreCase(docType))
{
tranType = "17";
}
else if((taxRegNo.length() > 0) //NIL rated Intra supplies to registred
&& (sPos.equalsIgnoreCase(cPos))
&& "NRATD".equalsIgnoreCase(docType))
{
tranType = "18";
}
else if((taxRegNo.length() > 0) //exmpted Intra supplies to registred
&& (sPos.equalsIgnoreCase(cPos))
&& "EXEMP".equalsIgnoreCase(docType))
{
tranType = "19";
}
else if((taxRegNo.length() > 0) //Non gst Intra supplies to registred
&& (sPos.equalsIgnoreCase(cPos))
&& "NOGST".equalsIgnoreCase(docType))
{
tranType = "20";
}
//unregistred
else if((taxRegNo.length() == 0) //NIL rated Inter supplies to unregistred
&& (!sPos.equalsIgnoreCase(cPos))
&& "NRATD".equalsIgnoreCase(docType))
{
tranType = "21";
}
else if((taxRegNo.length() == 0) //exmpted Inter supplies to unregistred
&& (!sPos.equalsIgnoreCase(cPos))
&& "EXEMP".equalsIgnoreCase(docType))
{
tranType = "22";
}
else if((taxRegNo.length() == 0) //non gst Inter supplies to unregistred
&& (!sPos.equalsIgnoreCase(cPos))
&& "NOGST".equalsIgnoreCase(docType))
{
tranType = "23";
}
else if((taxRegNo.length() == 0) //NIL rated Intra supplies to unregistred
&& (sPos.equalsIgnoreCase(cPos))
&& "NRATD".equalsIgnoreCase(docType))
{
tranType = "24";
}
else if((taxRegNo.length() == 0) //exmpted Intra supplies to unregistred
&& (sPos.equalsIgnoreCase(cPos))
&& "EXEMP".equalsIgnoreCase(docType))
{
tranType = "25";
}
else if((taxRegNo.length() == 0) //Non gst Intra supplies to unregistred
&& (sPos.equalsIgnoreCase(cPos))
&& "NOGST".equalsIgnoreCase(docType))
{
tranType = "26";
}
}
else if("N".equalsIgnoreCase(gstType))
{
if( taxRegNo.length() > 0 //Credit Note to registered customer
&& ("C".equalsIgnoreCase(docType)))
{
tranType = "29";
}
else if( taxRegNo.length() > 0 //Debite Note to registered customer
&& ("D".equalsIgnoreCase(docType)))
{
tranType = "30";
}
else if( taxRegNo.length() == 0 //Credit Note to unregistered customer
&& ("C".equalsIgnoreCase(docType)))
{
tranType = "31";
}
else if( taxRegNo.length() == 0 //Debite Note to unregistered customer
&& ("D".equalsIgnoreCase(docType)))
{
tranType = "32";
}
}
else if("A".equalsIgnoreCase(gstType))
{
if( taxRegNo.length() > 0 //Advance Received Intra state
|| (sPos.equalsIgnoreCase(cPos)))
{
tranType = "41";
}
else if( taxRegNo.length() > 0 //Advance Received Inter state
|| (!sPos.equalsIgnoreCase(cPos)))
{
tranType = "42";
}
}
else if("T".equalsIgnoreCase(gstType))//Advance adjusted
{
if( taxRegNo.length() > 0 //Advance adjusted Intra state
|| (sPos.equalsIgnoreCase(cPos)))
{
tranType = "43";
}
else if( taxRegNo.length() > 0 //Advance adjusted Inter state
|| (!sPos.equalsIgnoreCase(cPos)))
{
tranType = "44";
}
}
System.out.println("Tran Id ::::["+tranId+"]");
System.out.println("Tran Type is ====="+tranType);
sql = "update gst_data_hdr set tran_type=? where tran_id=?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranType);
pstmt.setString(2,tranId);
pstmt.executeUpdate();
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
//Changed By Pragyan 04/07/17 to update tran type logics.end
}
else
{
System.out.println("Detail1 not found");
retString = itmDBAccessLocal.getErrorString("","VTBLNKDTL","","",conn);
return retString;
}
if(xmlstring != null && xmlstring.indexOf("Detail2") == -1)
{
System.out.println("Detail2 is empty in xmlString....");
retString = itmDBAccessLocal.getErrorString("","VTBLNKDTL2","","",conn);
return retString;
}
}// end of try block
catch(Exception e)
{
System.out.println("Exception GstrPosEJB ==>"+e.getMessage());
isError = true;
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
System.out.println("Inside finally GstrPosEJB isError["+isError+"] connStatus["+isLocCon+"]");
if (rs != null )
{
rs.close();rs = null;
}
if( pstmt != null )
{
pstmt.close();pstmt = null;
}
if(isLocCon)
{
if(isError)
{
System.out.println("Inside rollbacking....");
conn.rollback();
}
else
{
System.out.println("Inside committing....");
conn.commit();
}
if (conn != null )
{
conn.close();conn = null;
}
}
}
catch( Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
System.out.println("errString from post save GstrPosEJB =["+retString+"]");
return retString;
}
private static String checkNullAndTrim(String input)
{
if (input==null)
{
input="";
}
return input.trim();
}
private String getGstStateCode(String siteCode , Connection conn) throws ITMException
{
String pos ="";
String sSQL ="";
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
sSQL = "SELECT ST.GST_CODE FROM TARODEV.SITE S,TARODEV.STATE ST WHERE S.STATE_CODE = ST.STATE_CODE AND S.SITE_CODE = ?";
pstmt = conn.prepareStatement(sSQL);
pstmt.setString(1,siteCode);
rs = pstmt.executeQuery();
if(rs.next())
{
pos = rs.getString("GST_CODE");
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
}
catch(Exception e)
{
e.printStackTrace();
}
finally
{
try
{
if (rs != null )
{
rs.close();rs = null;
}
if( pstmt != null )
{
pstmt.close();pstmt = null;
}
}
catch( Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
return pos;
}
}
/*
* Author:Wasim Ansari
* Date:03-05-2017
* Request ID:S16EBAS006 (GST Wizard)
*/
package ibase.webitm.ejb.gst;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
import javax.ejb.Local;
@Local
public interface GstrPosEJBLocal extends ValidatorLocal
{
public String postSave(String xmlStringAll, String tranId, String editFlag, String xtraParams, Connection conn) throws RemoteException,ITMException;
}
/*
* Author:Wasim Ansari
* Date:03-05-2017
* Request ID:S16EBAS006 (GST Wizard)
*/
package ibase.webitm.ejb.gst;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
import javax.ejb.Remote;
@Remote
public interface GstrPosEJBRemote extends ValidatorRemote
{
public String postSave(String xmlStringAll, String tranId, String editFlag, String xtraParams, Connection conn) 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