Commit e09717df authored by msingh's avatar msingh

Change by Manish on 19/01/17 for Supplier Shipment Wizard.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104424 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5843c05b
...@@ -1960,7 +1960,9 @@ public class AsnConf extends ActionHandlerEJB implements AsnConfLocal, AsnConfRe ...@@ -1960,7 +1960,9 @@ public class AsnConf extends ActionHandlerEJB implements AsnConfLocal, AsnConfRe
//Changed by Rohan on 11-07-13 for generate erraor with asn no,line no and item code.start //Changed by Rohan on 11-07-13 for generate erraor with asn no,line no and item code.start
private String getError(String tranID,String lineNo,String itemCode,String Code,Connection conn) throws ITMException, Exception private String getError(String tranID,String lineNo,String itemCode,String Code,Connection conn) throws ITMException, Exception
{ {
String mainStr =""; String mainStr ="", sql = "", descr = "";
PreparedStatement pstmt = null;
ResultSet rs = null ;
try try
{ {
...@@ -1969,7 +1971,20 @@ public class AsnConf extends ActionHandlerEJB implements AsnConfLocal, AsnConfRe ...@@ -1969,7 +1971,20 @@ public class AsnConf extends ActionHandlerEJB implements AsnConfLocal, AsnConfRe
String begPart = errString.substring(0,errString.indexOf("<message>")+9); String begPart = errString.substring(0,errString.indexOf("<message>")+9);
String endDesc = errString.substring(errString.indexOf("</description>")); String endDesc = errString.substring(errString.indexOf("</description>"));
mainStr= begPart+"Invalid Data "+"</message><description>"; mainStr= begPart+"Invalid Data "+"</message><description>";
mainStr= mainStr+"Tran ID: ["+tranID+"] Line No: ["+lineNo+"] Item Code: ["+itemCode+"]" +endDesc; //mainStr= mainStr+"Tran ID: ["+tranID+"] Line No: ["+lineNo+"] Item Code: ["+itemCode+"]" +endDesc;
sql = "select msg_descr from messages where msg_no = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, Code);
rs = pstmt.executeQuery();
if( rs.next())
{
descr = rs.getString("msg_descr");
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
mainStr= mainStr+descr+" for Tran ID: ["+tranID+"] for Line No: ["+lineNo+"] and Item Code: ["+itemCode+"]" +endDesc;
System.out.println("mainStr:::::::::::::::::: "+mainStr); System.out.println("mainStr:::::::::::::::::: "+mainStr);
begPart = null; begPart = null;
} }
......
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