Commit 1f00ac60 authored by smestry's avatar smestry

W15FSUN008, Create transaction screen Palletization and palletization Confirm for AWMS.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98843 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0143687a
...@@ -35,7 +35,7 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf ...@@ -35,7 +35,7 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
{ {
return ""; return "";
} }
public String postSave( String domString, String tranId, String editFlag, String xtraParams, Connection conn123 ) throws RemoteException, ITMException public String postSave( String domString, String tranId, String editFlag, String xtraParams, Connection conn ) throws RemoteException, ITMException
{ {
String errString = "", siteCode = ""; String errString = "", siteCode = "";
......
...@@ -44,6 +44,7 @@ public class PalletizationPos extends ValidatorEJB implements PalletizationPosLo ...@@ -44,6 +44,7 @@ public class PalletizationPos extends ValidatorEJB implements PalletizationPosLo
double parseQuantity = 0; double parseQuantity = 0;
HashMap strAllocate = new HashMap(); HashMap strAllocate = new HashMap();
Connection conn1 = null; Connection conn1 = null;
boolean isError = false;
try try
{ {
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
...@@ -130,7 +131,17 @@ public class PalletizationPos extends ValidatorEJB implements PalletizationPosLo ...@@ -130,7 +131,17 @@ public class PalletizationPos extends ValidatorEJB implements PalletizationPosLo
finally finally
{ {
try try
{ {
if( !isError )
{
System.out.println("commmit");
conn1.commit();
}
else if ( isError )
{
System.out.println("rollback");
conn1.rollback();
}
if (conn1 != null) if (conn1 != null)
{ {
conn1.close(); conn1.close();
......
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