Commit f57def14 authored by dpawar's avatar dpawar

update CARTON_MASTER status for carton typ M


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98219 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ec85e11e
...@@ -70,12 +70,12 @@ public class MultiplePtcnWizConf extends ActionHandlerEJB implements MultiplePtc ...@@ -70,12 +70,12 @@ public class MultiplePtcnWizConf extends ActionHandlerEJB implements MultiplePtc
packInstr = "",suppCodeMfg = "",unitAlt = "",batchNo = "",unit = "",grade = "",stkOpt = "", packInstr = "",suppCodeMfg = "",unitAlt = "",batchNo = "",unit = "",grade = "",stkOpt = "",
expLev = "",itemCodeOrd = "",itemRef = "",status = "",itemGrade = "",waveId = "",retString = "", expLev = "",itemCodeOrd = "",itemRef = "",status = "",itemGrade = "",waveId = "",retString = "",
allocMode = "",reasCode = "",unitStd = "",sSQL = "",updateSql = "",ptcn = "",refSer = "",lineNoStr = ""; allocMode = "",reasCode = "",unitStd = "",sSQL = "",updateSql = "",ptcn = "",refSer = "",lineNoStr = "";
int lineNoOrd= 0,lineNo= 0,updCnt = 0,rowsCount = 0; int lineNoOrd= 0,lineNo= 0,updCnt = 0,rowsCount = 0;
double quantity = 0,noArt =0,stkGrossRate = 0,convQtyStduom = 0,batchSize = 0,holdQuantity = 0,stkRate = 0; double quantity = 0,noArt =0,stkGrossRate = 0,convQtyStduom = 0,batchSize = 0,holdQuantity = 0,stkRate = 0;
double shipperSize = 0, itemGrossWeight = 0, caseGrossWeight = 0, itemNetWeight = 0, caseNetWeight = 0, double shipperSize = 0, itemGrossWeight = 0, caseGrossWeight = 0, itemNetWeight = 0, caseNetWeight = 0,
qtyOrd = 0,sordAllocQty = 0; qtyOrd = 0,sordAllocQty = 0;
isError = false; isError = false;
boolean isUpdatehdr= false; boolean isUpdatehdr= false,isRecordFound = false;
java.sql.Timestamp expDate = null,currDate = null, mfgDate = null,restestDate = null,dateAlloc = null; java.sql.Timestamp expDate = null,currDate = null, mfgDate = null,restestDate = null,dateAlloc = null;
HashMap updateRowMap = new HashMap(); HashMap updateRowMap = new HashMap();
...@@ -164,6 +164,7 @@ public class MultiplePtcnWizConf extends ActionHandlerEJB implements MultiplePtc ...@@ -164,6 +164,7 @@ public class MultiplePtcnWizConf extends ActionHandlerEJB implements MultiplePtc
System.out.println("dataMap clear.............."); System.out.println("dataMap clear..............");
dataMap.clear(); dataMap.clear();
} }
isRecordFound = true;
System.out.println("WHILE CONDITION12.........."+(++rowsCount)); System.out.println("WHILE CONDITION12.........."+(++rowsCount));
lineNoOrd = rs.getInt( "LINE_NO__ORD" ); lineNoOrd = rs.getInt( "LINE_NO__ORD" );
waveId = checkNull(rs.getString( "WAVE_ID" )); waveId = checkNull(rs.getString( "WAVE_ID" ));
...@@ -911,26 +912,28 @@ public class MultiplePtcnWizConf extends ActionHandlerEJB implements MultiplePtc ...@@ -911,26 +912,28 @@ public class MultiplePtcnWizConf extends ActionHandlerEJB implements MultiplePtc
isError = true; isError = true;
return errorString; return errorString;
} }
//insert record in pallet_no and update carton master table System.out.println("isRecordFound -------->>["+isRecordFound+"]");
String str = insertPalletNoAndUpdCartonMast(ptcnScanSet,conn); if(isRecordFound && !isError)
System.out.println("After insertPalletNo str----->>["+str+"]"); {
updateSql = "UPDATE MULTI_PICK_ISS SET CONFIRMED = 'Y', CONF_DATE = ?, EMP_CODE__USER = ?" //insert record in pallet_no and update carton master table
+ " WHERE TRAN_ID = ? "; String str = insertPalletNoAndUpdCartonMast(ptcnScanSet,conn);
pstmt = conn.prepareStatement(updateSql); System.out.println("After insertPalletNo str----->>["+str+"]");
pstmt.setTimestamp(1, currDate); updateSql = "UPDATE MULTI_PICK_ISS SET CONFIRMED = 'Y', CONF_DATE = ?, EMP_CODE__USER = ?"
pstmt.setString(2, empCode); + " WHERE TRAN_ID = ? ";
pstmt.setString(3, tranId); pstmt = conn.prepareStatement(updateSql);
pstmt.setTimestamp(1, currDate);
updCnt = pstmt.executeUpdate(); pstmt.setString(2, empCode);
pstmt.setString(3, tranId);
if( updCnt > 0 )
{
System.out.println( updCnt + " MULTI_PICK_ISS rows updated successfully" );
}
pstmt.close();
pstmt = null;
updCnt = pstmt.executeUpdate();
if( updCnt > 0 )
{
System.out.println( updCnt + " MULTI_PICK_ISS rows updated successfully" );
}
pstmt.close();
pstmt = null;
}
}//end else of confirmed cndition }//end else of confirmed cndition
...@@ -1440,7 +1443,7 @@ public class MultiplePtcnWizConf extends ActionHandlerEJB implements MultiplePtc ...@@ -1440,7 +1443,7 @@ public class MultiplePtcnWizConf extends ActionHandlerEJB implements MultiplePtc
} }
mark = mark.substring(0,mark.length() - 1); mark = mark.substring(0,mark.length() - 1);
sqlBuf.append(mark); sqlBuf.append(mark);
sqlBuf.append( ") AND STATUS <> ? AND CARTON_TYPE IN ('A','C')"); sqlBuf.append( ") AND STATUS <> ? AND CARTON_TYPE IN ('A','C','M')");
pstmt = conn.prepareStatement(sqlBuf.toString()); pstmt = conn.prepareStatement(sqlBuf.toString());
pstmt.setString(1,"U"); pstmt.setString(1,"U");
......
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