41 lines
882 B
C#
41 lines
882 B
C#
using System;
|
|
|
|
namespace ResultsBrowser
|
|
{
|
|
/// <summary>
|
|
/// Custom query search criteria
|
|
/// </summary>
|
|
public enum CQCriteria
|
|
{
|
|
Undefined = 0,
|
|
ListOfOrders,
|
|
ListOfPcbNumbers,
|
|
RangeOfSerialNumbers,
|
|
ListOfSerialNumbers,
|
|
WZTypeIdAndTimePeriod,
|
|
ProducedWithinTimePeriod,
|
|
BenchAndBatchNr,
|
|
Count,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Custom query selection item (combo box items)
|
|
/// </summary>
|
|
public class CQSelectionItem
|
|
{
|
|
public CQCriteria CQCriteria;
|
|
string queryTypeText;
|
|
|
|
public CQSelectionItem(CQCriteria queryType, string queryTypeText)
|
|
{
|
|
this.CQCriteria = queryType;
|
|
this.queryTypeText = queryTypeText;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return queryTypeText;
|
|
}
|
|
}
|
|
}
|