Commit 964d55b1 authored by wansari's avatar wansari

W15GSUN003 changed by wasim to update source code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99151 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1685f9e6
...@@ -552,7 +552,7 @@ public class ScheduleAWMSInOutTasks implements Schedule ...@@ -552,7 +552,7 @@ public class ScheduleAWMSInOutTasks implements Schedule
if( errString != null && errString.indexOf( "CONFSUCC" ) > -1) if( errString != null && errString.indexOf( "CONFSUCC" ) > -1)
{ {
errString = allocStockLocCodeTo(allocList,tranIdIssList,refSer,refId,conn); errString = allocStockLocCodeTo(allocList,tranIdIssList,refSer,refId,countDso,conn);
System.out.println("Return from alloc To="+errString); System.out.println("Return from alloc To="+errString);
if(errString != null && (errString.indexOf("CONFSTKSUCC") > -1)) if(errString != null && (errString.indexOf("CONFSTKSUCC") > -1))
...@@ -3685,7 +3685,7 @@ public class ScheduleAWMSInOutTasks implements Schedule ...@@ -3685,7 +3685,7 @@ public class ScheduleAWMSInOutTasks implements Schedule
} }
return (currDate); return (currDate);
} }
private String allocStockLocCodeTo(ArrayList stkList,ArrayList tranIdIssList,String refSer,String refId,Connection conn) throws ITMException, Exception private String allocStockLocCodeTo(ArrayList stkList,ArrayList tranIdIssList,String refSer,String refId,int countDso,Connection conn) throws ITMException, Exception
{ {
String result = "",locCodeTo = "",sqlUpdate = "",tranIdList = ""; String result = "",locCodeTo = "",sqlUpdate = "",tranIdList = "";
PreparedStatement pstmt=null; PreparedStatement pstmt=null;
...@@ -3696,6 +3696,7 @@ public class ScheduleAWMSInOutTasks implements Schedule ...@@ -3696,6 +3696,7 @@ public class ScheduleAWMSInOutTasks implements Schedule
try try
{ {
System.out.println("Inside allocStockLocCodeTo"); System.out.println("Inside allocStockLocCodeTo");
System.out.println("Count DSO="+countDso);
Iterator itr = stkList.iterator(); Iterator itr = stkList.iterator();
System.out.println("Array List size="+stkList.size()); System.out.println("Array List size="+stkList.size());
...@@ -3713,7 +3714,7 @@ public class ScheduleAWMSInOutTasks implements Schedule ...@@ -3713,7 +3714,7 @@ public class ScheduleAWMSInOutTasks implements Schedule
count++; count++;
} }
if("D-SO".equalsIgnoreCase(refSer)) if("D-SO".equalsIgnoreCase(refSer) && countDso > 0)
{ {
locCodeTo = distComm.getDisparams("999999",refSer,conn); locCodeTo = distComm.getDisparams("999999",refSer,conn);
......
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