Commit 1b3bffbf authored by dsawant's avatar dsawant

updated for commit changes


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96294 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4fa9c640
package ibase.webitm.ejb.dis;
package ibase.webitm.ejb.mfg;
import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.ValidatorEJB;
......@@ -60,27 +60,19 @@ public class DistIssWizPostSave extends ValidatorEJB implements DistIssWizPostSa
public String postSave(Document dom,String tranId,String editflag,String xtraParams,Connection conn)
{
System.out.println("post save dom data1 ---------------:"+dom);
String sql = "", error = "";
double quantity = 0, grossWeight = 0, tareWeight = 0, netWeight = 0, noArt = 0;
int cnt1 = 0;
String lotSl="",locCode="";
int cnt = 0;
String sql = "",shipmentId = "";
GenericUtility genericUtility = GenericUtility.getInstance();
PreparedStatement pstmt = null,pstmt1 = null;
String lotsl = "",siteCode="";
boolean isLocalConn = false;
double allQty=0;
double quantity = 0,allQty=0;
ResultSet rs = null,rs1 = null;
double amount = 0,netAmount=0,discAmount=0,taxAmount=0; //net_amt =amount+tax_amt-disc_amt
String shipmentId = "";
double amount = 0,netAmount=0,discAmount=0,taxAmount=0,noArt = 0; //net_amt =amount+tax_amt-disc_amt
double grossWeight = 0 ,tareWeight = 0 , netWeight = 0;
try
{
sql = "select lot_sl from distord_issdet where tran_id = ? ";
pstmt= conn.prepareStatement(sql);
//System.out.println("Second sql ["+sql + "]");
......@@ -224,48 +216,64 @@ public class DistIssWizPostSave extends ValidatorEJB implements DistIssWizPostSa
//conn.commit();
}catch(Exception e)
}
catch(Exception e)
{
try {
System.out.println(">>>>>>>>>>>>In catch Before rollback>>>");
conn.rollback();
} catch (SQLException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
error=e1.getMessage();
}
System.out.println("Exception ::"+e);
e.printStackTrace();
error=e.getMessage();
}
try {
throw new ITMException(e);
} catch (ITMException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
finally
{
try {
System.out.println(">>>>>>>>>>>>In finally Before Commit>>>");
if(pstmt != null)
try
{
if(rs!=null){
rs.close();
rs = null;
}
if(pstmt != null){
pstmt.close();
if(conn != null)
{
conn.close();
pstmt = null;
}
if(rs != null)
rs.close();
pstmt = null;
rs = null;
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
error=e.getMessage();
}
if(isLocalConn){
if(conn != null)
{
conn.commit();
conn.close();
conn = null;
}
}
}catch(Exception d)
{
d.printStackTrace();
try {
throw new ITMException(d);
} catch (ITMException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
return error;
return "";
}
}
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