Aller au contenu principal

AddEventStatistic

Structure

AddEventStatistic(sCompany, sID: String; iEventNum: Integer; sStatType, sEndEventType, sStartEventType, sEventStat : String, dMinMin, dMaxDays : Float)

Parameters

| Parameter | Type | Description
| sUserName | String | the Company of the asset for the statistic entrysCompany | String | the ID of the asset for the statistic entryiEventNum | Integer | The Event Number for the statistic entrysStatType | String | the name of the Statistic (user defined, for identification ie. TURNAROUND TIME)sEndEventType | String | When the Statistic is between 2 distinct events, this is the Event Type of the ending Event. When a statistic about 1 event specifically, this and the next Parameter should be the same. ie. If you are doing a turnaround time between a Receiving and Shipping event, this should contain "SHIPPING"sStartEventType | String | When the Statistic is between 2 distinct events, this is the Event Type of the starting event. When a statistic about 1 event specifically, this and the prior Parameter should be the same. ie. If you are doing a turnaround time between a Receiving and Shipping event, this should contain "RECEIVING"sEventStat | String | 'Total Event Time', 'Master Usage', or 'Start/Finish Difference'. This indicates for a Single Event Statistic if the stat should be based on the "Total Time" field (Total Event Time), the Masters that were Used (Master Usage), or the Difference in time between the Start and Finish Date/Time fields (Start/Finish Difference)dMinMin | Float | This can be used to weed out outlier data. This should contain a minimum amount of minutes an Event can have before it will be ignored.dMaxDays | Float | This can be used to weed out outlier data. This should contain the maximum amount of days an Event can have before it will be ignored. |

Description

This function creates a new IndySoft Statistic entry introduced in Version 12. This function is especially useful when adding your own Events manually and you need to record special statistics.

Example

No example provided |