Commit 86e28610 authored by ssalve's avatar ssalve

Sarita: Done changes for item_code to set on detail screen on 15MARCH2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182099 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2fb7ed1e
package ibase.webitm.ejb.dis; package ibase.webitm.ejb.dis;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException;
import java.util.Date;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.sql.Connection; import java.sql.Connection;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.Date;
import java.util.List; import java.util.List;
import javax.ejb.Stateless; import javax.ejb.Stateless;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import org.w3c.dom.Node; import org.w3c.dom.Node;
import org.w3c.dom.NodeList; import org.w3c.dom.NodeList;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException;
@Stateless @Stateless
public class SRLContainerIC extends ValidatorEJB implements SRLContainerICRemote, SRLContainerICLocal public class SRLContainerIC extends ValidatorEJB implements SRLContainerICRemote, SRLContainerICLocal
{ {
...@@ -722,7 +724,34 @@ public class SRLContainerIC extends ValidatorEJB implements SRLContainerICRemote ...@@ -722,7 +724,34 @@ public class SRLContainerIC extends ValidatorEJB implements SRLContainerICRemote
valueXmlString.append("<Detail2>\r\n"); valueXmlString.append("<Detail2>\r\n");
childNodeListLength = childNodeList.getLength(); childNodeListLength = childNodeList.getLength();
System.out.println("currentColumn-----for case2--->>[" + currentColumn + "]"); System.out.println("currentColumn-----for case2--->>[" + currentColumn + "]");
//Added by sarita on 15MARCH2018
if("itm_default".equalsIgnoreCase(currentColumn.trim()))
{
itemCode = checkNullAndTrim(genericUtility.getColumnValue("item_code", dom1));
valueXmlString.append("<item_code>").append(itemCode).append("</item_code>");
sql = "select descr from item where item_code=?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,itemCode);
rs = pstmt.executeQuery();
if(rs.next())
{
item_descr = rs.getString("descr");
System.out.println("Item Description is ===========>"+item_descr);
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
valueXmlString.append("<item_descr><![CDATA[" ).append(item_descr).append( "]]></item_descr>\r\n" );
}
if("itm_defaultedit".equalsIgnoreCase(currentColumn.trim())) if("itm_defaultedit".equalsIgnoreCase(currentColumn.trim()))
{ {
itemCode = checkNullAndTrim(genericUtility.getColumnValue("item_code", dom)); System.out.println("Item Code is Detail=== ["+itemCode+"]"); itemCode = checkNullAndTrim(genericUtility.getColumnValue("item_code", dom)); System.out.println("Item Code is Detail=== ["+itemCode+"]");
......
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