Commit d6d0dbe2 authored by cpatil's avatar cpatil

*** empty log message ***


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95297 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0d8c181e
...@@ -57,13 +57,13 @@ public class MrpWizPrsSaveBean ...@@ -57,13 +57,13 @@ public class MrpWizPrsSaveBean
private String executepreSaveForm(Document dom , String chgUser , String chgTerm )throws ITMException private String executepreSaveForm(Document dom , String chgUser , String chgTerm )throws ITMException
{ {
PreparedStatement pstmt = null, pstmt1 = null; PreparedStatement pstmt = null, pstmt1 = null, pstmt2 = null;
String sql = "", itemCode = "", effDate = "", itemSer = "", sql1=""; String sql = "", itemCode = "", effDate = "", itemSer = "", sql1="", sql2="";
int updCnt = 0; int updCnt = 0;
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
NodeList hdrDom = null; NodeList hdrDom = null;
//Node currDetail = null; //Node currDetail = null;
ResultSet rs1 = null; ResultSet rs1 = null, rs2 = null;
String saleOrder=" ",lineNo=" ", siteCode=" ", lotNo=" ", locCode="", lotSl=" ", tranSer="", runningSupplyStr="", qtyReqdStr="",allocQtyStr=""; String saleOrder=" ",lineNo=" ", siteCode=" ", lotNo=" ", locCode="", lotSl=" ", tranSer="", runningSupplyStr="", qtyReqdStr="",allocQtyStr="";
double runningSupply=0,qtyReqd=0; double runningSupply=0,qtyReqd=0;
String tranId="",refId="",refLineNo="",unit="",errString=""; String tranId="",refId="",refLineNo="",unit="",errString="";
...@@ -328,6 +328,7 @@ public class MrpWizPrsSaveBean ...@@ -328,6 +328,7 @@ public class MrpWizPrsSaveBean
invAllocTrace = new InvAllocTraceBean(); invAllocTrace = new InvAllocTraceBean();
errString = invAllocTrace.updateInvallocTrace(hashMap, conn); errString = invAllocTrace.updateInvallocTrace(hashMap, conn);
System.out.println("updateInvallocTrace 1....."+errString); System.out.println("updateInvallocTrace 1....."+errString);
if ( errString != null && errString.trim().length() > 0 ) if ( errString != null && errString.trim().length() > 0 )
{ {
System.out.println("@@@@@@rolledback errString :::"+ errString ); System.out.println("@@@@@@rolledback errString :::"+ errString );
...@@ -340,6 +341,21 @@ public class MrpWizPrsSaveBean ...@@ -340,6 +341,21 @@ public class MrpWizPrsSaveBean
*/ */
} }
} }
if ( errString == null || errString.trim().length() == 0 )
{
sql2 = " update sorder set alloc_flag = 'Y' where sale_order = ? ";
System.out.println("sql2 :"+sql2 );
pstmt2 = conn.prepareStatement(sql2);
pstmt2.setString(1,saleOrder);
int cnt2 = pstmt2.executeUpdate();
pstmt2.close();
pstmt2 = null;
System.out.println("@@@@@ cnt ["+cnt2+"]::: sorder ["+saleOrder+"] alloc_flag [ Y ] updated sucessfully");
}
} }
/* /*
......
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