Commit 65bf2762 authored by manohar's avatar manohar

supp_code__mfg of stock considered


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92454 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 71f03e65
......@@ -406,19 +406,16 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
suppCodeTemp = supCodeList[ctr];
if (suppCodeMfg.trim().length() > 0)
{
suppCodeMfg = suppCodeMfg + ",'".concat(suppCodeTemp).concat("'");
suppCodeMfg = suppCodeMfg + ",'".concat(suppCodeTemp.trim()).concat("'");
}
else
{
suppCodeMfg = suppCodeMfg + "'".concat(suppCodeTemp).concat("'");
suppCodeMfg = suppCodeMfg + "'".concat(suppCodeTemp.trim()).concat("'");
}
}
}
System.out.println("dimension :: " + dimension + " trimWidth :: " + trimWidth);
System.out.println("qcRecd :: " + qcReqd + " autoQcReqd :: " + autoQcReqd);
System.out.println("trackShelfLife :: " + trackShelfLife + " useInvStatus :: " + useInvStatus);
if (dimension != null && dimension.trim().length() > 0)
{
......@@ -435,6 +432,8 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
pstmt.close();
rs.close();
}
System.out.println(" Param values dimension [" + dimension + "] trimWidth [" + trimWidth + "] qcRecd [" + qcReqd + "] autoQcReqd [" + autoQcReqd + "] trackShelfLife [" + trackShelfLife + "] useInvStatus [" + useInvStatus + "] effDate [" + effDate + "]");
System.out.println(" Param values suppCodeMfg [" + suppCodeMfg + "] lotNoIssue [" + lotNoIssue + "] locGroup [" + locGroup + "]");
// 27/12/12 manoharan
sql = " SELECT COUNT(A.ITEM_CODE) FROM STOCK A, LOCATION B, INVSTAT C "
......@@ -484,18 +483,31 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
pstmt.setString(5, dimension);
pstmt.setDouble(6, trimWidth);
}
else if ("Y".equalsIgnoreCase(trackShelfLife) && ("Y".equalsIgnoreCase(qcReqd) && "Y".equalsIgnoreCase(autoQcReqd)) && (dimension == null || dimension.trim().length() == 0 ))
{
pstmt.setTimestamp(3, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
pstmt.setTimestamp(4, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
}
else if (!"Y".equalsIgnoreCase(trackShelfLife) && ("Y".equalsIgnoreCase(qcReqd) && "Y".equalsIgnoreCase(autoQcReqd)) && dimension != null && dimension.trim().length() > 0 )
{
pstmt.setTimestamp(3, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
pstmt.setString(4, dimension);
pstmt.setDouble(5, trimWidth);
}
else if (!"Y".equalsIgnoreCase(trackShelfLife) && ("Y".equalsIgnoreCase(qcReqd) && "Y".equalsIgnoreCase(autoQcReqd)) && (dimension == null || dimension.trim().length() == 0) )
{
pstmt.setTimestamp(3, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
}
else if ("Y".equalsIgnoreCase(trackShelfLife) && (!"Y".equalsIgnoreCase(qcReqd) || !"Y".equalsIgnoreCase(autoQcReqd)) && dimension != null && dimension.trim().length() > 0 )
{
pstmt.setTimestamp(3, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
pstmt.setString(4, dimension);
pstmt.setDouble(5, trimWidth);
}
else if ("Y".equalsIgnoreCase(trackShelfLife) && (!"Y".equalsIgnoreCase(qcReqd) || !"Y".equalsIgnoreCase(autoQcReqd)) && (dimension != null || dimension.trim().length() ==0) )
{
pstmt.setTimestamp(3, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
}
else if (!"Y".equalsIgnoreCase(trackShelfLife) && (!"Y".equalsIgnoreCase(qcReqd) || !"Y".equalsIgnoreCase(autoQcReqd)) && dimension != null && dimension.trim().length() > 0 )
{
pstmt.setString(3, dimension);
......@@ -625,18 +637,31 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
pstmt.setString(5, dimension);
pstmt.setDouble(6, trimWidth);
}
else if ("Y".equalsIgnoreCase(trackShelfLife) && ("Y".equalsIgnoreCase(qcReqd) && "Y".equalsIgnoreCase(autoQcReqd)) && (dimension == null || dimension.trim().length() == 0 ))
{
pstmt.setTimestamp(3, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
pstmt.setTimestamp(4, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
}
else if (!"Y".equalsIgnoreCase(trackShelfLife) && ("Y".equalsIgnoreCase(qcReqd) && "Y".equalsIgnoreCase(autoQcReqd)) && dimension != null && dimension.trim().length() > 0 )
{
pstmt.setTimestamp(3, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
pstmt.setString(4, dimension);
pstmt.setDouble(5, trimWidth);
}
else if (!"Y".equalsIgnoreCase(trackShelfLife) && ("Y".equalsIgnoreCase(qcReqd) && "Y".equalsIgnoreCase(autoQcReqd)) && (dimension == null || dimension.trim().length() == 0) )
{
pstmt.setTimestamp(3, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
}
else if ("Y".equalsIgnoreCase(trackShelfLife) && (!"Y".equalsIgnoreCase(qcReqd) || !"Y".equalsIgnoreCase(autoQcReqd)) && dimension != null && dimension.trim().length() > 0 )
{
pstmt.setTimestamp(3, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
pstmt.setString(4, dimension);
pstmt.setDouble(5, trimWidth);
}
else if ("Y".equalsIgnoreCase(trackShelfLife) && (!"Y".equalsIgnoreCase(qcReqd) || !"Y".equalsIgnoreCase(autoQcReqd)) && (dimension != null || dimension.trim().length() ==0) )
{
pstmt.setTimestamp(3, Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00"));
}
else if (!"Y".equalsIgnoreCase(trackShelfLife) && (!"Y".equalsIgnoreCase(qcReqd) || !"Y".equalsIgnoreCase(autoQcReqd)) && dimension != null && dimension.trim().length() > 0 )
{
pstmt.setString(3, dimension);
......
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