Class Product
Class to handle product info
Inherited Members
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 |