Adempiere 3.5.2a

org.eevolution.process
Class MRP

java.lang.Object
  extended by org.compiere.process.SvrProcess
      extended by org.eevolution.process.MRP
All Implemented Interfaces:
ProcessCall

public class MRP
extends SvrProcess

Calculate Material Plan MRP

Version:
$Id: CreateCost.java,v 1.1 2004/06/22 05:24:03 vpj-cd Exp $
Author:
Victor Perez, e-Evolution, S.C.

Field Summary
 
Fields inherited from class org.compiere.process.SvrProcess
log, MSG_InvalidArguments, MSG_SaveErrorRowNotFound
 
Constructor Summary
MRP()
           
 
Method Summary
 boolean deleteMRP(int AD_Client_ID, int AD_Org_ID, int S_Resource_ID, int M_Warehouse_ID)
          Delete old record in MRP table to calculate again MRP and Document with Draft status
protected  String doIt()
          Perform process.
protected  void prepare()
          Prepare - e.g., get Parameters.
 String runMRP(int AD_Client_ID, int AD_Org_ID, int S_Resource_ID, int M_Warehouse_ID)
          Calculate plan
 
Methods inherited from class org.compiere.process.SvrProcess
addLog, addLog, commit, commitEx, doIt, get_TrxName, getAD_Client_ID, getAD_PInstance_ID, getAD_User_ID, getCtx, getName, getParameter, getProcessInfo, getRecord_ID, getTable_ID, isLocked, lockObject, postProcess, rollback, startProcess, unlockObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MRP

public MRP()
Method Detail

prepare

protected void prepare()
Prepare - e.g., get Parameters.

Specified by:
prepare in class SvrProcess

doIt

protected String doIt()
               throws Exception
Description copied from class: SvrProcess
Perform process.

Specified by:
doIt in class SvrProcess
Returns:
Message (variables are parsed)
Throws:
Exception - if not successful e.g. throw new AdempiereUserError ("@FillMandatory@ @C_BankAccount_ID@");

deleteMRP

public boolean deleteMRP(int AD_Client_ID,
                         int AD_Org_ID,
                         int S_Resource_ID,
                         int M_Warehouse_ID)
Delete old record in MRP table to calculate again MRP and Document with Draft status

Parameters:
AD_Client_ID - Client_ID
AD_Org_ID - Orgganization ID
M_Warehouse_ID - Warehouse ID
Returns:
false if exist an error

runMRP

public String runMRP(int AD_Client_ID,
                     int AD_Org_ID,
                     int S_Resource_ID,
                     int M_Warehouse_ID)
Calculate plan

Parameters:
AD_Client_ID - Client ID
AD_Org_ID - Organization ID
M_Warehuse_ID - Warehouse ID

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.