Commit dcab4387 authored by skumbhar's avatar skumbhar

Removed unused variables and changed the filter as Supp_Code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98194 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b20177dd
......@@ -11,6 +11,14 @@ import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
/**
* @author ANIKET BIBAVE
* SupplierInetPortalAprv.java
* Request Id:- [F14KSUN003]
* 17/03/15
*
* To update the Supplier Master through workflow, invoked on Save transaction.
*/
public class SupplierInetPortalAprv
{
public String confirm(String tranId, String empCodeAprv, String xmlDataAll, String processId, String keyFlag) throws RemoteException, ITMException {
......@@ -29,9 +37,7 @@ public class SupplierInetPortalAprv
Node childNode = null;
int ctr = 0, childNodeListLength = 0, cnt = 0;
String childNodeName = null;
String supp_type="",group_code="",addr1="",addr2="",addr3="",supp_code="",
city="",state_code="",pin="",count_code="",sh_name="",tele1="",tax_reg="",
chq_name="",pan_no="",excise_ref="",ser_tax_reg="",full_name="",supp_name="";
String supp_code="", tele1="", tax_reg="", chq_name="", pan_no="", excise_ref="", ser_tax_reg="";
try
{
conn = connDriver.getConnectDB("DriverITM");
......@@ -54,14 +60,12 @@ public class SupplierInetPortalAprv
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
System.out.println("childNodeName:" + childNodeName);
supp_code = genericUtility.getColumnValue("supp_code", dom);
System.out.println("supp_code="+supp_code);
if (childNodeName.equalsIgnoreCase("supp_code"))
{
supp_code = genericUtility.getColumnValue("supp_code", dom);
supp_code = supp_code == null ? "" : supp_code.trim();
System.out.println("supp_code="+supp_code);
}
else if (childNodeName.equalsIgnoreCase("tele1"))
{
......@@ -101,9 +105,8 @@ public class SupplierInetPortalAprv
}
}
sql = "UPDATE SUPPLIER SET TELE1=?,TAX_REG=?,CHQ_NAME=?,PAN_NO=?,EXCISE_REF=?,SER_TAX_REG=? "+
"WHERE SUPP_CODE=?";
sql = "UPDATE SUPPLIER SET TELE1 = ?,TAX_REG = ?,CHQ_NAME = ?,PAN_NO = ?,EXCISE_REF = ?,SER_TAX_REG = ? "+
"WHERE SUPP_CODE = ?";
pstmt = conn.prepareStatement(sql);
......@@ -113,7 +116,7 @@ public class SupplierInetPortalAprv
pstmt.setString(4, pan_no);
pstmt.setString(5, excise_ref);
pstmt.setString(6, ser_tax_reg);
pstmt.setString(7, tranId);
pstmt.setString(7, supp_code);
cnt += pstmt.executeUpdate();
pstmt.close();
......
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