Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

MES Stateless API

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) 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) Method

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:

  • Includes the createdAtUtc parameter for specifying the time, in UTC, when the consumption occurred, which overrides the shiftStart time parameter.
  • Returns the updatedRowId output parameter that provides the row ID of the record in the Item_Cons table for the consumption that was added.

Note: This is one of the preferred overloads of this method to use.

In This Topic
TitleResults for “How to create a CRG?”Also Available in