Commit 591f0f6c authored by steurwadkar's avatar steurwadkar

Changes made to check whether to update despacth in DeallocArtPrc or ConsolidatToDoc component


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105316 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 74f928f5
......@@ -4200,6 +4200,11 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
ResultSet rSet = null ;
//Added by Manish on 29/09/15 for ms sql server.
String DB = CommonConstants.DB_NAME;
//Added by Santosh on 12/04/2017 to check whether to update despacth in this component or ConsolidatToDoc [Start]
ConsolidatToDoc consolidatToDoc = new ConsolidatToDoc();
HashMap dataMap = null;
boolean isTasksConfirmed = false;
//Added by Santosh on 12/04/2017 to check whether to update despacth in this component or ConsolidatToDoc [End]
try
{
......@@ -4245,6 +4250,16 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
pstmt = null;
}
//Added by Santosh on 12/04/2017 to check whether to update despacth in this component or ConsolidatToDoc[Start]
dataMap = consolidatToDoc.getAllTaskID(ptcn,conn);
System.out.println("dataMap====> in DeallocArtConf["+dataMap+"]");
isTasksConfirmed = consolidatToDoc.isAllTaskConfirmed(dataMap,conn);
System.out.println("Check all task completed for PTCN["+isTasksConfirmed+"]");
//Added by Santosh on 12/04/2017 to check whether to update despacth in this component or ConsolidatToDoc[End]
//Added by Santosh on 12/04/2017 to check whether to update despacth in this component or ConsolidatToDoc[Start]
if( !isTasksConfirmed)
{
sql = " UPDATE DESPATCH SET TARE_WEIGHT = TARE_WEIGHT - ? ,FILLER_WEIGHT= FILLER_WEIGHT - ? WHERE PTCN= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, tareWt);
......@@ -4260,8 +4275,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
pstmt.close();
pstmt = null;
}
}
}
catch(Exception e)
{
......
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