Commit 9e7f7384 authored by cpandey's avatar cpandey

changes in cource code for indent no


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92820 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c36089bc
......@@ -133,7 +133,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
String itemCode = ""; String itemSer = ""; String unit = ""; String sql = ""; String sql1 = ""; String unitStd = ""; String unitRate = ""; String convRateStduom = ""; String packCode = ""; String remarks = ""; String amount = ""; String siteCode = ""; String indentNo = "";
String packInstr = ""; String specInstr = ""; String splInstr = ""; String hremarks = ""; String currCode = ""; String exchRate = ""; String projCode = ""; String hstatus = ""; String amountBc = ""; String suppCodePref = ""; String hunit = ""; String hamount = ""; String splInstrh = ""; String hsplInstr = "";
String hRate = ""; String tranId = ""; String hItemCode = ""; String htranType = ""; String hindentNo = ""; String hunitStd = ""; String hpackCode = ""; String hpackInstr = ""; String netAmountBc = ""; String hunitRate = ""; String hspecInstr = "",hsitecode = "",hitemSer = "",ditemCode = "",dItemCode = "",confirm = "", errString = "" ;
String loginSite = "",itemCodeI = "";
String loginSite = "",itemCodeI = "", boqId = "";
StringBuffer valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n");
PreparedStatement pstmt = null; PreparedStatement pstmt1 = null;
......@@ -143,6 +143,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
double quantity = 0.0D; double hquantity = 0.0D; double rate = 0.0D; double hrate = 0.0D; double quantityStduom = 0.0D; double convQtyStduom = 0.0D;
double hquantityStduom = 0.0D; double hconvQtyStduom = 0.0D; double hnetAmount = 0.0D; double hnetAmountBc = 0.0D; double hconvRateStduom = 0.0D; double hnoArt = 0.0D; double noArt = 0.0D; double rateStduom = 0.0D,hrateStduom = 0.0;
ConnDriver connDriver = new ConnDriver();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
GenericUtility genericUtility = GenericUtility.getInstance();
......@@ -152,8 +153,9 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
System.out.println("loginSite---->>>["+loginSite+"]------>>>>>");
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
itemCode = genericUtility.getColumnValue("item_code", dom);
indentNo = genericUtility.getColumnValue("ind_no", dom);
System.out.println("item code = " + itemCode+"indent no -->>"+indentNo);
boqId = genericUtility.getColumnValue("boq_id", dom1);
System.out.println("item code = " + itemCode+"indent no -->>"+indentNo+"boq id-->> "+boqId);
conn = connDriver.getConnectDB("DriverITM");
//changes for temp test
sql = "select confirmed from boqhdr where item_code = ?";
......@@ -198,12 +200,12 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
"(case when h.proj_code is null then ' ' else h.proj_code end) as proj_code , " +
// " '' as hindentno , " +
"(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 from boqdet d,boqhdr h where d.tran_id = h.tran_id and h.indent_no = ? and h.site_code = ?";
"(case when d.amount is null then 0 else d.amount end) as amount 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);
pstmt = conn.prepareStatement(sql);
//dItemCode
pstmt.setString(1,indentNo);
pstmt.setString(1,boqId);
//changes by cpandey according to new changes on purchase order on 04/01/13
pstmt.setString(2,loginSite);
//end of changes
......@@ -271,112 +273,113 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
rs = null;
pstmt.close();
pstmt = null;
sql1 = "select " +
"(case when h.item_code is null then ' ' else h.item_code end) as item_code ," +
"(case when h.quantity is null then 0 else h.quantity end) as quantity," +
"(case when h.item_ser is null then ' ' else h.item_ser end ) as item_ser ," +
"(case when h.site_code is null then ' ' else h.site_code end) as site_code," +
"(case when h.indent_no is null then ' ' else h.indent_no end ) as indent_no ," +
"(case when h.remarks is null then ' ' else h.remarks end) as remarks," +
"(case when h.curr_code is null then ' ' else h.curr_code end) as curr_code," +
"(case when h.exch_rate is null then 0 else h.exch_rate end) as exch_rate," +
"(case when h.proj_code is null then ' ' else h.proj_code end) as proj_code," +
"(case when h.status is null then ' ' else h.status end) as status," +
"(case when h.amount__bc is null then 0 else h.amount__bc end) as amount__bc," +
"(case when h.supp_code__pref is null then ' ' else h.supp_code__pref end) as supp_code__pref," +
"(case when h.unit is null then ' ' else h.unit end) as unit," +
"(case when h.amount is null then 0 else h.amount end) as amount, h.tran_date as tran_date, " +
"(case when h.tran_type is null then ' 'else h.tran_type end) as tran_type, " +
"(case when h.indent_no is null then ' ' else h.indent_no end) as indent_no, " +
"(case when h.quantity__stduom is null then 0 else h.quantity__stduom end) as quantity__stduom, " +
"(case when h.conv__qty_stduom is null then 0 else h.conv__qty_stduom end) as conv__qty_stduom, " +
"(case when h.unit__std is null then ' ' else h.unit__std end) as unit__std, " +
"(case when h.rate is null then 0 else h.rate end) as rate, " +
"(case when h.net_amount is null then 0 else h.net_amount end) as net_amount, " +
"(case when h.pack_code is null then ' ' else h.pack_code end) as pack_code, " +
"(case when h.pack_instr is null then ' ' else h.pack_instr end) as pack_instr, " +
"(case when h.spl_instr is null then ' ' else h.spl_instr end) as spl_instr, " +
"(case when h.net_amount__bc is null then 0 else h.net_amount__bc end) as net_amount__bc, " +
"(case when h.unit__rate is null then ' ' else h.unit__rate end) as unit__rate, " +
"(case when h.conv__rate_stduom is null then 0 else h.conv__rate_stduom end) as conv__rate_stduom," +
"(case when h.spec_instr is null then ' ' else h.spec_instr end) as spec_instr, " +
"(case when h.no_art is null then 0 else h.no_art end) as no_art," +
//added project code to set on purchase order
"(case when h.proj_code is null then ' ' else h.proj_code end) as proj_code , " +
"(case when h.rate__stduom is null then 0 else h.rate__stduom end) as rate__stduom from boqhdr h,item itm where itm.item_code = h.item_code and h.indent_no = ? and h.site_code = ?";
System.out.println("[Header Data for PorderActEJB] sql==>" + sql);
pstmt1 = conn.prepareStatement(sql1);
//
pstmt1.setString(1,indentNo);
//changes by cpandey according to new changes on purchase order on 04/01/13
pstmt1.setString(2,loginSite);
//end oc changes
rs = pstmt1.executeQuery();
while (rs.next())
{
hItemCode = rs.getString("item_code");
hitemSer = checkNull(rs.getString("item_ser"));
hquantity = rs.getDouble("quantity");
hremarks = checkNull(rs.getString("remarks"));
currCode = checkNull(rs.getString("curr_code"));
siteCode = checkNull(rs.getString("site_code"));
exchRate = checkNull(rs.getString("exch_rate"));
projCode = checkNull(rs.getString("proj_code"));
hstatus = checkNull(rs.getString("status"));
amountBc = checkNull(rs.getString("amount__bc"));
suppCodePref = checkNull(rs.getString("supp_code__pref"));
hunit = checkNull(rs.getString("unit"));
hamount = checkNull(rs.getString("amount"));
htranType = checkNull(rs.getString("tran_type"));
hindentNo = checkNull(rs.getString("indent_no"));
hquantityStduom = rs.getDouble("quantity__stduom");
hconvQtyStduom = rs.getDouble("conv__qty_stduom");
hunitStd = checkNull(rs.getString("unit__std"));
hrate = rs.getDouble("rate");
hnetAmount = rs.getDouble("net_amount");
hpackCode = checkNull(rs.getString("pack_code"));
hpackInstr = checkNull(rs.getString("pack_instr"));
hsplInstr = checkNull(rs.getString("spl_instr"));
hspecInstr = checkNull(rs.getString("spec_instr"));
hnoArt = rs.getDouble("no_art");
hnetAmountBc = rs.getDouble("net_amount__bc");
hunitRate = checkNull(rs.getString("unit__rate"));
hconvRateStduom = rs.getDouble("conv__rate_stduom");
projCode = checkNull(rs.getString("proj_code"));
hrateStduom = rs.getDouble("rate__stduom");
valueXmlString.append("<Detail>\r\n");
valueXmlString.append("<item_code>").append("<![CDATA[").append(hItemCode).append("]]>").append("</item_code>\r\n");
valueXmlString.append("<item_ser>").append("<![CDATA[").append(hitemSer).append("]]>").append("</item_ser>\r\n");
valueXmlString.append("<rate>").append("<![CDATA[").append(hrate).append("]]>").append("</rate>\r\n");
valueXmlString.append("<quantity>").append("<![CDATA[").append(hquantity).append("]]>").append("</quantity>\r\n");
valueXmlString.append("<unit>").append("<![CDATA[").append(hunit).append("]]>").append("</unit>\r\n");
valueXmlString.append("<amount>").append("<![CDATA[").append(hamount).append("]]>").append("</amount>\r\n");
valueXmlString.append("<no_art>").append("<![CDATA[").append(hnoArt).append("]]>").append("</no_art>\r\n");
valueXmlString.append("<pack_code>").append("<![CDATA[").append(hpackCode).append("]]>").append("</pack_code>\r\n");
valueXmlString.append("<pack_instr>").append("<![CDATA[").append(hpackInstr).append("]]>").append("</pack_instr>\r\n");
valueXmlString.append("<spec_instr>").append("<![CDATA[").append(hspecInstr).append("]]>").append("</spec_instr>\r\n");
valueXmlString.append("<spl_instr>").append("<![CDATA[").append(hsplInstr).append("]]>").append("</spl_instr>\r\n");
valueXmlString.append("<site_code>").append("<![CDATA[").append(siteCode).append("]]>").append("</site_code>\r\n");
valueXmlString.append("<unit__rate>").append("<![CDATA[").append(hunitRate).append("]]>").append("</unit__rate>\r\n");
valueXmlString.append("<conv__qty_stduom>").append("<![CDATA[").append(hconvQtyStduom).append("]]>").append("</conv__qty_stduom>\r\n");
valueXmlString.append("<conv__rate_stduom>").append("<![CDATA[").append(hconvRateStduom).append("]]>").append("</conv__rate_stduom>\r\n");
valueXmlString.append("<unit__std>").append("<![CDATA[").append(hunitStd).append("]]>").append("</unit__std>\r\n");
valueXmlString.append("<quantity__stduom>").append("<![CDATA[").append(hquantityStduom).append("]]>").append("</quantity__stduom>\r\n");
valueXmlString.append("<rate__stduom>").append("<![CDATA[").append(hrateStduom).append("]]>").append("</rate__stduom>\r\n");
System.out.println("remove comment from according to item change -----06/02/2013----->>>>>>>. ");
System.out.println("item code from indent ["+itemCodeI+"]and item code from bill of .["+dItemCode+"] ");
valueXmlString.append("<ind_no>").append("<![CDATA[").append(hindentNo).append("]]>").append("</ind_no>\r\n");
//added project code to set on purchase order
valueXmlString.append("<proj_code>").append("<![CDATA[").append(projCode).append("]]>").append("</proj_code>\r\n");
valueXmlString.append("<remarks>").append("<![CDATA[").append(remarks).append("]]>").append("</remarks>\r\n");
valueXmlString.append("</Detail>\r\n");
}
rs.close();
rs = null;
pstmt1.close();
pstmt1 = null;
// sql1 = "select " +
// "(case when h.item_code is null then ' ' else h.item_code end) as item_code ," +
// "(case when h.quantity is null then 0 else h.quantity end) as quantity," +
// "(case when h.item_ser is null then ' ' else h.item_ser end ) as item_ser ," +
// "(case when h.site_code is null then ' ' else h.site_code end) as site_code," +
// "(case when h.indent_no is null then ' ' else h.indent_no end ) as indent_no ," +
// "(case when h.remarks is null then ' ' else h.remarks end) as remarks," +
// "(case when h.curr_code is null then ' ' else h.curr_code end) as curr_code," +
// "(case when h.exch_rate is null then 0 else h.exch_rate end) as exch_rate," +
// "(case when h.proj_code is null then ' ' else h.proj_code end) as proj_code," +
// "(case when h.status is null then ' ' else h.status end) as status," +
// "(case when h.amount__bc is null then 0 else h.amount__bc end) as amount__bc," +
// "(case when h.supp_code__pref is null then ' ' else h.supp_code__pref end) as supp_code__pref," +
// "(case when h.unit is null then ' ' else h.unit end) as unit," +
// "(case when h.amount is null then 0 else h.amount end) as amount, h.tran_date as tran_date, " +
// "(case when h.tran_type is null then ' 'else h.tran_type end) as tran_type, " +
// //"(case when h.indent_no is null then ' ' else h.indent_no end) as indent_no, " +
// "(case when h.quantity__stduom is null then 0 else h.quantity__stduom end) as quantity__stduom, " +
// "(case when h.conv__qty_stduom is null then 0 else h.conv__qty_stduom end) as conv__qty_stduom, " +
// "(case when h.unit__std is null then ' ' else h.unit__std end) as unit__std, " +
// "(case when h.rate is null then 0 else h.rate end) as rate, " +
// "(case when h.net_amount is null then 0 else h.net_amount end) as net_amount, " +
// "(case when h.pack_code is null then ' ' else h.pack_code end) as pack_code, " +
// "(case when h.pack_instr is null then ' ' else h.pack_instr end) as pack_instr, " +
// "(case when h.spl_instr is null then ' ' else h.spl_instr end) as spl_instr, " +
// "(case when h.net_amount__bc is null then 0 else h.net_amount__bc end) as net_amount__bc, " +
// "(case when h.unit__rate is null then ' ' else h.unit__rate end) as unit__rate, " +
// "(case when h.conv__rate_stduom is null then 0 else h.conv__rate_stduom end) as conv__rate_stduom," +
// "(case when h.spec_instr is null then ' ' else h.spec_instr end) as spec_instr, " +
// "(case when h.no_art is null then 0 else h.no_art end) as no_art," +
// //added project code to set on purchase order
// "(case when h.proj_code is null then ' ' else h.proj_code end) as proj_code , " +
// "(case when h.rate__stduom is null then 0 else h.rate__stduom end) as rate__stduom from boqhdr h,item itm where itm.item_code = h.item_code and h.indent_no = ? and h.site_code = ?";
//
// System.out.println("[Header Data for PorderActEJB] sql==>" + sql);
// pstmt1 = conn.prepareStatement(sql1);
// //
// pstmt1.setString(1,indentNo);
// //changes by cpandey according to new changes on purchase order on 04/01/13
// pstmt1.setString(2,loginSite);
// //end oc changes
// rs = pstmt1.executeQuery();
// while (rs.next())
// {
// hItemCode = rs.getString("item_code");
// hitemSer = checkNull(rs.getString("item_ser"));
// hquantity = rs.getDouble("quantity");
// hremarks = checkNull(rs.getString("remarks"));
// currCode = checkNull(rs.getString("curr_code"));
// siteCode = checkNull(rs.getString("site_code"));
// exchRate = checkNull(rs.getString("exch_rate"));
// projCode = checkNull(rs.getString("proj_code"));
// hstatus = checkNull(rs.getString("status"));
// amountBc = checkNull(rs.getString("amount__bc"));
// suppCodePref = checkNull(rs.getString("supp_code__pref"));
// hunit = checkNull(rs.getString("unit"));
// hamount = checkNull(rs.getString("amount"));
// htranType = checkNull(rs.getString("tran_type"));
// //hindentNo = checkNull(rs.getString("indent_no"));
// hquantityStduom = rs.getDouble("quantity__stduom");
// hconvQtyStduom = rs.getDouble("conv__qty_stduom");
// hunitStd = checkNull(rs.getString("unit__std"));
// hrate = rs.getDouble("rate");
// hnetAmount = rs.getDouble("net_amount");
// hpackCode = checkNull(rs.getString("pack_code"));
// hpackInstr = checkNull(rs.getString("pack_instr"));
// hsplInstr = checkNull(rs.getString("spl_instr"));
// hspecInstr = checkNull(rs.getString("spec_instr"));
// hnoArt = rs.getDouble("no_art");
// hnetAmountBc = rs.getDouble("net_amount__bc");
// hunitRate = checkNull(rs.getString("unit__rate"));
// hconvRateStduom = rs.getDouble("conv__rate_stduom");
// projCode = checkNull(rs.getString("proj_code"));
// hrateStduom = rs.getDouble("rate__stduom");
//
// valueXmlString.append("<Detail>\r\n");
// valueXmlString.append("<item_code>").append("<![CDATA[").append(hItemCode).append("]]>").append("</item_code>\r\n");
// valueXmlString.append("<item_ser>").append("<![CDATA[").append(hitemSer).append("]]>").append("</item_ser>\r\n");
// valueXmlString.append("<rate>").append("<![CDATA[").append(hrate).append("]]>").append("</rate>\r\n");
// valueXmlString.append("<quantity>").append("<![CDATA[").append(hquantity).append("]]>").append("</quantity>\r\n");
// valueXmlString.append("<unit>").append("<![CDATA[").append(hunit).append("]]>").append("</unit>\r\n");
// valueXmlString.append("<amount>").append("<![CDATA[").append(hamount).append("]]>").append("</amount>\r\n");
// valueXmlString.append("<no_art>").append("<![CDATA[").append(hnoArt).append("]]>").append("</no_art>\r\n");
// valueXmlString.append("<pack_code>").append("<![CDATA[").append(hpackCode).append("]]>").append("</pack_code>\r\n");
// valueXmlString.append("<pack_instr>").append("<![CDATA[").append(hpackInstr).append("]]>").append("</pack_instr>\r\n");
// valueXmlString.append("<spec_instr>").append("<![CDATA[").append(hspecInstr).append("]]>").append("</spec_instr>\r\n");
// valueXmlString.append("<spl_instr>").append("<![CDATA[").append(hsplInstr).append("]]>").append("</spl_instr>\r\n");
// valueXmlString.append("<site_code>").append("<![CDATA[").append(siteCode).append("]]>").append("</site_code>\r\n");
// valueXmlString.append("<unit__rate>").append("<![CDATA[").append(hunitRate).append("]]>").append("</unit__rate>\r\n");
// valueXmlString.append("<conv__qty_stduom>").append("<![CDATA[").append(hconvQtyStduom).append("]]>").append("</conv__qty_stduom>\r\n");
// valueXmlString.append("<conv__rate_stduom>").append("<![CDATA[").append(hconvRateStduom).append("]]>").append("</conv__rate_stduom>\r\n");
// valueXmlString.append("<unit__std>").append("<![CDATA[").append(hunitStd).append("]]>").append("</unit__std>\r\n");
// valueXmlString.append("<quantity__stduom>").append("<![CDATA[").append(hquantityStduom).append("]]>").append("</quantity__stduom>\r\n");
// valueXmlString.append("<rate__stduom>").append("<![CDATA[").append(hrateStduom).append("]]>").append("</rate__stduom>\r\n");
// System.out.println("remove comment from according to item change -----06/02/2013----->>>>>>>. ");
// System.out.println("item code from indent ["+itemCodeI+"]and item code from bill of .["+dItemCode+"] ");
// //valueXmlString.append("<ind_no>").append("<![CDATA[").append(hindentNo).append("]]>").append("</ind_no>\r\n");
// //added project code to set on purchase order
// valueXmlString.append("<proj_code>").append("<![CDATA[").append(projCode).append("]]>").append("</proj_code>\r\n");
// valueXmlString.append("<remarks>").append("<![CDATA[").append(remarks).append("]]>").append("</remarks>\r\n");
// valueXmlString.append("</Detail>\r\n");
// }
// rs.close();
// rs = null;
// pstmt1.close();
// pstmt1 = null;
valueXmlString.append("</Root>\r\n");
}
else
......@@ -432,33 +435,34 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
{
for (int ctr = 0; ctr < noOfDetails; ctr++)
{
//isSrvCallOnChg='0'
valueXmlString.append("<Detail>");
currDetail1 = detailList.item(ctr);
valueXmlString.append("<item_ser isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("item_ser", currDetail1)).append("]]>").append("</item_ser>\r\n");
valueXmlString.append("<item_code isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("item_code", currDetail1)).append("]]>").append("</item_code>\r\n");
valueXmlString.append("<quantity isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("quantity", currDetail1)).append("]]>").append("</quantity>\r\n");
valueXmlString.append("<unit isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("unit", currDetail1)).append("]]>").append("</unit>\r\n");
valueXmlString.append("<rate isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("rate", currDetail1)).append("]]>").append("</rate>\r\n");
valueXmlString.append("<amount isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("amount", currDetail1)).append("]]>").append("</amount>\r\n");
valueXmlString.append("<no_art isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("no_art", currDetail1)).append("]]>").append("</no_art>\r\n");
valueXmlString.append("<pack_code isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("pack_code", currDetail1)).append("]]>").append("</pack_code>\r\n");
valueXmlString.append("<pack_instr isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("pack_instr", currDetail1)).append("]]>").append("</pack_instr>\r\n");
valueXmlString.append("<spec_instr isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("spec_instr", currDetail1)).append("]]>").append("</spec_instr>\r\n");
valueXmlString.append("<spl_instr isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("spl_instr", currDetail1)).append("]]>").append("</spl_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("<unit__rate isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("unit__rate", currDetail1)).append("]]>").append("</unit__rate>\r\n");
valueXmlString.append("<item_ser>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("item_ser", currDetail1)).append("]]>").append("</item_ser>\r\n");
valueXmlString.append("<item_code>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("item_code", currDetail1)).append("]]>").append("</item_code>\r\n");
valueXmlString.append("<quantity>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("quantity", currDetail1)).append("]]>").append("</quantity>\r\n");
valueXmlString.append("<unit>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("unit", currDetail1)).append("]]>").append("</unit>\r\n");
valueXmlString.append("<rate>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("rate", currDetail1)).append("]]>").append("</rate>\r\n");
valueXmlString.append("<amount>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("amount", currDetail1)).append("]]>").append("</amount>\r\n");
valueXmlString.append("<no_art>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("no_art", currDetail1)).append("]]>").append("</no_art>\r\n");
valueXmlString.append("<pack_code>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("pack_code", currDetail1)).append("]]>").append("</pack_code>\r\n");
valueXmlString.append("<pack_instr>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("pack_instr", currDetail1)).append("]]>").append("</pack_instr>\r\n");
valueXmlString.append("<spec_instr>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("spec_instr", currDetail1)).append("]]>").append("</spec_instr>\r\n");
valueXmlString.append("<spl_instr>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("spl_instr", currDetail1)).append("]]>").append("</spl_instr>\r\n");
valueXmlString.append("<site_code>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("site_code", currDetail1)).append("]]>").append("</site_code>\r\n");
valueXmlString.append("<unit__rate>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("unit__rate", currDetail1)).append("]]>").append("</unit__rate>\r\n");
//commented according to manoj sir on 27/02/13
valueXmlString.append("<ind_no isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("ind_no", currDetail1).trim()).append("]]>").append("</ind_no>\r\n");
valueXmlString.append("<remarks isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("remarks", currDetail1)).append("]]>").append("</remarks>\r\n");
valueXmlString.append("<unit__std isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("unit__std", currDetail1)).append("]]>").append("</unit__std>\r\n");
valueXmlString.append("<unit__std isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("unit__std", currDetail1)).append("]]>").append("</unit__std>\r\n");
valueXmlString.append("<conv__qty_stduom isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("conv__qty_stduom", currDetail1)).append("]]>").append("</conv__qty_stduom>\r\n");
valueXmlString.append("<conv__rtuom_stduom isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("conv__rate_stduom", currDetail1)).append("]]>").append("</conv__rtuom_stduom>\r\n");
valueXmlString.append("<quantity__stduom isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("quantity__stduom", currDetail1)).append("]]>").append("</quantity__stduom>\r\n");
//valueXmlString.append("<ind_no>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("ind_no", currDetail1).trim()).append("]]>").append("</ind_no>\r\n");
valueXmlString.append("<remarks>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("remarks", currDetail1)).append("]]>").append("</remarks>\r\n");
valueXmlString.append("<unit__std>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("unit__std", currDetail1)).append("]]>").append("</unit__std>\r\n");
valueXmlString.append("<unit__std>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("unit__std", currDetail1)).append("]]>").append("</unit__std>\r\n");
valueXmlString.append("<conv__qty_stduom >").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("conv__qty_stduom", currDetail1)).append("]]>").append("</conv__qty_stduom>\r\n");
valueXmlString.append("<conv__rtuom_stduom >").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("conv__rate_stduom", currDetail1)).append("]]>").append("</conv__rtuom_stduom>\r\n");
valueXmlString.append("<quantity__stduom >").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("quantity__stduom", currDetail1)).append("]]>").append("</quantity__stduom>\r\n");
//added project code for item change on purchase order
valueXmlString.append("<proj_code isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("proj_code", currDetail1)).append("]]>").append("</proj_code>\r\n");
valueXmlString.append("<rate__stduom isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("rate__stduom", currDetail1)).append("]]>").append("</rate__stduom>\r\n");
valueXmlString.append("<proj_code>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("proj_code", currDetail1)).append("]]>").append("</proj_code>\r\n");
valueXmlString.append("<rate__stduom>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("rate__stduom", currDetail1)).append("]]>").append("</rate__stduom>\r\n");
valueXmlString.append("</Detail>");
}
}//rate__stduom
......
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