parent
f3487bc607
commit
3e83c905d4
|
@ -16,12 +16,19 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.eevolution.model;
|
package org.eevolution.model;
|
||||||
|
|
||||||
import java.sql.*;
|
import java.sql.PreparedStatement;
|
||||||
import java.util.*;
|
import java.sql.ResultSet;
|
||||||
import java.util.logging.*;
|
import java.sql.SQLException;
|
||||||
import org.compiere.model.*;
|
import java.util.ArrayList;
|
||||||
import org.compiere.process.*;
|
import java.util.Calendar;
|
||||||
import org.compiere.util.*;
|
import java.util.Properties;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
import org.compiere.model.MMenu;
|
||||||
|
import org.compiere.util.CCache;
|
||||||
|
import org.compiere.util.CLogger;
|
||||||
|
import org.compiere.util.DB;
|
||||||
|
import org.compiere.util.Env;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WorkFlow Model
|
* WorkFlow Model
|
||||||
|
@ -150,9 +157,9 @@ public class MPPOrderWorkflow extends X_PP_Order_Workflow
|
||||||
super (ctx, PP_Order_Workflow_ID, trxName);
|
super (ctx, PP_Order_Workflow_ID, trxName);
|
||||||
if (PP_Order_Workflow_ID == 0)
|
if (PP_Order_Workflow_ID == 0)
|
||||||
{
|
{
|
||||||
// setPP_Order_Workflow_ID (0);
|
// setPP_Order_Workflow_ID (0);
|
||||||
// setValue (null);
|
// setValue (null);
|
||||||
// setName (null);
|
// setName (null);
|
||||||
setAccessLevel (ACCESSLEVEL_Organization);
|
setAccessLevel (ACCESSLEVEL_Organization);
|
||||||
setAuthor ("ComPiere, Inc.");
|
setAuthor ("ComPiere, Inc.");
|
||||||
setDurationUnit(DURATIONUNIT_Day);
|
setDurationUnit(DURATIONUNIT_Day);
|
||||||
|
@ -405,7 +412,7 @@ public class MPPOrderWorkflow extends X_PP_Order_Workflow
|
||||||
{
|
{
|
||||||
MPPOrderNode node = getNode (PP_Order_Node_ID);
|
MPPOrderNode node = getNode (PP_Order_Node_ID);
|
||||||
if (node != null
|
if (node != null
|
||||||
&& (node.getAD_Client_ID() == 0 || node.getAD_Client_ID() == AD_Client_ID))
|
&& (node.getAD_Client_ID() == 0 || node.getAD_Client_ID() == AD_Client_ID))
|
||||||
{
|
{
|
||||||
if (!list.contains(node))
|
if (!list.contains(node))
|
||||||
list.add(node);
|
list.add(node);
|
||||||
|
@ -414,7 +421,7 @@ public class MPPOrderWorkflow extends X_PP_Order_Workflow
|
||||||
{
|
{
|
||||||
MPPOrderNode child = getNode (nexts[i].getPP_Order_Next_ID());
|
MPPOrderNode child = getNode (nexts[i].getPP_Order_Next_ID());
|
||||||
if (child.getAD_Client_ID() == 0
|
if (child.getAD_Client_ID() == 0
|
||||||
|| child.getAD_Client_ID() == AD_Client_ID)
|
|| child.getAD_Client_ID() == AD_Client_ID)
|
||||||
{
|
{
|
||||||
if (!list.contains(child))
|
if (!list.contains(child))
|
||||||
list.add(child);
|
list.add(child);
|
||||||
|
@ -570,7 +577,7 @@ public class MPPOrderWorkflow extends X_PP_Order_Workflow
|
||||||
{
|
{
|
||||||
StringBuffer sb = new StringBuffer ("MPPOrderWorkflow[");
|
StringBuffer sb = new StringBuffer ("MPPOrderWorkflow[");
|
||||||
sb.append(get_ID()).append("-").append(getName())
|
sb.append(get_ID()).append("-").append(getName())
|
||||||
.append ("]");
|
.append ("]");
|
||||||
return sb.toString ();
|
return sb.toString ();
|
||||||
} // toString
|
} // toString
|
||||||
|
|
||||||
|
@ -610,7 +617,7 @@ public class MPPOrderWorkflow extends X_PP_Order_Workflow
|
||||||
}
|
}
|
||||||
// Menu/Workflow
|
// Menu/Workflow
|
||||||
else if (is_ValueChanged("IsActive") || is_ValueChanged("Name")
|
else if (is_ValueChanged("IsActive") || is_ValueChanged("Name")
|
||||||
|| is_ValueChanged("Description") || is_ValueChanged("Help"))
|
|| is_ValueChanged("Description") || is_ValueChanged("Help"))
|
||||||
{
|
{
|
||||||
MMenu[] menues = MMenu.get(getCtx(), "PP_Order_Workflow_ID=" + getPP_Order_Workflow_ID());
|
MMenu[] menues = MMenu.get(getCtx(), "PP_Order_Workflow_ID=" + getPP_Order_Workflow_ID());
|
||||||
for (int i = 0; i < menues.length; i++)
|
for (int i = 0; i < menues.length; i++)
|
||||||
|
@ -778,8 +785,8 @@ public class MPPOrderWorkflow extends X_PP_Order_Workflow
|
||||||
Log.setTraceLevel(8);
|
Log.setTraceLevel(8);
|
||||||
System.out.println("---------------------------------------------------");
|
System.out.println("---------------------------------------------------");
|
||||||
MPPOrderWorkflow wf = MPPOrderWorkflow.get (Env.getCtx(), PP_Order_Workflow_ID);
|
MPPOrderWorkflow wf = MPPOrderWorkflow.get (Env.getCtx(), PP_Order_Workflow_ID);
|
||||||
**/
|
**/
|
||||||
// wf.start(M_Requsition_ID);
|
// wf.start(M_Requsition_ID);
|
||||||
|
|
||||||
} // main
|
} // main
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue