33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
///
|
|
/// Copyright (c) 2019 Sensus Slovensko a.s.
|
|
///
|
|
using System;
|
|
|
|
namespace RecordProcessing
|
|
{
|
|
public interface IRecord
|
|
{
|
|
string FileName { get; }
|
|
string SN { get; set; } /// Only RF Test implements 'set' (400 and 900 MHz)
|
|
DateTime TimeStamp { get; }
|
|
Status Status { get; }
|
|
string ResultStr { get; }
|
|
string Remark { get; } /// Optional remark
|
|
|
|
/// <returns> true when class implementing IRecord can be saved to Oracle DB </returns>
|
|
bool CanSaveRecordToOracle();
|
|
|
|
/// <summary> Save test result into Oracle DB </summary>
|
|
/// <param name="oraConn"> Oracle DB connection </param>
|
|
/// <returns> true = Result was successfully saved to DB </returns>
|
|
bool SaveRecordToOracle(Oracle.DataAccess.Client.OracleConnection oraConn);
|
|
|
|
/// <returns> true when class implementing IRecord can be printed on a printer </returns>
|
|
bool CanPrintRecord();
|
|
|
|
/// <summary> Print result on the default printer </summary>
|
|
/// <returns> true = Result was successfully printed </returns>
|
|
bool PrintRecord();
|
|
}
|
|
}
|