Commit f22e2af5 authored by jshinde's avatar jshinde

Request W15GSUN001,Create transaction screen Pallet Request .


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98872 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 80c17b73
...@@ -250,7 +250,7 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle ...@@ -250,7 +250,7 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle
{ {
palletNo = childNode.getFirstChild().getNodeValue(); palletNo = childNode.getFirstChild().getNodeValue();
} }
if("A".equalsIgnoreCase(editFlag)) if("A".equalsIgnoreCase(editFlag) || "E".equalsIgnoreCase(editFlag))
{ {
if(palletNo.length() == 0 || palletNo.equalsIgnoreCase("")) if(palletNo.length() == 0 || palletNo.equalsIgnoreCase(""))
{ {
...@@ -301,7 +301,7 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle ...@@ -301,7 +301,7 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle
pstmt.close(); pstmt.close();
} }
} }
else if("E".equalsIgnoreCase(editFlag)) if("E".equalsIgnoreCase(editFlag))
{ {
String tranId = checkNullAndTrim(genericUtility.getColumnValue("tran_id",dom)); String tranId = checkNullAndTrim(genericUtility.getColumnValue("tran_id",dom));
...@@ -317,17 +317,8 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle ...@@ -317,17 +317,8 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle
palletList.add(checkNullAndTrim(rs.getString(1))); palletList.add(checkNullAndTrim(rs.getString(1)));
} }
System.out.println("palletarray for edit"+palletList); System.out.println("palletarray for edit"+palletList);
if(palletNo.length() == 0 || palletNo.equalsIgnoreCase(""))
{ if(palletList.contains(palletNo))
errCode = "VMPALLENUL";//pallet no cannot be blank
errList.add( errCode );
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
errFields.add( childNodeName.toLowerCase() );
}
else if(palletList.contains(palletNo))
{ {
errCode = "VMPALLETSM";//pallet no same errCode = "VMPALLETSM";//pallet no same
errList.add( errCode ); errList.add( errCode );
......
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