99 lines
4.5 KiB
C#
99 lines
4.5 KiB
C#
///
|
|
/// Copyright (c) 2018-2020 Sensus Slovensko a.s.
|
|
///
|
|
using System;
|
|
using System.Reflection;
|
|
using Common;
|
|
|
|
namespace SharedDatabase
|
|
{
|
|
public class Const
|
|
{
|
|
public const int MaxPartNameLen = 10;
|
|
public const string RAFormat = "D9"; /// Radio address digits count = 9
|
|
}
|
|
|
|
public enum CodeType
|
|
{
|
|
[Description("No check")] UniqueNr = 0,
|
|
[Description("8-chars, first 3 ch = last 3 ch of SAP nr")] FlowtubeNr = 1, /// prvé 3 znaky sa zhodujú s poslednými 3 znakmi názvu
|
|
[Description("20-chars, first 8 ch = SAP nr")] FlowtubeNrLU = 2, /// začiatok kódu sa zhoduje s názvom
|
|
[Description("Batch number")] BatchNr = 3,
|
|
[Description("Batch number containing part SAP nr")] BatchNrContainingPartName = 4,
|
|
[Description("Month in form MMYY, 4 digits")] DateMMYY = 5,
|
|
[Description("Quality check")] QualityCheck = 6,
|
|
[Description("Valid purchase order from a DB")] PO = 7, /// Purchase order from OrderInfo table of MySQL DB or from VT_AUFTRAG_PD table of Oracle DB
|
|
[Description("Silicon")] Silicon = 8,
|
|
/// 1. change requires special password
|
|
/// 2. do not clear
|
|
/// 3. save locally
|
|
/// 4. carry over to other workflows
|
|
Count
|
|
}
|
|
|
|
public enum CodeForm
|
|
{
|
|
[Description("Barcode scanner")] Barcode = 0, /// Barcode
|
|
[Description("QR code scanner")] QRCode = 1, /// QR code
|
|
[Description("Keyboard")] Keyboard = 2, /// Data entered by a keyboard
|
|
[Description("OK/NOK manual entry")] OkNok = 3, /// OK/NOK or Yes/No data entered by a keyboard or a mouse
|
|
[Description("Complete S/N from DB")] SerialNr = 4, /// Complete serial number of iPERL (follows PcbNumber which is a reference part)
|
|
[Description("Camera")] Camera = 5,
|
|
[Description("Scale (mass)")] Scale = 6,
|
|
[Description("S/N generator/printer")] SNGenerator = 7,
|
|
[Description("S640 datastream")] DataStream = 8,
|
|
[Description("(spare 2)")] Spare2 = 9,
|
|
[Description("(spare 3)")] Spare3 = 10,
|
|
Count
|
|
}
|
|
|
|
public enum CodeLocation
|
|
{
|
|
OnPallet,
|
|
OnPart,
|
|
Count
|
|
}
|
|
|
|
public enum LifetimeManagement
|
|
{
|
|
None,
|
|
OneYear,
|
|
Count,
|
|
}
|
|
|
|
public enum ReleaseStatus
|
|
{
|
|
In_preparation, /// Process definition is not completed, cannot be used in production
|
|
ToBeApproved, /// Process is completed, protected against changes and waits for an approval
|
|
ReleasedActive, /// Process is ready for production, it is active = enabled
|
|
Released, /// Process is ready for production (completed, protected, approved), but it is inactive
|
|
Deactivated, /// Process was used in production but it was de-activated (should never be deleted as there are references to the process)
|
|
Separator, /// 'Process' is only a named separator between other process items
|
|
Count,
|
|
}
|
|
|
|
public enum Mode
|
|
{
|
|
Production, /// Stara Tura production DB is used
|
|
Test, /// Stara Tura test DB is used
|
|
ProductionLU, /// Ludwigshafen production DB is used
|
|
TestLU, /// Ludwigshafen test DB is used
|
|
NoWritesToDB, /// Stara Tura production DB - no writes to the database
|
|
Debug, /// Debug mode - no database used at all
|
|
Count,
|
|
}
|
|
|
|
public enum VerifState
|
|
{
|
|
Undefined = 0, /// Undefined (only used in OnActivity(..) when start/stop info message is issued)
|
|
SNisMissing, /// S/N is missing in the parsed record
|
|
SNisInvalid, /// S/N in the parsed record is invalid
|
|
NoRecordAtAll, /// No record with this S/N in tracing DB
|
|
VerificationIsDisabled, /// ...
|
|
NoVerificationForThisProcess,
|
|
VerificationPassed, /// Verification of a previous record passed
|
|
VerificationFailed, /// Verification of a previous record failed, no matching record found
|
|
TracingDBReadOrWriteFailed,
|
|
PrintingFailed,
|
|
}
|
|
} |