Replace QuatationAmedmentIC.java Done Some Changes

parent 55471e93
...@@ -21,7 +21,7 @@ import ibase.webitm.utility.ITMException; ...@@ -21,7 +21,7 @@ import ibase.webitm.utility.ITMException;
public class QuatationAmedmentIC extends ValidatorEJB{ public class QuatationAmedmentIC extends ValidatorEJB{
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{ {
...@@ -34,11 +34,11 @@ public class QuatationAmedmentIC extends ValidatorEJB{ ...@@ -34,11 +34,11 @@ public class QuatationAmedmentIC extends ValidatorEJB{
Timestamp quoDate=null; Timestamp quoDate=null;
double lineNo1=0.0 , quantity=0.0 , rate=0.0 , quantityOld=0.0, amendmentCount=1.0; double lineNo1=0.0 , quantity=0.0 , rate=0.0 , quantityOld=0.0, amendmentCount=1.0;
String ll_line_no="", quotNo=""; String ll_line_no="", quotNo="";
String itemCode = ""; String itemCode = "";
String itemName = ""; String itemName = "";
String unit =""; String unit ="";
double quantity1 = 0.0; double quantity1 = 0.0;
double rate1 = 0.0; double rate1 = 0.0;
double newRate =0.0; double newRate =0.0;
double oldRate = 0.0; double oldRate = 0.0;
Timestamp ldt_date = new Timestamp(System.currentTimeMillis()); Timestamp ldt_date = new Timestamp(System.currentTimeMillis());
...@@ -74,14 +74,11 @@ public class QuatationAmedmentIC extends ValidatorEJB{ ...@@ -74,14 +74,11 @@ public class QuatationAmedmentIC extends ValidatorEJB{
quoDate=rs.getTimestamp("add_date"); quoDate=rs.getTimestamp("add_date");
exchRate = rs.getDouble("exch_rate"); exchRate = rs.getDouble("exch_rate");
siteCode = rs.getString("site_code"); siteCode = rs.getString("site_code");
} }
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
setItem(dom, 1, "hosp_code", hospCode); setItem(dom, 1, "hosp_code", hospCode);
setItem(dom, 1, "hosp_name", hospName); setItem(dom, 1, "hosp_name", hospName);
setItem(dom, 1, "cust_code", custCode); setItem(dom, 1, "cust_code", custCode);
...@@ -131,11 +128,11 @@ public class QuatationAmedmentIC extends ValidatorEJB{ ...@@ -131,11 +128,11 @@ public class QuatationAmedmentIC extends ValidatorEJB{
{ {
ls_line_no1 = 0; ls_line_no1 = 0;
} }
String quotNo1 = whenNull(getItemString(dom1, 1, "quot_no")); String quotNo1 = whenNull(getItemString(dom1, 1, "quot_no"));
sql=" select quot_no , item_code , descr , unit, " + sql=" select quot_no , item_code , descr , unit, " +
" quantity , rate , rate_new , old_rate," + " quantity , rate , rate_new , old_rate " +
" from sales_quotdet " + " from sales_quotdet " +
" where quot_no = ? and line_no = ?"; " where quot_no = ? and line_no = ?";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
...@@ -152,7 +149,7 @@ public class QuatationAmedmentIC extends ValidatorEJB{ ...@@ -152,7 +149,7 @@ public class QuatationAmedmentIC extends ValidatorEJB{
rate = rs.getDouble("rate"); rate = rs.getDouble("rate");
newRate = rs.getDouble("rate_new"); newRate = rs.getDouble("rate_new");
oldRate = rs.getDouble("old_rate"); oldRate = rs.getDouble("old_rate");
} }
setItem(dom, 1, "quot_no", quotNo); setItem(dom, 1, "quot_no", quotNo);
setItem(dom, 1, "item_code", itemCode); setItem(dom, 1, "item_code", 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