63 lines
1.8 KiB
C#
63 lines
1.8 KiB
C#
using System;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Core;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses.ImportCo
|
|
{
|
|
public class BaseImportJsonItemCo
|
|
{
|
|
private readonly int _tanevId;
|
|
private readonly int _intezmenyId;
|
|
private readonly int _felhasznaloId;
|
|
|
|
public BaseImportJsonItemCo(int tanevId, int intezmenyId, int felhasznaloId)
|
|
{
|
|
_tanevId = tanevId;
|
|
_intezmenyId = intezmenyId;
|
|
_felhasznaloId = felhasznaloId;
|
|
}
|
|
|
|
[JsonProperty("ID")]
|
|
public int? Id;
|
|
|
|
[JsonProperty("C_IMPORTALT")]
|
|
public string Importalt => SDAConvert.ToSDABoolean(true);
|
|
|
|
[JsonProperty("C_INTEZMENYID")]
|
|
public int IntezmenyId => _intezmenyId;
|
|
|
|
[JsonProperty("C_TANEVID")]
|
|
public int TanevId => _tanevId;
|
|
|
|
[JsonProperty("TOROLT")]
|
|
public string Torolt => SDAConvert.ToSDABoolean(false);
|
|
|
|
[JsonProperty("SERIAL")]
|
|
public int? Serial => 0;
|
|
|
|
[JsonProperty("LASTCHANGED")]
|
|
public string LastChanged => Now.ToString(Constants.ToStringPattern.SortableDateTimePattern);
|
|
|
|
[JsonProperty("CREATED")]
|
|
public string Created => Now.ToString(Constants.ToStringPattern.SortableDateTimePattern);
|
|
|
|
[JsonProperty("MODIFIER")]
|
|
public int Modifier => _felhasznaloId;
|
|
|
|
[JsonProperty("CREATOR")]
|
|
public int Creator => _felhasznaloId;
|
|
|
|
[JsonProperty("ELOZOTANEVIREKORDID")]
|
|
public int? ElozoTaneviRekordId => null;
|
|
|
|
[JsonProperty("Operation")]
|
|
public int Operation { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public DateTime Now { get; set; } = DateTime.Now;
|
|
|
|
[JsonIgnore]
|
|
public int LineNumber { get; set; }
|
|
}
|
|
}
|