Commit d63d80c8 authored by manohar's avatar manohar

signature changed to accomodate wizard interface xmldata_all passed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96532 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7ded6ad5
......@@ -64,14 +64,39 @@ public class DistIssuePos extends ValidatorEJB implements DistIssuePosLocal, Dis
}
return "";
} */
public String postSaveRec(String xmlString,String xmlString1,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
//public String postSaveRec(String xmlString,String xmlString1,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
public String postSaveRec(String xmlString1,String domId,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
Document dom = null,dom1 = null;
System.out.println("DistIssuePosEJB called xmlString : [" + xmlString + "] ");
System.out.println("xmlString1 : ["+xmlString1+"]");
System.out.println("DistIssuePosEJB called xmlString : [" + xmlString1 + "] ");
try
{
if (xmlString != null && xmlString.trim().length() > 0)
if (xmlString1 != null && xmlString1.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString1);
if( (xmlString1.toUpperCase()).contains("DISTISSWIZ") )
{
objName="distisswiz";
detailNode="detail3";
if( (xmlString1.toUpperCase()).contains("DETAIL3") )
{
executepostSaveRec(dom,domId,objContext,editFlag,xtraParams,conn);
}
}
else
{
objName="";
detailNode="detail2";
executepostSaveRec(dom,domId,objContext,editFlag,xtraParams,conn);
}
}
/*if (xmlString != null && xmlString.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString);
//executepostSaveRec(dom,domId,objContext,editFlag,xtraParams,conn);
......@@ -97,7 +122,7 @@ public class DistIssuePos extends ValidatorEJB implements DistIssuePosLocal, Dis
detailNode="detail2";
executepostSaveRec(dom,dom1,objContext,editFlag,xtraParams,conn);
}
}
} */
}
catch(Exception e)
{
......@@ -108,8 +133,8 @@ public class DistIssuePos extends ValidatorEJB implements DistIssuePosLocal, Dis
return "";
}
//private String executepostSaveRec(Document dom, String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
private String executepostSaveRec(Document dom, Document dom1,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
private String executepostSaveRec(Document dom, String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
//private String executepostSaveRec(Document dom, Document dom1,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
Statement stmt = null, stmt1 = null;
ResultSet rs = null, rs1 = null, rs2 = null;
......@@ -135,6 +160,14 @@ public class DistIssuePos extends ValidatorEJB implements DistIssuePosLocal, Dis
System.out.println("\n tranDate :"+tranDate);
//commented by Dadso Pawar on 01/10/14
//hdrDom = dom1.getElementsByTagName("Detail1");
/*if("distisswiz".equalsIgnoreCase(objName))
{
hdrDom = dom.getElementsByTagName("Detail2");
}
else
{
hdrDom = dom.getElementsByTagName("Detail1");
}*/
if("distisswiz".equalsIgnoreCase(objName))
{
hdrDom = dom.getElementsByTagName("Detail2");
......@@ -144,13 +177,14 @@ public class DistIssuePos extends ValidatorEJB implements DistIssuePosLocal, Dis
hdrDom = dom.getElementsByTagName("Detail1");
}
siteCode = GenericUtility.getInstance().getColumnValueFromNode("site_code",hdrDom.item(0));
tranId = GenericUtility.getInstance().getColumnValueFromNode("tran_id",hdrDom.item(0));
System.out.println("Site Code :: "+siteCode);
System.out.println("Tran ID :: "+tranId);
//currDetail = getCurrentDetailFromDom(dom,domID);
//currDetail = dom.getElementsByTagName("Detail2").item(0);
if("distisswiz".equalsIgnoreCase(objName))
/*if("distisswiz".equalsIgnoreCase(objName))
{
currDetail = dom.getElementsByTagName("Detail3").item(0);
}
......@@ -159,7 +193,11 @@ public class DistIssuePos extends ValidatorEJB implements DistIssuePosLocal, Dis
currDetail = dom.getElementsByTagName("Detail2").item(0);
}
updateStatus = getCurrentUpdateFlag(currDetail);
System.out.println(" Update Status ::"+updateStatus);
*/
currDetail = getCurrentDetailFromDom(dom,domID);
updateStatus = getCurrentUpdateFlag(currDetail);
System.out.println("DomID :: "+domID+"\n Update Status ::"+updateStatus);
if (currDetail != null && !updateStatus.equalsIgnoreCase("D"))
{
......
......@@ -39,7 +39,7 @@ public class DistIssuePrs extends ValidatorEJB implements DistIssuePrsLocal, Dis
{
}*/
public String preSaveRecWiz(String xmlString,String xmlString1,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
/*public String preSaveRecWiz(String xmlString,String xmlString1,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
System.out.println("DistIssuePrs Ejb called preSaveRec for wizard......");
System.out.println("DistIssuePrsEJB called xmlString [" + xmlString + "]");
......@@ -63,7 +63,7 @@ public class DistIssuePrs extends ValidatorEJB implements DistIssuePrsLocal, Dis
throw new ITMException(e);
}
return "";
}
}*/
public String preSaveRec() throws RemoteException,ITMException
......@@ -73,14 +73,39 @@ public class DistIssuePrs extends ValidatorEJB implements DistIssuePrsLocal, Dis
//public String preSaveRec(String xmlString1,String domId,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
public String preSaveRec(String xmlString,String xmlString1,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
public String preSaveRec(String xmlString1,String domId,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
//public String preSaveRec(String xmlString,String xmlString1,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
System.out.println("DistIssuePrsEJB called xmlString [" + xmlString + "] xmlString1 [" + xmlString1 + "]");
System.out.println("DistIssuePrsEJB called domId [" + domId + "] xmlString1 [" + xmlString1 + "]");
Document dom = null, dom1 = null;
try
{
if (xmlString != null && xmlString.trim().length() > 0)
if (xmlString1 != null && xmlString1.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString1);
if (xmlString1 != null && xmlString1.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString1);
//if( (xmlString1.toUpperCase()).contains("DETAIL2") || (xmlString1.toUpperCase()).contains("DETAIL3") )
if( (xmlString1.toUpperCase()).contains("DETAIL3") )
{
objName="distisswiz";
detailNode="detail3";
}
else
{
objName="";
detailNode="detail2";
}
executepreSaveRec(dom,domId,objContext,editFlag,xtraParams,conn);
}
}
/*if (xmlString != null && xmlString.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString);
//executepreSaveRec(dom,domId,objContext,editFlag,xtraParams,conn);
......@@ -103,7 +128,7 @@ public class DistIssuePrs extends ValidatorEJB implements DistIssuePrsLocal, Dis
}
executepreSaveRec(dom,dom1,objContext,editFlag,xtraParams,conn);
}
*/
}
......@@ -116,8 +141,8 @@ public class DistIssuePrs extends ValidatorEJB implements DistIssuePrsLocal, Dis
return "";
}
//private String executepreSaveRec(Document dom, String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
private String executepreSaveRec(Document dom, Document dom1,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
private String executepreSaveRec(Document dom, String domID,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
//private String executepreSaveRec(Document dom, Document dom1,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
{
Statement stmt = null,stmt1 = null;
ResultSet rs = null, rs1 = null, rs2 = null;
......@@ -143,13 +168,22 @@ public class DistIssuePrs extends ValidatorEJB implements DistIssuePrsLocal, Dis
//hdrDom = dom1.getElementsByTagName("Detail1");
if("distisswiz".equalsIgnoreCase(objName))
{
System.out.println("distisswiz condition............#$#$#");
hdrDom = dom.getElementsByTagName("Detail2");
}
else
{
hdrDom = dom.getElementsByTagName("Detail1");
}
/*if("distisswiz".equalsIgnoreCase(objName))
{
System.out.println("distisswiz condition............#$#$#");
hdrDom = dom.getElementsByTagName("Detail2");
}
else
{
hdrDom = dom.getElementsByTagName("Detail1");
}*/
siteCode = GenericUtility.getInstance().getColumnValueFromNode("site_code",hdrDom.item(0));
tranId = GenericUtility.getInstance().getColumnValueFromNode("tran_id",hdrDom.item(0));
......@@ -158,7 +192,7 @@ public class DistIssuePrs extends ValidatorEJB implements DistIssuePrsLocal, Dis
//currDetail = getCurrentDetailFromDom(dom,domID);
//currDetail = dom.getElementsByTagName("Detail2").item(0);
if("distisswiz".equalsIgnoreCase(objName))
/*if("distisswiz".equalsIgnoreCase(objName))
{
currDetail = dom.getElementsByTagName("Detail3").item(0);;
}
......@@ -167,6 +201,10 @@ public class DistIssuePrs extends ValidatorEJB implements DistIssuePrsLocal, Dis
currDetail = dom.getElementsByTagName("Detail2").item(0);
}
updateStatus = getCurrentUpdateFlag(currDetail);
*/
currDetail = getCurrentDetailFromDom(dom,domID);
updateStatus = getCurrentUpdateFlag(currDetail);
System.out.println("updateStatus :"+updateStatus);
if (currDetail != null && !updateStatus.equalsIgnoreCase("A"))
{
......
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