Commit 80bee386 authored by nkhan's avatar nkhan

Added by Nasruddin khan


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102623 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8df61299
...@@ -10,6 +10,7 @@ import java.rmi.RemoteException; ...@@ -10,6 +10,7 @@ import java.rmi.RemoteException;
import java.sql.*; import java.sql.*;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import org.w3c.dom.NodeList; import org.w3c.dom.NodeList;
...@@ -198,16 +199,23 @@ public class CommissiondetPos extends ValidatorEJB implements CommissiondetPosL ...@@ -198,16 +199,23 @@ public class CommissiondetPos extends ValidatorEJB implements CommissiondetPosL
pstmt2 = null; pstmt2 = null;
} }
System.out.println("Called Inside Commistion Post det ===>>>>>>>>>>>"); // System.out.println("Called Inside Commistion Post det ===>>>>>>>>>>>");
NodeList detail4List = dom.getElementsByTagName("Detail3"); // NodeList detail4List = dom.getElementsByTagName("Detail3");
// changed by Nasruddin khan [19/JUL/16 D16DFOR001] START // changed by Nasruddin khan [19/JUL/16 D16DFOR001] START
if(detail4List != null && detail4List.getLength() > 0) /*if(detail4List != null && detail4List.getLength() > 0)
{ {
validUptoLast = null;
lineNoLast = null;
commTable = genericUtility.getColumnValueFromNode("comm_table", dom.getElementsByTagName("Detail3").item(0)); commTable = genericUtility.getColumnValueFromNode("comm_table", dom.getElementsByTagName("Detail3").item(0));
String eff_date_dom = genericUtility.getColumnValueFromNode("eff_date", dom.getElementsByTagName("Detail3").item(0));
String validUpTo_dom = genericUtility.getColumnValueFromNode("valid_upto", dom.getElementsByTagName("Detail3").item(0));
System.out.println("eff_date_dom ["+eff_date_dom+"]");
System.out.println("eff_date_dom ["+validUpTo_dom+"]");
noOfParent = detail3List.getLength(); noOfParent = detail3List.getLength();
sql = " select line_no,eff_date,valid_upto FROM COMM_BY_VALUE where comm_table = ? order by eff_date asc " ; sql = " select line_no,eff_date,valid_upto FROM COMM_BY_VALUE where comm_table = ? ORDER BY eff_date asc " ;
//sql = "select line_no,eff_date,valid_upto FROM (select line_no,eff_date,valid_upto from comm_by_value where comm_table = ? union all select line_no,eff_date,valid_upto from comm_by_value where comm_table = ? ) ORDER BY eff_date asc";
System.out.println("sql :::::::::"+sql); System.out.println("sql :::::::::"+sql);
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,commTable); pstmt.setString(1,commTable);
...@@ -303,6 +311,8 @@ public class CommissiondetPos extends ValidatorEJB implements CommissiondetPosL ...@@ -303,6 +311,8 @@ public class CommissiondetPos extends ValidatorEJB implements CommissiondetPosL
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
}// changed by Nasruddin khan [19/JUL/16 D16DFOR001] END }// changed by Nasruddin khan [19/JUL/16 D16DFOR001] END
*/
} }
catch(Exception e) catch(Exception e)
{ {
......
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