Commit f131a5bf authored by cpatil's avatar cpatil

modify for exception


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92833 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 452b9094
...@@ -63,7 +63,8 @@ implements ItemAcctAnalysisICLocal, ItemAcctAnalysisICRemote ...@@ -63,7 +63,8 @@ implements ItemAcctAnalysisICLocal, ItemAcctAnalysisICRemote
return errString; return errString;
} }
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException { public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException
{
NodeList parentNodeList = null; NodeList parentNodeList = null;
NodeList childNodeList = null; NodeList childNodeList = null;
Node parentNode = null; Node parentNode = null;
...@@ -176,6 +177,16 @@ implements ItemAcctAnalysisICLocal, ItemAcctAnalysisICRemote ...@@ -176,6 +177,16 @@ implements ItemAcctAnalysisICLocal, ItemAcctAnalysisICRemote
// } // }
// } // }
// added by cpatil on 13/03/13 start
if ( !( tranType.equalsIgnoreCase(" ") || tranType.trim().length() > 0 ) )
{
errCode = "VMNTRTYPE";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
// added by cpatil on 13/03/13 end
/* commented by cpatil on 13/03/13 start
{ {
if(tranType==null) if(tranType==null)
{ {
...@@ -185,6 +196,7 @@ implements ItemAcctAnalysisICLocal, ItemAcctAnalysisICRemote ...@@ -185,6 +196,7 @@ implements ItemAcctAnalysisICLocal, ItemAcctAnalysisICRemote
} }
} }
*/
} }
else if (childNodeName.equalsIgnoreCase("item_code")) else if (childNodeName.equalsIgnoreCase("item_code"))
...@@ -192,12 +204,23 @@ implements ItemAcctAnalysisICLocal, ItemAcctAnalysisICRemote ...@@ -192,12 +204,23 @@ implements ItemAcctAnalysisICLocal, ItemAcctAnalysisICRemote
itemCode=checkNull(this.genericUtility.getColumnValue("item_code", dom)); itemCode=checkNull(this.genericUtility.getColumnValue("item_code", dom));
System.out.println("Tran id from current application ----["+tranId+"]-->>"); System.out.println("Tran id from current application ----["+tranId+"]-->>");
System.out.println("Detail item code --on header part--> ["+ditemCode+"] and detail item code---on header part--> ["+itemCode+"]"); System.out.println("Detail item code --on header part--> ["+ditemCode+"] and detail item code---on header part--> ["+itemCode+"]");
// commented by cpatil on 13/03/13
/*
if(itemCode == null) if(itemCode == null)
{ {
errCode = "VMITEMBLK"; errCode = "VMITEMBLK";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
*/
// added by cpatil start
if ( !( itemCode.equalsIgnoreCase(" ") || itemCode.trim().length() > 0 ) )
{
errCode = "VMITEMBLK";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
// added by cpatil end
else else
{ {
if( (itemCode != null && itemCode.trim().length() > 0 )) if( (itemCode != null && itemCode.trim().length() > 0 ))
...@@ -460,7 +483,11 @@ implements ItemAcctAnalysisICLocal, ItemAcctAnalysisICRemote ...@@ -460,7 +483,11 @@ implements ItemAcctAnalysisICLocal, ItemAcctAnalysisICRemote
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
else
{
valueXmlString.append("<descr>").append("<![CDATA[ ]]>").append("</descr>");
}
} }
valueXmlString.append("</Detail1>"); valueXmlString.append("</Detail1>");
......
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