forked from ddrilling/AsbCloudServer
133 lines
5.0 KiB
C#
133 lines
5.0 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace AsbCloudApp.Data.WITS;
|
|
|
|
/// <summary>
|
|
/// This is base class for all WITS-0 records
|
|
/// </summary>
|
|
public abstract class RecordBaseDto : IId, ITelemetryData
|
|
{
|
|
/// <inheritdoc/>
|
|
[Required]
|
|
public int Id { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
public int IdTelemetry { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
[Required]
|
|
public DateTime DateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// отметка времени
|
|
/// </summary>
|
|
[Required]
|
|
public int TimeStamp { get; set; }
|
|
|
|
/// <summary>
|
|
/// RecordId = 1,
|
|
/// ItemId = 1,
|
|
/// LongMnemonic = "WELLID",
|
|
/// ShortMnemonic = "WID",
|
|
/// Description = "Well Identifier",
|
|
/// Description2 = "Number/name assigned to the well by the operator for identification purposes. This item is common to all records. This includes a four-character code identifying the SENDER.",
|
|
/// FPSUnits = "----",
|
|
/// MetricUnits = "----",
|
|
/// Length = 16,
|
|
/// ValueType = "A"
|
|
/// </summary>
|
|
[Required]
|
|
public string Wellid { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// RecordId = 1,
|
|
/// ItemId = 2,
|
|
/// LongMnemonic = "STKNUM",
|
|
/// ShortMnemonic = "SKNO",
|
|
/// Description = "Sidetrack/Hole Sect No.",
|
|
/// Description2 = "Measured depth of the hole at the time the record is generated.",
|
|
/// FPSUnits = "----",
|
|
/// MetricUnits = "----",
|
|
/// Length = 2,
|
|
/// ValueType = "S"
|
|
/// </summary>
|
|
|
|
public short? Stknum { get; set; }
|
|
|
|
/// <summary>
|
|
/// RecordId = 1,
|
|
/// ItemId = 3,
|
|
/// LongMnemonic = "RECID",
|
|
/// ShortMnemonic = "RID",
|
|
/// Description = "Record Identifier",
|
|
/// Description2 = "Number of the sidetrack being drilled at the time the computer generated the record. Prior to having a sidetrack, this number is always 0. The sidetrack number indexes at the time drilling new formation commences (not while drilling the cement plug). This item is common to all records.",
|
|
/// FPSUnits = "----",
|
|
/// MetricUnits = "----",
|
|
/// Length = 2,
|
|
/// ValueType = "S"
|
|
/// </summary>
|
|
|
|
public short? Recid { get; set; }
|
|
|
|
/// <summary>
|
|
/// RecordId = 1,
|
|
/// ItemId = 4,
|
|
/// LongMnemonic = "SEQID",
|
|
/// ShortMnemonic = "SQID",
|
|
/// Description = "Sequence Identifier",
|
|
/// Description2 = "Logical data record type identifier. This item is common to all records and, for current Pre-Defined Records, contains a value between 1 and 25, according to the record type. Types 26 through 49 inclusive are reserved for future expansion of the Pre-Defined records. Types 50 through 80 inclusive are open for Custom user definition. NOTE that the Logical Record Type for a record is this number plus 150, thus WITS Record 1 is Logical Record Type 151, WITS Record 2 is Logical Record Type 152, etc.",
|
|
/// FPSUnits = "----",
|
|
/// MetricUnits = "----",
|
|
/// Length = 4,
|
|
/// ValueType = "L"
|
|
/// </summary>
|
|
|
|
public int? Seqid { get; set; }
|
|
|
|
/// <summary>
|
|
/// RecordId = 1,
|
|
/// ItemId = 5,
|
|
/// LongMnemonic = "DATE",
|
|
/// ShortMnemonic = "DATE",
|
|
/// Description = "Date",
|
|
/// Description2 = "Indicates the number of times this record has been generated (it is not reset to zero for a sidetrack). The computer should automatically increase the number by one each time it creates a new record. This item is common to all records. The sequence identifier in each individual record type keeps track of the count for that particular record only. Thus there is a sequence identifier for each record type used.",
|
|
/// FPSUnits = "----",
|
|
/// MetricUnits = "----",
|
|
/// Length = 4,
|
|
/// ValueType = "L"
|
|
/// </summary>
|
|
|
|
public int? Date_ { get; set; }
|
|
|
|
/// <summary>
|
|
/// RecordId = 1,
|
|
/// ItemId = 6,
|
|
/// LongMnemonic = "TIME",
|
|
/// ShortMnemonic = "TIME",
|
|
/// Description = "Time",
|
|
/// Description2 = "Indicates the date the computer generated this record. The date is reported as a 6 digit integer in a YYMMDD type format. e.g. 910404 would represent April 4, 1991. It is common to all records. Note that, like Time below, Universal Coordinated Time (Greenwich Mean Time) is used as the common reference. Note also that though this number should never decrease, there is no guarantee of this fact.",
|
|
/// FPSUnits = "----",
|
|
/// MetricUnits = "----",
|
|
/// Length = 4,
|
|
/// ValueType = "L"
|
|
/// </summary>
|
|
|
|
public int? Time { get; set; }
|
|
|
|
/// <summary>
|
|
/// RecordId = 1,
|
|
/// ItemId = 7,
|
|
/// LongMnemonic = "ACTCOD",
|
|
/// ShortMnemonic = "ACTC",
|
|
/// Description = "Activity Code",
|
|
/// Description2 = "Indicates the time of day (24 hour clock), when the computer generated the record, eg. 225015 would represent 10:50:15 pm. This item is common to all records. Note that, like Date above, Universal Coordinated Time (Greenwich Mean Time) is used as the common reference.",
|
|
/// FPSUnits = "----",
|
|
/// MetricUnits = "----",
|
|
/// Length = 2,
|
|
/// ValueType = "S"
|
|
/// </summary>
|
|
|
|
public short? Actcod { get; set; }
|
|
}
|