Commit 1447cab9 authored by kmandhre's avatar kmandhre

set dimension,pallet wt.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92627 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d8ab8b5f
...@@ -2028,6 +2028,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D ...@@ -2028,6 +2028,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
Timestamp retestDate = null ,mfgDate = null, expDate = null; Timestamp retestDate = null ,mfgDate = null, expDate = null;
double quantity = 0, grossWeight = 0, tareWeight = 0, netWeight = 0, conv = 0, qtyStd = 0; double quantity = 0, grossWeight = 0, tareWeight = 0, netWeight = 0, conv = 0, qtyStd = 0;
double detQty = 0, noArt = 0; double detQty = 0, noArt = 0;
double palletWt = 0 ;//added by kunal on 1/02/13
NodeList detailList = null; NodeList detailList = null;
Node currDetail = null; Node currDetail = null;
int detailListLength = 0; int detailListLength = 0;
...@@ -2322,7 +2323,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D ...@@ -2322,7 +2323,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
// Change 07-09-10 // Change 07-09-10
sql =" select retest_date , mfg_date , exp_date from stock where item_code = ? and " sql =" select retest_date , mfg_date , exp_date ,dimension,pallet_wt from stock where item_code = ? and "
+" site_code = ? and loc_code = ? and " +" site_code = ? and loc_code = ? and "
+"lot_no = ? and lot_sl = ? "; +"lot_no = ? and lot_sl = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -2337,6 +2338,10 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D ...@@ -2337,6 +2338,10 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
retestDate = rs1.getTimestamp(1); retestDate = rs1.getTimestamp(1);
mfgDate = rs1.getTimestamp(2); mfgDate = rs1.getTimestamp(2);
expDate = rs1.getTimestamp(3); expDate = rs1.getTimestamp(3);
dimension = rs1.getString(4) == null?" ":rs1.getString(4);
palletWt = rs1.getDouble(5);
} }
rs1.close(); rs1.close();
...@@ -2344,6 +2349,8 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D ...@@ -2344,6 +2349,8 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("dimension=="+dimension+" palletWt="+palletWt);
if(retestDate !=null) if(retestDate !=null)
{ {
sRetestDate = sdf.format(retestDate).toString(); sRetestDate = sdf.format(retestDate).toString();
...@@ -2381,6 +2388,9 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D ...@@ -2381,6 +2388,9 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
setNodeValue( dom, "exp_date", sExpDate); setNodeValue( dom, "exp_date", sExpDate);
} }
// end change 07-09-10 // end change 07-09-10
//added by kunal on 1/02/13 set Dimention , Pallet Weight .
valueXmlString.append("<dimension isSrvCallOnChg='0'>").append("<![CDATA[").append(dimension).append("]]>").append("</dimension>\r\n");
valueXmlString.append("<pallet_wt isSrvCallOnChg='0'>").append("<![CDATA[").append(palletWt).append("]]>").append("</pallet_wt>\r\n");
valueXmlString.append("</Detail>\r\n"); valueXmlString.append("</Detail>\r\n");
} }
......
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