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
{
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 = "";
......
......@@ -44,6 +44,7 @@ public class PalletizationPos extends ValidatorEJB implements PalletizationPosLo
double parseQuantity = 0;
HashMap strAllocate = new HashMap();
Connection conn1 = null;
boolean isError = false;
try
{
ConnDriver connDriver = new ConnDriver();
......@@ -131,6 +132,16 @@ public class PalletizationPos extends ValidatorEJB implements PalletizationPosLo
{
try
{
if( !isError )
{
System.out.println("commmit");
conn1.commit();
}
else if ( isError )
{
System.out.println("rollback");
conn1.rollback();
}
if (conn1 != null)
{
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