Commit 485dbfb4 authored by jshinde's avatar jshinde

Request ID:W15HSUN003,palletrequest with stocks details


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99281 ce508802-f39f-4f6c-b175-0d175dae99d5
parent add0d6fb
......@@ -67,10 +67,10 @@ public class PalletReqConf extends ActionHandlerEJB implements PalletReqConfLoca
ResultSet rs = null,rs1 = null;
PreparedStatement pstmt = null,pstmt1 = null;
String errString = ""; Timestamp tranDate = null;
String palletNo = null;
String palletNo = "",palletStatus="F";
String lineNo = "",itemCode="",lotNo="",lotSl="",noArt="",quantity="" ;
String empCodeAprv="",siteCode ="";
String loginSite="",qtyPerArt="";
String loginSite="",qtyPerArt="",refSer="PRS";
ArrayList<String> palletList = new ArrayList();
ArrayList<String> lineList = new ArrayList();
int count , cntPal = 0;
......@@ -154,6 +154,8 @@ public class PalletReqConf extends ActionHandlerEJB implements PalletReqConfLoca
pstmt.close();
pstmt = null;
}
/*sql="SELECT TRAN_DATE FROM PALLET_REQ_HDR WHERE TRAN_ID=?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
......@@ -214,11 +216,12 @@ public class PalletReqConf extends ActionHandlerEJB implements PalletReqConfLoca
if(rs1.next())
{
qtyPerArt = checkNullAndTrim(rs1.getString("QTY_PER_ART"));
palletStatus=commonWmsUtility.getFullOrPrtialPalletOut(palletNo,refSer,tranId,siteCode, conn) ;
System.out.println("palletStatus for PRS"+palletStatus);
HashMap hm = new HashMap();
hm.put("ITEM_CODE", itemCode);
hm.put("REF_ID", tranId);
hm.put("REF_SER", "PRS");
hm.put("REF_SER", refSer);
hm.put("TRAN_DATE", checkNullAndTrim(String.valueOf(today)));
hm.put("QTY_PER_ART", qtyPerArt);
hm.put("LOT_NO", lotNo);
......@@ -235,7 +238,7 @@ public class PalletReqConf extends ActionHandlerEJB implements PalletReqConfLoca
hm.put("IN_OUT", "O");
hm.put("EXP_DATE", "");
hm.put("MFG_DATE", "");
hm.put("PALLET_STATUS", "");
hm.put("PALLET_STATUS", palletStatus);
hm.put("MSG_STAT", "N");
hm.put("LOCK_STAT", "");
hm.put("ERR_COD", "");
......@@ -266,7 +269,7 @@ public class PalletReqConf extends ActionHandlerEJB implements PalletReqConfLoca
hm.put("IN_OUT", "O");
hm.put("EXP_DATE", "");
hm.put("MFG_DATE", "");
hm.put("PALLET_STATUS", "");
hm.put("PALLET_STATUS", palletStatus);
hm.put("MSG_STAT", "N");
hm.put("LOCK_STAT", "");
hm.put("ERR_COD", "");
......@@ -281,7 +284,8 @@ public class PalletReqConf extends ActionHandlerEJB implements PalletReqConfLoca
}
rs.close();
pstmt.close();
commonWmsUtility.updateAwmsInterface(interfaceArrList,loginSite,conn);
commonWmsUtility.updateAwmsInterface(interfaceArrList,siteCode,conn);
System.out.println("Inserted into SWMS TO AWMS table ::::::::: ");
......
......@@ -120,7 +120,7 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle
Connection conn = null;
double quantityStock=0,noArtStock=0, noArtD=0;
String siteCode = "",userId = "",childNodeName = "",errString = "";
int ctr = 0, currentFormNo = 0, childNodeListLength = 0, siteCount = 0, cnt = 0;
int ctr = 0, currentFormNo = 0, childNodeListLength = 0, siteCount = 0, cnt = 0,loccnt=0,palcnt=0,cntLoc = 0;
objName = getObjNameFromDom(dom, "objName", "2");
System.out.println("objName----->>["+objName+"]");
System.out.println("editFlag----->>["+editFlag+"]");
......@@ -224,8 +224,9 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle
rs = pstmt.executeQuery();
if(rs.next())
{
System.out.println("count >>>>>>>" +rs.getInt(1));
if(rs.getInt(1)==0)
loccnt = rs.getInt(1);
System.out.println("count location>>>>>>>" +loccnt);
if(loccnt==0)
{
System.out.println("loc_code exist");
errCode = "VMLOCATEXT";
......@@ -283,7 +284,6 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle
}
else
{
int cntLoc = 0;
String sql = "SELECT COUNT(1) FROM LOCATION WHERE INV_STAT =? AND LOC_CODE=? AND SITE_CODE=?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, "AWMS");
......@@ -357,7 +357,8 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle
System.out.println("count stock>>>>>>>" +rs.getInt(1));
System.out.println("PALLET_NO FOR STOCK" +palletNo);
System.out.println("site code for stock" +loginSite);
if(rs.getInt(1)==0)
palcnt = rs.getInt(1);
if(palcnt==0)
{
System.out.println("pallet quantity zero");
errCode = "VMPALLETQN";//pallet quantity should be more than zero
......
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