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 ...@@ -786,6 +786,7 @@ public class NearExpirySchedule implements Schedule
HashMap strAllocate = null; HashMap strAllocate = null;
ArrayList stockList = null; ArrayList stockList = null;
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
ArrayList stockQCList = new ArrayList();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
InvAllocTraceBean invAllocTrace = new InvAllocTraceBean(); InvAllocTraceBean invAllocTrace = new InvAllocTraceBean();
...@@ -946,6 +947,14 @@ public class NearExpirySchedule implements Schedule ...@@ -946,6 +947,14 @@ public class NearExpirySchedule implements Schedule
} }
xmlBuff.append("</Detail2>"); 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>"); xmlBuff.append("</Header0>");
...@@ -970,7 +979,10 @@ public class NearExpirySchedule implements Schedule ...@@ -970,7 +979,10 @@ public class NearExpirySchedule implements Schedule
if (retString.indexOf("CONFSUCC") > -1) if (retString.indexOf("CONFSUCC") > -1)
{ {
isInsert =true; 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 ...@@ -1112,8 +1124,6 @@ public class NearExpirySchedule implements Schedule
pstmt = null; pstmt = null;
rs.close(); rs.close();
rs = null; rs = null;
System.out.println("qc_order_lots qcLotsl count>>>>>>>>>[" + cnt1 + "]");
if (cnt1 > 0) if (cnt1 > 0)
{ {
...@@ -1121,7 +1131,6 @@ public class NearExpirySchedule implements Schedule ...@@ -1121,7 +1131,6 @@ public class NearExpirySchedule implements Schedule
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, qorderNo); pstmt.setString(1, qorderNo);
updCnt1 = pstmt.executeUpdate(); updCnt1 = pstmt.executeUpdate();
System.out.println("updCnt1 qcLotsl>>>>>>" + updCnt1);
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
...@@ -1169,7 +1178,6 @@ public class NearExpirySchedule implements Schedule ...@@ -1169,7 +1178,6 @@ public class NearExpirySchedule implements Schedule
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, qorderNo); pstmt.setString(1, qorderNo);
updCnt1 = pstmt.executeUpdate(); updCnt1 = pstmt.executeUpdate();
System.out.println("updCnt1>>>>>>" + updCnt1);
pstmt.close(); pstmt.close();
pstmt = null; 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