Commit 86925382 authored by ppanigrahi's avatar ppanigrahi

changed the conditions


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98081 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bb67baf6
...@@ -62,66 +62,6 @@ public class SupplierInetPortalAprv ...@@ -62,66 +62,6 @@ public class SupplierInetPortalAprv
supp_code = genericUtility.getColumnValue("supp_code", dom); supp_code = genericUtility.getColumnValue("supp_code", dom);
supp_code = supp_code == null ? "" : supp_code.trim(); supp_code = supp_code == null ? "" : supp_code.trim();
}
else if (childNodeName.equalsIgnoreCase("supp_type"))
{
supp_type = genericUtility.getColumnValue("supp_type", dom);
supp_type = supp_type == null ? "" : supp_type.trim();
}
else if (childNodeName.equalsIgnoreCase("group_code"))
{
group_code = genericUtility.getColumnValue("group_code", dom);
group_code = group_code == null ? "" : group_code.trim();
}
else if (childNodeName.equalsIgnoreCase("addr1"))
{
addr1 = genericUtility.getColumnValue("addr1", dom);
addr1 = addr1 == null ? "" : addr1.trim();
}
else if (childNodeName.equalsIgnoreCase("addr2"))
{
addr2 = genericUtility.getColumnValue("addr2", dom);
addr2 = addr2 == null ? "" : addr2.trim();
}
else if (childNodeName.equalsIgnoreCase("addr3"))
{
addr3 = genericUtility.getColumnValue("addr3", dom);
addr3 = addr3 == null ? "" : addr3.trim();
}
else if (childNodeName.equalsIgnoreCase("city"))
{
city = genericUtility.getColumnValue("city", dom);
city = city == null ? "" : city.trim();
}
else if (childNodeName.equalsIgnoreCase("state_code"))
{
state_code = genericUtility.getColumnValue("state_code", dom);
state_code = state_code == null ? "" : state_code.trim();
}
else if (childNodeName.equalsIgnoreCase("pin"))
{
pin = genericUtility.getColumnValue("pin", dom);
pin = pin == null ? "" : pin.trim();
}
else if (childNodeName.equalsIgnoreCase("count_code"))
{
count_code = genericUtility.getColumnValue("count_code", dom);
count_code = count_code == null ? "" : count_code.trim();
}
else if (childNodeName.equalsIgnoreCase("sh_name"))
{
sh_name = genericUtility.getColumnValue("sh_name", dom);
sh_name = sh_name == null ? "" : sh_name.trim();
} }
else if (childNodeName.equalsIgnoreCase("tele1")) else if (childNodeName.equalsIgnoreCase("tele1"))
{ {
...@@ -159,46 +99,21 @@ public class SupplierInetPortalAprv ...@@ -159,46 +99,21 @@ public class SupplierInetPortalAprv
ser_tax_reg = ser_tax_reg == null ? "" : ser_tax_reg.trim(); ser_tax_reg = ser_tax_reg == null ? "" : ser_tax_reg.trim();
} }
else if (childNodeName.equalsIgnoreCase("full_name"))
{
full_name = genericUtility.getColumnValue("full_name", dom);
full_name = full_name == null ? "" : full_name.trim();
}
else if (childNodeName.equalsIgnoreCase("supp_name"))
{
supp_name = genericUtility.getColumnValue("supp_name", dom);
supp_name = supp_name == null ? "" : supp_name.trim();
}
} }
sql = "UPDATE SUPPLIER SET SUPP_TYPE=?,GROUP_CODE=?,ADDR1=?,ADDR2=?,ADDR3=?,CITY=?,STATE_CODE=?,PIN=?," + sql = "UPDATE SUPPLIER SET TELE1=?,TAX_REG=?,CHQ_NAME=?,PAN_NO=?,EXCISE_REF=?,SER_TAX_REG=? "+
"COUNT_CODE=?,SH_NAME=?,TELE1=?,TAX_REG=?,CHQ_NAME=?,PAN_NO=?,EXCISE_REF=?,SER_TAX_REG=?,FULL_NAME=?,SUPP_NAME=?"+
"WHERE SUPP_CODE=?"; "WHERE SUPP_CODE=?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, supp_type); pstmt.setString(1, tele1);
pstmt.setString(2, group_code); pstmt.setString(2, tax_reg);
pstmt.setString(3, addr1); pstmt.setString(3, chq_name);
pstmt.setString(4, addr2); pstmt.setString(4, pan_no);
pstmt.setString(5, addr3); pstmt.setString(5, excise_ref);
pstmt.setString(6, city); pstmt.setString(6, ser_tax_reg);
pstmt.setString(7, state_code); pstmt.setString(7, tranId);
pstmt.setString(8, pin);
pstmt.setString(9, count_code);
pstmt.setString(10, sh_name);
pstmt.setString(11, tele1);
pstmt.setString(12, tax_reg);
pstmt.setString(13, chq_name);
pstmt.setString(14, pan_no);
pstmt.setString(15, excise_ref);
pstmt.setString(16, ser_tax_reg);
pstmt.setString(17, full_name);
pstmt.setString(18, supp_name);
pstmt.setString(19, tranId);
cnt += pstmt.executeUpdate(); cnt += pstmt.executeUpdate();
pstmt.close(); 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