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