Commit 04eb36e5 authored by caluka's avatar caluka

qc order cancel for expiry location.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98109 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 14f65b2a
......@@ -786,6 +786,7 @@ public class NearExpirySchedule implements Schedule
HashMap strAllocate = null;
ArrayList stockList = null;
GenericUtility genericUtility = GenericUtility.getInstance();
ArrayList stockQCList = new ArrayList();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
InvAllocTraceBean invAllocTrace = new InvAllocTraceBean();
......@@ -946,6 +947,14 @@ public class NearExpirySchedule implements Schedule
}
xmlBuff.append("</Detail2>");
HashMap insertQC = new HashMap();
insertQC.put( "item_code", itemCode );
insertQC.put( "site_code", siteCode );
insertQC.put( "loc_code", locCode );
insertQC.put( "lot_no", lotNo );
insertQC.put( "loc_code__to", locCodeTo );
stockQCList.add(insertQC);
}
}
xmlBuff.append("</Header0>");
......@@ -970,7 +979,10 @@ public class NearExpirySchedule implements Schedule
if (retString.indexOf("CONFSUCC") > -1)
{
isInsert =true;
retString=updateQcOrder(stockList,siteCode,itemCode,lotNo,locCode,lotSl,remarksFlag,locCodeTo,conn);
if ("EXPR".equalsIgnoreCase(remarksFlag))
{
retString = updateQcOrder(stockQCList, siteCode, itemCode, lotNo, locCode, lotSl, remarksFlag, locCodeTo, conn);
}
}
}
......@@ -1112,8 +1124,6 @@ public class NearExpirySchedule implements Schedule
pstmt = null;
rs.close();
rs = null;
System.out.println("qc_order_lots qcLotsl count>>>>>>>>>[" + cnt1 + "]");
if (cnt1 > 0)
{
......@@ -1121,7 +1131,6 @@ public class NearExpirySchedule implements Schedule
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, qorderNo);
updCnt1 = pstmt.executeUpdate();
System.out.println("updCnt1 qcLotsl>>>>>>" + updCnt1);
pstmt.close();
pstmt = null;
}
......@@ -1169,7 +1178,6 @@ public class NearExpirySchedule implements Schedule
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, qorderNo);
updCnt1 = pstmt.executeUpdate();
System.out.println("updCnt1>>>>>>" + updCnt1);
pstmt.close();
pstmt = null;
}
......
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