Show / Hide Table of Contents

Class Product

Class to handle product info

Inheritance
System.Object
MesBase
Product
Inherited Members
MesBase.adminToken
MesBase.SetAdminCredentials(String, String)
MesBase.RESTGetJson<responseType>(String, Boolean)
MesBase.RESTPostJson<responseType>(String, Object, Boolean)
MesBase.RESTPutJson<responseType>(String, Object, Boolean)
MesBase.RESTDeleteJson<responseType>(String, Object, Boolean)
MesBase.CultureCode
MesBase.TranslateString(String, String, Object[])
MesBase.TranslateString(String, Object[])
MesBase.TranslateArray(String[])
MesBase.TranslateArray(String, String[])
MesBase.GetProcesses(Boolean, Boolean, Boolean)
MesBase.GetMesServerSettings(String[], Boolean[], Int32[], String[], String[], String[])
MesBase.GetCommonUserSettings(String)
MesBase.GetGeneralOptionString(String)
MesBase.GetGeneralOptionBool(String)
MesBase.GetGeneralOptionInt(String)
MesBase.DisplayMesTestGUI()
MesBase.GetStorageXml(String)
MesBase.GetStorageValue(String)
MesBase.PutStorageData(String, String, String)
MesBase.RemoveStorageData(String)
MesBase.RethrowException
MesBase.LastException
MesBase.LogExceptions
MesBase.StartTraceToEventLog()
MesBase.StopTraceToEventLog()
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Virinco.WATS.Interface.MES.Product
Assembly: Virinco.WATS.Interface.MES.dll
Syntax
public class Product : MesBase

Fields

LastScannedPartnumber

Holds information about the last scanned partnumber

Declaration
public string LastScannedPartnumber
Field Value
Type Description
System.String

Methods

DeserializeFromStream(Stream)

Declaration
public static object DeserializeFromStream(Stream stream)
Parameters
Type Name Description
System.IO.Stream stream
Returns
Type Description
System.Object

GetProduct(String, Int32, Boolean, Boolean)

Get products and revisions with a PartNumber containing filter

Declaration
public Product[] GetProduct(string filter, int topCount, bool includeNonSerial, bool includeRevision)
Parameters
Type Name Description
System.String filter

PartNumbers containing this value are returned (* and % are removed)

System.Int32 topCount

Max products to return

System.Boolean includeNonSerial

Boolean value to include nonSerial product or not

System.Boolean includeRevision

Include Revision object on matching objects

Returns
Type Description
Virinco.WATS.Service.MES.Contract.Product[]

GetProductInfo(String, String)

Return ProductInfo object

Declaration
public ProductInfo GetProductInfo(string partNumber, string revision = "")
Parameters
Type Name Description
System.String partNumber

Part Number to search

System.String revision

Revision

Returns
Type Description
ProductInfo

A ProductInfo object with info about the PN supplied.

IdentifyProduct(String, Int32, Boolean, Boolean, Boolean, out String, out String, out String, out Process, out Boolean, String, Boolean)

Identify Product with a popup GUI

Declaration
public void IdentifyProduct(string Filter, int TopCount, bool FreePartnumber, bool IncludeRevision, bool IncludeSerialNumber, out string SelectedSerialNumber, out string SelectedPartNumber, out string SelectedRevision, out Process SelectedTestOperation, out bool Continue, string CustomText = "", bool AlwaysOnTop = true)
Parameters
Type Name Description
System.String Filter

Filter down the products available in dropdown

System.Int32 TopCount

Max count of products in the dropdown

System.Boolean FreePartnumber

If PartNumber MUST be selected from the dropdown or not

System.Boolean IncludeRevision

If Revision should be selected or not

System.Boolean IncludeSerialNumber

If SerialNumber should be included or not

System.String SelectedSerialNumber
System.String SelectedPartNumber
System.String SelectedRevision
Virinco.WATS.Service.MES.Contract.Process SelectedTestOperation
System.Boolean Continue

Stopped or Continue execution

System.String CustomText
System.Boolean AlwaysOnTop

isConnected()

True if connected to server

Declaration
public bool isConnected()
Returns
Type Description
System.Boolean
In This Article
Back to top View how-to articles, videos and more at support.virinco.com Send comments on this topic to support@virinco.com