Commit 1e454531 authored by hmoradiya's avatar hmoradiya

update table for wf_status


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98345 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b7fd0306
...@@ -35,9 +35,9 @@ public class SupplierInetPortalAprv ...@@ -35,9 +35,9 @@ public class SupplierInetPortalAprv
NodeList childNodeList = null; NodeList childNodeList = null;
Node parentNode = null; Node parentNode = null;
Node childNode = null; Node childNode = null;
int ctr = 0, childNodeListLength = 0, cnt = 0; int ctr = 0, childNodeListLength = 0, cnt = 0,updcnt = 0;
String childNodeName = null; String childNodeName = null;
String supp_code="", tele1="", tax_reg="", chq_name="", pan_no="", excise_ref="", ser_tax_reg=""; String supp_code="", tele1="", tax_reg="", chq_name="", pan_no="", excise_ref="", ser_tax_reg="",tran_id = "";
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
...@@ -67,6 +67,12 @@ public class SupplierInetPortalAprv ...@@ -67,6 +67,12 @@ public class SupplierInetPortalAprv
supp_code = supp_code == null ? "" : supp_code.trim(); supp_code = supp_code == null ? "" : supp_code.trim();
System.out.println("supp_code="+supp_code); System.out.println("supp_code="+supp_code);
} }
else if (childNodeName.equalsIgnoreCase("tran_id"))
{
tran_id = genericUtility.getColumnValue("tran_id", dom);
tran_id = tran_id == null ? "" : tran_id.trim();
}
else if (childNodeName.equalsIgnoreCase("tele1")) else if (childNodeName.equalsIgnoreCase("tele1"))
{ {
tele1 = genericUtility.getColumnValue("tele1", dom); tele1 = genericUtility.getColumnValue("tele1", dom);
...@@ -123,8 +129,24 @@ public class SupplierInetPortalAprv ...@@ -123,8 +129,24 @@ public class SupplierInetPortalAprv
pstmt = null; pstmt = null;
System.out.println("Saved Successfully:"+cnt); System.out.println("Saved Successfully:"+cnt);
if(cnt > 0) { if(cnt > 0) {
conn.commit(); sql = "update supp_amd set wf_status = 'A' where tran_id = ?";
retString = "Y"; pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tran_id);
updcnt += pstmt.executeUpdate();
pstmt.close();
pstmt = null;
System.out.println("update wf_status Successfully:"+updcnt);
if(updcnt > 0) {
conn.commit();
retString = "Y";
}
else
{
conn.rollback();
retString = "N";
}
} else } else
{ {
conn.rollback(); conn.rollback();
......
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