Commit 0f00b2e5 authored by pshinde's avatar pshinde

Added itemchanged of tran_id__hold and changes in line_no__hold itemchanged


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95958 ce508802-f39f-4f6c-b175-0d175dae99d5
parent df7feb4c
...@@ -512,6 +512,7 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In ...@@ -512,6 +512,7 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In
String lotNo=null; String lotNo=null;
String lotSl=null; String lotSl=null;
int lineNoSl=0; int lineNoSl=0;
String lockCode="";// added by priyanka on 19/08/14
String loginSite = null; String loginSite = null;
...@@ -650,7 +651,26 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In ...@@ -650,7 +651,26 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In
ctr++; ctr++;
}while(ctr < childNodeListLength && !childNodeName.equals(currentColumn)); }while(ctr < childNodeListLength && !childNodeName.equals(currentColumn));
System.out.println("[" + currentColumn + "] ==> '" + columnValue + "'"); System.out.println("[" + currentColumn + "] ==> '" + columnValue + "'");
if (currentColumn.equals("line_no__hold"))
//added by priyanka as per manoj sharma instruction on 19/08/14
// on itemchanged of tran_id__hold,values of all field should get blank
if (currentColumn.equals("tran_id__hold"))
{
System.out.println("tran_id__hold itemChanged *************");
tran_id_hold=checkNull(genericUtility.getColumnValue("tran_id__hold", dom));
System.out.println("tran_id_hold :"+tran_id_hold);
valueXmlString.append("<line_no__hold>").append("").append("</line_no__hold>");
valueXmlString.append("<item_code>").append("").append("</item_code>");
valueXmlString.append("<item_descr>").append("").append("</item_descr>");
valueXmlString.append("<loc_code>").append("<![CDATA[" +"" + "]]>").append("</loc_code>");
valueXmlString.append("<descr>").append("").append("</descr>");
valueXmlString.append("<lot_no>").append("").append("</lot_no>");
valueXmlString.append("<lot_sl>").append("").append("</lot_sl>");
valueXmlString.append("<line_no_sl>").append("").append("</line_no_sl>");
valueXmlString.append("<lock_code>").append("").append("</lock_code>");
}
else if (currentColumn.equals("line_no__hold"))
{ {
System.out.println("entering in line_no__hold !!!"); System.out.println("entering in line_no__hold !!!");
line_no_hold=Integer.parseInt(genericUtility.getColumnValue("line_no__hold", dom)); line_no_hold=Integer.parseInt(genericUtility.getColumnValue("line_no__hold", dom));
...@@ -722,7 +742,22 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In ...@@ -722,7 +742,22 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In
vPStmt.close(); vPStmt.close();
vPStmt = null; vPStmt = null;
//added by priyanka as per manoj sharma instruction on 19/08/14
//on itemchanged of line_no__hold value of lock_code should get set from hold inventory
sql="select lock_code from inv_hold where tran_id=?";
vPStmt = conn.prepareStatement( sql );
vPStmt.setString(1,tran_id_hold);
vRs = vPStmt.executeQuery();
if( vRs.next() )
{
lockCode = vRs.getString("lock_code");
}
vRs.close();
vRs = null;
vPStmt.close();
vPStmt = null;
System.out.println("lockCode "+lockCode);
valueXmlString.append("<item_code>").append("<![CDATA[" + itemCode + "]]>").append("</item_code>"); valueXmlString.append("<item_code>").append("<![CDATA[" + itemCode + "]]>").append("</item_code>");
valueXmlString.append("<item_descr>").append("<![CDATA[" + itemDescr + "]]>").append("</item_descr>"); valueXmlString.append("<item_descr>").append("<![CDATA[" + itemDescr + "]]>").append("</item_descr>");
...@@ -731,9 +766,10 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In ...@@ -731,9 +766,10 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In
valueXmlString.append("<lot_no>").append("<![CDATA[" + lotNo + "]]>").append("</lot_no>"); valueXmlString.append("<lot_no>").append("<![CDATA[" + lotNo + "]]>").append("</lot_no>");
valueXmlString.append("<lot_sl>").append("<![CDATA[" + lotNo + "]]>").append("</lot_sl>"); valueXmlString.append("<lot_sl>").append("<![CDATA[" + lotNo + "]]>").append("</lot_sl>");
valueXmlString.append("<line_no_sl>").append("<![CDATA[" + lineNoSl + "]]>").append("</line_no_sl>"); valueXmlString.append("<line_no_sl>").append("<![CDATA[" + lineNoSl + "]]>").append("</line_no_sl>");
valueXmlString.append("<lock_code>").append("<![CDATA[" + lockCode + "]]>").append("</lock_code>");
} }
valueXmlString.append("</Detail2>"); valueXmlString.append("</Detail2>");
break; break;
......
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