Commit 59646a4a authored by ssalve's avatar ssalve

Sarita: Done changes to show supp_type description on 15MAY2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@184933 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6b5dc195
......@@ -127,6 +127,7 @@ public class Supplier extends ValidatorEJB implements SupplierLocal,SupplierRemo
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
if(childNodeName.equalsIgnoreCase("supp_code"))
{
suppCode = genericUtility.getColumnValue("supp_code", dom);
......@@ -986,6 +987,7 @@ public class Supplier extends ValidatorEJB implements SupplierLocal,SupplierRemo
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
String suppType = "" , suppTypeDescr = ""; // Added by sarita on 15MAY2018
try
{
//Changes and Commented By Bhushan on 09-06-2016 :START
......@@ -1012,7 +1014,7 @@ public class Supplier extends ValidatorEJB implements SupplierLocal,SupplierRemo
ctr = 0;
valueXmlString.append("<Detail1>");
if(currentColumn.trim().equalsIgnoreCase("supp_code"))
{
System.out.println(">>>supp_code itemchange:");
......@@ -1119,6 +1121,29 @@ public class Supplier extends ValidatorEJB implements SupplierLocal,SupplierRemo
valueXmlString.append("<chq_name>").append("<![CDATA[" + suppName + "]]>").append("</chq_name>");
}
}
//Added by sarita on 15MAY2018 [start] to show description of selected type
else if(currentColumn.trim().equalsIgnoreCase("supp_type"))
{
suppType = genericUtility.getColumnValue("supp_type", dom);
System.out.println("suppType == ["+suppType+"]");
sql = "select descr from gencodes where mod_name='W_SUPPLIER' and fld_name='SUPP_TYPE' and fld_value = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, suppType);
rs = pstmt.executeQuery();
if(rs.next())
{
suppTypeDescr = rs.getString("descr");
System.out.println("Descr is :::" +suppTypeDescr);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
valueXmlString.append("<supp_type_descr>").append("<![CDATA[" + suppTypeDescr + "]]>").append("</supp_type_descr>");
}
//Added by sarita on 15MAY2018 [end] to show description of selected type
else if(currentColumn.trim().equalsIgnoreCase("cr_term"))
{
System.out.println(">>>>>>>>>>Itemchange cr_term:");
......@@ -1173,14 +1198,16 @@ public class Supplier extends ValidatorEJB implements SupplierLocal,SupplierRemo
valueXmlString.append("<count_code>").append("<![CDATA[" + checkNull(countCode) + "]]>").append("</count_code>");
cityHdr =genericUtility.getColumnValue("city", dom); //change cityHdr and pinHdr variable by sagar on 23/09/14
pinHdr =genericUtility.getColumnValue("pin", dom);
if(cityHdr == null || cityHdr.trim().length() == 0)
{
//Commented by sarita on 15MAY2018[start] to perform itemchnage for city and pin code even if value exists
/*if(cityHdr == null || cityHdr.trim().length() == 0)
{*/
valueXmlString.append("<city>").append("<![CDATA[" + checkNull(city) + "]]>").append("</city>");
}
/*}
if(pinHdr == null || pinHdr.trim().length() == 0)
{
{*/
valueXmlString.append("<pin>").append("<![CDATA[" + checkNull(pin) + "]]>").append("</pin>");
}
//}
//Commented by sarita on 15MAY2018[end] to perform itemchnage for city and pin code even if value exists
}
else if(currentColumn.trim().equalsIgnoreCase("tran_code"))
{
......
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