Commit a183ec7f authored by cpatil's avatar cpatil

set site code dlv instead of site code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93659 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 336cb077
...@@ -149,7 +149,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -149,7 +149,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
String contractNo = ""; String contractNo = "";
String priceList = "",acctCode = "",cctrCode = ""; String priceList = "",acctCode = "",cctrCode = "";
java.util.Date reqDate = null , dlvDate = null; java.util.Date reqDate = null , dlvDate = null;
String siteCodeDlv="";
StringBuffer XmlString = new StringBuffer(); StringBuffer XmlString = new StringBuffer();
StringBuffer valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n"); StringBuffer valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n");
PreparedStatement pstmt = null; PreparedStatement pstmt1 = null; PreparedStatement pstmt = null; PreparedStatement pstmt1 = null;
...@@ -172,6 +172,8 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -172,6 +172,8 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
boqId = genericUtility.getColumnValue("tran_id__boq", dom1); boqId = genericUtility.getColumnValue("tran_id__boq", dom1);
contractNo = genericUtility.getColumnValue("contract_no", dom1); contractNo = genericUtility.getColumnValue("contract_no", dom1);
siteCodeDlv = genericUtility.getColumnValue("site_code__dlv", dom); // SITE_CODE__DLV
System.out.println("@@@@@@@@@siteCodeDlv["+siteCodeDlv+"]");
System.out.println("item code = " + itemCode+"indent no -->>"+indentNo+"boq id-->> "+boqId+" contractNo-->>"+contractNo); System.out.println("item code = " + itemCode+"indent no -->>"+indentNo+"boq id-->> "+boqId+" contractNo-->>"+contractNo);
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
//changes for temp test //changes for temp test
...@@ -223,7 +225,8 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -223,7 +225,8 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
"(case when h.proj_code is null then ' ' else h.proj_code end) as proj_code , " + "(case when h.proj_code is null then ' ' else h.proj_code end) as proj_code , " +
// " '' as hindentno , " + // " '' as hindentno , " +
"(case when d.rate__stduom is null then 0 else d.rate__stduom end) as rate__stduom," + "(case when d.rate__stduom is null then 0 else d.rate__stduom end) as rate__stduom," +
"(case when d.amount is null then 0 else d.amount end) as amount ,d.dlv_date, d.acct_code__dr ,d.cctr_code__dr from boqdet d,boqhdr h where d.tran_id = h.tran_id and h.tran_id = ? and h.site_code = ?"; "(case when d.amount is null then 0 else d.amount end) as amount ,d.dlv_date, d.acct_code__dr ,d.cctr_code__dr " +
"from boqdet d,boqhdr h where d.tran_id = h.tran_id and h.tran_id = ? and h.site_code = ?";
System.out.println("Detail data sql [PorderActEJB] sql==>" + sql); System.out.println("Detail data sql [PorderActEJB] sql==>" + sql);
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -264,7 +267,8 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -264,7 +267,8 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
amount = checkNull(rs.getString("amount")); amount = checkNull(rs.getString("amount"));
hItemCode = checkNull(rs.getString("hitemcode"));// hItemCode = checkNull(rs.getString("hitemcode"));//
System.out.println("hItemCode-->>["+hItemCode+"]"); System.out.println("hItemCode-->>["+hItemCode+"]");
siteCode = checkNull(rs.getString("hsitecode")); siteCode = siteCodeDlv;
// siteCode = checkNull(rs.getString("hsitecode")); // commented by cpatil 24-09-13
System.out.println("siteCode-->>["+siteCode+"]"); System.out.println("siteCode-->>["+siteCode+"]");
//hindentNo = checkNull(rs.getString("hindentno")); //hindentNo = checkNull(rs.getString("hindentno"));
//System.out.println("indentNo-->>["+indentNo+"]"); //System.out.println("indentNo-->>["+indentNo+"]");
...@@ -1301,6 +1305,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -1301,6 +1305,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
valueXmlString.append("<pack_instr isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("pack_instr", currDetail1)).append("]]>").append("</pack_instr>\r\n"); valueXmlString.append("<pack_instr isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("pack_instr", currDetail1)).append("]]>").append("</pack_instr>\r\n");
valueXmlString.append("<specific_instr isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("specific_instr", currDetail1)).append("]]>").append("</specific_instr>\r\n"); valueXmlString.append("<specific_instr isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("specific_instr", currDetail1)).append("]]>").append("</specific_instr>\r\n");
valueXmlString.append("<special_instr isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("special_instr", currDetail1)).append("]]>").append("</special_instr>\r\n"); valueXmlString.append("<special_instr isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("special_instr", currDetail1)).append("]]>").append("</special_instr>\r\n");
valueXmlString.append("<site_code isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("site_code", currDetail1)).append("]]>").append("</site_code>\r\n"); valueXmlString.append("<site_code isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("site_code", currDetail1)).append("]]>").append("</site_code>\r\n");
valueXmlString.append("<unit__rate isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("unit__rate", currDetail1)).append("]]>").append("</unit__rate>\r\n"); valueXmlString.append("<unit__rate isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("unit__rate", currDetail1)).append("]]>").append("</unit__rate>\r\n");
//commented according to manoj sir on 27/02/13 //commented according to manoj sir on 27/02/13
......
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