Commit 612ba8ac authored by psawant's avatar psawant

In edit mode when we delete previously added row and add that row again then...

In edit mode when we delete previously added row and add that row again then system is display error as 'Transaction already exists'.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@190879 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bd9c8f12
...@@ -116,6 +116,8 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun ...@@ -116,6 +116,8 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
System.out.println("currentFormNo:::" + currentFormNo); System.out.println("currentFormNo:::" + currentFormNo);
// Changed by Pooja S. on 13-AUG-18 START // Changed by Pooja S. on 13-AUG-18 START
System.out.println("formName:::" + formName); System.out.println("formName:::" + formName);
String domID = "";
String currDomID = "";
// switch(currentFormName) // switch(currentFormName)
// { // {
if (currentFormNo == 1 || "accounts".equals(formName)) if (currentFormNo == 1 || "accounts".equals(formName))
...@@ -320,7 +322,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun ...@@ -320,7 +322,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
{ {
parentNodeList = dom.getElementsByTagName("Detail" + currentFormNo); parentNodeList = dom.getElementsByTagName("Detail" + currentFormNo);
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
domID1 = parentNode.getAttributes().getNamedItem("domID").getNodeValue(); currDomID = parentNode.getAttributes().getNamedItem("domID").getNodeValue();
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
childNodeLength = childNodeList.getLength(); childNodeLength = childNodeList.getLength();
for (ctr = 0; ctr < childNodeLength; ctr++) for (ctr = 0; ctr < childNodeLength; ctr++)
...@@ -395,7 +397,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun ...@@ -395,7 +397,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
domID = parentNode2.getAttributes().getNamedItem("domID").getNodeValue(); domID = parentNode2.getAttributes().getNamedItem("domID").getNodeValue();
NodeList childNodeList2 = parentNode2.getChildNodes(); NodeList childNodeList2 = parentNode2.getChildNodes();
childNodeListLength2 = childNodeList2.getLength(); childNodeListLength2 = childNodeList2.getLength();
if(domID.equals(domID1)) if(domID.equals(currDomID))
{ {
System.out.println("Dom ides are equals"); System.out.println("Dom ides are equals");
continue; continue;
...@@ -431,13 +433,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun ...@@ -431,13 +433,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
break; break;
} }
else System.out.println("ArrayList contaions in of loop"+sitecodeall);
{
sitecodeall.add(siteCode);
}
}
}
}
} }
} }
} }
...@@ -446,7 +442,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun ...@@ -446,7 +442,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
{ {
parentNodeList = dom.getElementsByTagName("Detail" + currentFormNo); parentNodeList = dom.getElementsByTagName("Detail" + currentFormNo);
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
domID1 = parentNode.getAttributes().getNamedItem("domID").getNodeValue(); currDomID = parentNode.getAttributes().getNamedItem("domID").getNodeValue();
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
childNodeLength = childNodeList.getLength(); childNodeLength = childNodeList.getLength();
for (ctr = 0; ctr < childNodeLength; ctr++) for (ctr = 0; ctr < childNodeLength; ctr++)
...@@ -521,7 +517,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun ...@@ -521,7 +517,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
domID = parentNode3.getAttributes().getNamedItem("domID").getNodeValue(); domID = parentNode3.getAttributes().getNamedItem("domID").getNodeValue();
NodeList childNodeList2 = parentNode3.getChildNodes(); NodeList childNodeList2 = parentNode3.getChildNodes();
childNodeListLength3 = childNodeList2.getLength(); childNodeListLength3 = childNodeList2.getLength();
if(domID.equals(domID1)) if(domID.equals(currDomID))
{ {
System.out.println("Dom ides are equals"); System.out.println("Dom ides are equals");
continue; continue;
...@@ -566,7 +562,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun ...@@ -566,7 +562,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
{ {
parentNodeList = dom.getElementsByTagName("Detail" + currentFormNo); parentNodeList = dom.getElementsByTagName("Detail" + currentFormNo);
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
domID1 = parentNode.getAttributes().getNamedItem("domID").getNodeValue(); currDomID = parentNode.getAttributes().getNamedItem("domID").getNodeValue();
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
childNodeLength = childNodeList.getLength(); childNodeLength = childNodeList.getLength();
for (ctr = 0; ctr < childNodeLength; ctr++) for (ctr = 0; ctr < childNodeLength; ctr++)
...@@ -639,7 +635,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun ...@@ -639,7 +635,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
domID = parentNode3.getAttributes().getNamedItem("domID").getNodeValue(); domID = parentNode3.getAttributes().getNamedItem("domID").getNodeValue();
NodeList childNodeList2 = parentNode3.getChildNodes(); NodeList childNodeList2 = parentNode3.getChildNodes();
childNodeListLength3 = childNodeList2.getLength(); childNodeListLength3 = childNodeList2.getLength();
if(domID.equals(domID1)) if(domID.equals(currDomID))
{ {
System.out.println("Dom ides are equals"); System.out.println("Dom ides are equals");
continue; continue;
...@@ -683,7 +679,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun ...@@ -683,7 +679,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
{ {
parentNodeList = dom.getElementsByTagName("Detail" + currentFormNo); parentNodeList = dom.getElementsByTagName("Detail" + currentFormNo);
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
domID1 = parentNode.getAttributes().getNamedItem("domID").getNodeValue(); currDomID = parentNode.getAttributes().getNamedItem("domID").getNodeValue();
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
childNodeLength = childNodeList.getLength(); childNodeLength = childNodeList.getLength();
for (ctr = 0; ctr < childNodeLength; ctr++) for (ctr = 0; ctr < childNodeLength; ctr++)
...@@ -756,7 +752,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun ...@@ -756,7 +752,7 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
domID = parentNode3.getAttributes().getNamedItem("domID").getNodeValue(); domID = parentNode3.getAttributes().getNamedItem("domID").getNodeValue();
NodeList childNodeList2 = parentNode3.getChildNodes(); NodeList childNodeList2 = parentNode3.getChildNodes();
childNodeListLength3 = childNodeList2.getLength(); childNodeListLength3 = childNodeList2.getLength();
if(domID.equals(domID1)) if(domID.equals(currDomID))
{ {
System.out.println("Dom ides are equals"); System.out.println("Dom ides are equals");
continue; continue;
......
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