AddConsPostExec Method
- Last UpdatedNov 06, 2025
- 2 minute read
The AddConsPostExec() method enters consumption data for a given job, shift, production code, lot, and container in the consumption transaction table (Item_Cons) after the job has run on an entity.
| Overload | Description |
|---|---|
| AddConsPostExec(Int32,String,Double,Nullable<Int32>,String,String,Nullable<Int32>,Nullable<DateTime>,Nullable<Int32>,Nullable<Int32>,String,Nullable<Int32>,String,String,String,String,Nullable<Int32>,String,String,String,String,String,String,DBString,DBString,DBString,DBString,Nullable<Int32>) | The AddConsPostExec() method enters consumption data for a given job, shift, production code, lot, and container in the consumption transaction table (Item_Cons) after the job has run on an entity. This method can add a new Item_Cons record or update an existing record. This overload of the method uses the entity ID to identify entities specified for the method. |
| AddConsPostExec(Int32,String,Double,Nullable<Int32>,String,String,Nullable<Int32>,Nullable<DateTime>,Nullable<Int32>,Nullable<Int32>,String,Nullable<Int32>,String,String,String,String,Nullable<Int32>,String,String,String,String,String,String,DBString,DBString,DBString,DBString,Nullable<DateTime>,Nullable<Int32>,Int32) | The AddConsPostExec() method enters consumption data for a given job, shift, production code, lot, and container in the consumption transaction table (Item_Cons) after the job has run on an entity. This method can add a new Item_Cons record or update an existing record. This overload of the method uses the entity ID to identify entities specified for the method. It also:
Note: This is one of the preferred overloads of this method to use. |
| AddConsPostExec(Int32,String,Double,String,String,String,String,Nullable<Int32>,Nullable<DateTime>,Nullable<Int32>,Nullable<Int32>,String,Nullable<Int32>,String,String,String,String,String,String,String,String,String,String,String,String,DBString,DBString,DBString,DBString,Nullable<Int32>) |
The AddConsPostExec() method enters consumption data for a given job, shift, production code, lot, and container in the consumption transaction table (Item_Cons) after the job has run on an entity. This method can add a new Item_Cons record or update an existing record. This overload of the method uses the entity name and entity site name to identify entities specified for the method. |
| AddConsPostExec(Int32,String,Double,String,String,String,String,Nullable<Int32>,Nullable<DateTime>,Nullable<Int32>,Nullable<Int32>,String,Nullable<Int32>,String,String,String,String,String,String,String,String,String,String,String,String,DBString,DBString,DBString,DBString,Nullable<DateTime>,Nullable<Int32>,Int32) |
The AddConsPostExec() method enters consumption data for a given job, shift, production code, lot, and container in the consumption transaction table (Item_Cons) after the job has run on an entity. This method can add a new Item_Cons record or update an existing record. This overload of the method uses the entity name and entity site name to identify entities specified for the method. It also:
Note: This is one of the preferred overloads of this method to use. |