41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
///
|
|
/// Copyright (c) 2016 Sensus Slovensko a.s.
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Workplace
|
|
{
|
|
public interface ICheckItem
|
|
{
|
|
/// <summary>
|
|
/// Part to be scanned / checked
|
|
/// </summary>
|
|
SharedDatabase.Entities.Part Part { get; }
|
|
|
|
/// <summary>
|
|
/// ID of a part in this workstep:
|
|
/// 0 undefined
|
|
/// 1 reference part
|
|
/// 2..99 parts with unique codes
|
|
/// 100.. parts with batch numbers
|
|
/// </summary>
|
|
int IxPolozky { get; set; }
|
|
|
|
/// <summary>
|
|
/// List of forbidden black listed codes
|
|
/// </summary>
|
|
IList<string> BlackListedCodes { get; set; }
|
|
|
|
/// <summary>
|
|
/// Scanned or obtained code of the part
|
|
/// </summary>
|
|
string ScannedCode { get; set; } /// Read/Set the scanned code
|
|
|
|
void ClearCode(); /// Clear the code
|
|
void SubmitCode(string code); /// Set the code and proceed like enter button is pressed
|
|
void ResetFocus();
|
|
void SetFocus();
|
|
}
|
|
}
|