Commit 953f7222 authored by smestry's avatar smestry

W15FSUN008, Updated class file Palletization.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98893 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e8897b8d
...@@ -139,9 +139,11 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -139,9 +139,11 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
System.out.println("DOM1----->>["+genericUtility.serializeDom(dom1).toString()+"]"); System.out.println("DOM1----->>["+genericUtility.serializeDom(dom1).toString()+"]");
System.out.println("DOM2----->>["+genericUtility.serializeDom(dom2).toString()+"]"); System.out.println("DOM2----->>["+genericUtility.serializeDom(dom2).toString()+"]");
String locationCode ="", palletNo = "", palletNoSource = ""; String locationCode ="", palletNo = "", palletNoSource = "", sql = "", scheduleStatus = "";
ArrayList<String> locStockList = new ArrayList<String>(); ArrayList<String> locStockList = new ArrayList<String>();
ArrayList<String> locList = new ArrayList<String>(); ArrayList<String> locList = new ArrayList<String>();
PreparedStatement pstmt = null ;
ResultSet rs = null ;
parentNodeList = dom.getElementsByTagName("Detail1"); parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
...@@ -159,6 +161,17 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -159,6 +161,17 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
locStockList = getLocationCode(conn, loginSite); locStockList = getLocationCode(conn, loginSite);
locList = getLocation(conn, loginSite); locList = getLocation(conn, loginSite);
sql ="select schedule_status from interface2 where pallet_no = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, locationCode);
rs = pstmt.executeQuery();
if(rs.next())
{
scheduleStatus = checkNullAndTrim(rs.getString("schedule_status"));
}
if(pstmt != null){pstmt.close();pstmt = null;}
if(rs != null){rs.close();rs = null;}
for (ctr = 0; ctr < childNodeListLength; ctr++) for (ctr = 0; ctr < childNodeListLength; ctr++)
{ {
childNode = childNodeList.item(ctr); childNode = childNodeList.item(ctr);
...@@ -240,6 +253,13 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -240,6 +253,13 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
errList.add( errCode ); errList.add( errCode );
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
}*/ }*/
if("".equalsIgnoreCase(scheduleStatus))
{
System.out.println("Pallet No still transist, interface table :::::::::: ");
errCode = "VTINOUTPL";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
} }
} }
break; break;
...@@ -305,9 +325,7 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -305,9 +325,7 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
System.out.println("DOM2----->>["+genericUtility.serializeDom(dom2).toString()+"]"); System.out.println("DOM2----->>["+genericUtility.serializeDom(dom2).toString()+"]");
String itemCode = "", itemCodeDB = "", quantity = ""; String itemCode = "", itemCodeDB = "", quantity = "";
PreparedStatement pstmt = null ;
ResultSet rs = null ;
String sql = "";
String familyGrp = "", qcType = "", stroPref = "", familyGrpDB = "", qcTypeDB = "", stroPrefDB = "", lotNo = "", lotSl = ""; String familyGrp = "", qcType = "", stroPref = "", familyGrpDB = "", qcTypeDB = "", stroPrefDB = "", lotNo = "", lotSl = "";
double quantityDB = 0, parseQuantity = 0; double quantityDB = 0, parseQuantity = 0;
HashMap hm = new HashMap(); HashMap hm = new HashMap();
...@@ -404,7 +422,7 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -404,7 +422,7 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
qcType = (String) hm.get("PROC_MTH"); qcType = (String) hm.get("PROC_MTH");
stroPref = (String) hm.get("ANALYSIS_CLASS"); stroPref = (String) hm.get("ANALYSIS_CLASS");
hm1 = commonWmsUtility.getPalletizedAttributes(itemCode, loginSite, conn); hm1 = commonWmsUtility.getPalletizedAttributes(itemCodeDB, loginSite, conn);
familyGrpDB = (String) hm1.get("LOC_ZONE__PREF"); familyGrpDB = (String) hm1.get("LOC_ZONE__PREF");
qcTypeDB = (String) hm1.get("PROC_MTH"); qcTypeDB = (String) hm1.get("PROC_MTH");
stroPrefDB = (String) hm1.get("ANALYSIS_CLASS"); stroPrefDB = (String) hm1.get("ANALYSIS_CLASS");
...@@ -417,7 +435,7 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -417,7 +435,7 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
System.out.println("qcTypeDB :::::::::: " + qcTypeDB); System.out.println("qcTypeDB :::::::::: " + qcTypeDB);
System.out.println("stroPrefDB :::::::::: " + stroPrefDB); System.out.println("stroPrefDB :::::::::: " + stroPrefDB);
if(!familyGrpDB.equals(familyGrp) && !qcTypeDB.equals(qcType) && !stroPrefDB.equals(stroPref)) if(!familyGrpDB.equalsIgnoreCase(familyGrp) || !qcTypeDB.equalsIgnoreCase(qcType) || !stroPrefDB.equalsIgnoreCase(stroPref))
{ {
System.out.println(" item code is not of same analysis grp :::::::::: "); System.out.println(" item code is not of same analysis grp :::::::::: ");
errCode = "VTINVAC"; errCode = "VTINVAC";
......
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