Commit 2bb34b09 authored by caluka's avatar caluka

Delete mps_order query change for Requirement Wizard[MF3KSUN005]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94313 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8ba8bf63
......@@ -4566,7 +4566,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
{
sqlIndent = "DELETE FROM INDENT " + "WHERE SITE_CODE = ? " + "AND ITEM_CODE IN (" + "SELECT CASE WHEN ITEM_CODE__PLAN IS NULL THEN ITEM_CODE ELSE ITEM_CODE__PLAN END " + "FROM ITEM " + "WHERE ITEM_CODE = ? ) " + "AND STATUS = 'U' " + "AND IND_TYPE = 'M' ";
sqlMpsOrder = "DELETE FROM MPS_ORDER " + "WHERE SITE_CODE = ? " + "AND ITEM_CODE = ? ";
sqlMpsOrder = "DELETE FROM MPS_ORDER " + "WHERE SITE_CODE = ? " + "AND ITEM_CODE = ? "+ " AND STATUS in ('N')";
sqlWorkOrder = "DELETE FROM WORKORDER " + "WHERE SITE_CODE = ? " + "AND ITEM_CODE = ? " + " AND STATUS in ('M')";
sqlDistDemand = "DELETE FROM DIST_DEMAND " + " WHERE STATUS = 'P' " + "AND SITE_CODE = ? " + "AND ITEM_CODE = ? ";
......@@ -7433,7 +7433,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
System.out.println("Printing valueXmlString----2---" + valueXmlString);
System.out.println("Printing context-------" + context);
// context=2;
if (context != null && context.trim().length() > 0 && context.equals("2")) //3
if (context != null && context.trim().length() > 0 && (context.equals("2") ||context.equals("3"))) //3
{
resultString = valueXmlString.toString();
} else
......
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