This commit is contained in:
@@ -20,7 +20,7 @@ namespace AyaNova.Models
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
[Required]
|
||||
public DateTime EntryDate { get; set; }
|
||||
public DateTime EntryDate { get; set; }
|
||||
public DateTime? LastEntryDate { get; set; }
|
||||
[Required]
|
||||
public long ObjectId { get; set; }
|
||||
@@ -33,17 +33,17 @@ namespace AyaNova.Models
|
||||
[Required]
|
||||
public decimal Incidents { get; set; }
|
||||
[Required]
|
||||
public decimal IncidentsBalance { get; set; }
|
||||
public decimal IncidentsBalance { get; set; }
|
||||
public decimal? LastIncidentsBalance { get; set; }
|
||||
[Required]
|
||||
public decimal Currency { get; set; }
|
||||
[Required]
|
||||
public decimal CurrencyBalance { get; set; }
|
||||
public decimal CurrencyBalance { get; set; }
|
||||
public decimal? LastCurrencyBalance { get; set; }
|
||||
[Required]
|
||||
public decimal Hours { get; set; }
|
||||
[Required]
|
||||
public decimal HoursBalance { get; set; }
|
||||
public decimal HoursBalance { get; set; }
|
||||
public decimal? LastHoursBalance { get; set; }
|
||||
|
||||
|
||||
@@ -57,6 +57,38 @@ namespace AyaNova.Models
|
||||
|
||||
}//eoc
|
||||
|
||||
|
||||
|
||||
|
||||
//Data transfer version used by UI to make new entry or consume banked time
|
||||
//this way the client doesn't need to bother with balances or last entries and such
|
||||
public class dtServiceBank
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
[Required]
|
||||
public long ObjectId { get; set; }
|
||||
[Required]
|
||||
public AyaType ObjectType { get; set; }
|
||||
[Required]
|
||||
public long SourceId { get; set; }
|
||||
[Required]
|
||||
public AyaType SourceType { get; set; }
|
||||
[Required]
|
||||
public decimal Incidents { get; set; }
|
||||
[Required]
|
||||
public decimal Currency { get; set; }
|
||||
[Required]
|
||||
public decimal Hours { get; set; }
|
||||
|
||||
|
||||
|
||||
}//eoc
|
||||
|
||||
|
||||
}//eons
|
||||
/*
|
||||
CREATE TABLE [dbo].[ASERVICEBANK](
|
||||
|
||||
Reference in New Issue
Block a user