Commit 9d47e941 authored by manohar's avatar manohar

edi generation as per transetup added


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95135 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ce3ada8e
......@@ -56,7 +56,7 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo
String errCode = null;
int count=0;
ITMDBAccessEJB itmDBAccessEJB = null;
String errString = null;
String errString = null, ediOption = "0";
int upd = 0;
try
{
......@@ -381,6 +381,21 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo
}
//call edi generation
if( errString == null || errString.trim().length() == 0 )
{
// 28/05/14 manoharan
sql = " select edi_option from transetup where tran_window = 'w_distordamd' ";
pstmt = conn.prepareStatement( sql );
rs = pstmt.executeQuery();
if ( rs.next() )
{
ediOption = rs.getString(1):
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if (ediOption != null && ("1".equals(ediOption) || "2".equals(ediOption)) )
{
errCode = null;
GenerateEDILocal genEDIRemote = null;
......@@ -400,6 +415,7 @@ public class DistOrderAmdConf extends ActionHandlerEJB implements DistOrderAmdCo
{
errCode = null;
}
}
}
if( errCode != null && errCode.trim().length() > 0 )
......
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