MH: Debugginginfos für Entities

This commit is contained in:
2024-12-30 16:09:20 +01:00
parent 6fafdc59ce
commit 94bfb1a594
16 changed files with 40 additions and 6 deletions

View File

@@ -1,7 +1,9 @@
using BS.Shared;
using System.Diagnostics;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{Type}: {Value}")]
public class Contact : BeWoEntityBase
{
public static string PropertyName_Type = "Type";

View File

@@ -4,9 +4,11 @@ using System.Linq;
using System.Text;
using System.Collections;
using BS.Shared;
using System.Diagnostics;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{EntryDate} {WeeklyDays} Tage {WeeklyTotalHours}h")]
public class Contract : BeWoEntityBase
{
public static string PropertyName_ProbationPeriod = "ProbationPeriod";

View File

@@ -1,11 +1,14 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{CostRateType} {CostRateValue}")]
public class CostRatePeriod : BeWoEntityBase
{
public static string PropertyName_CostRateType = "CostRateType";

View File

@@ -1,11 +1,12 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
using BS.Shared.Core;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{Person}")]
public class Customer : BeWoEntityBase
{
public static string PropertyName_AbsenceTimes = "AbsenceTimes";

View File

@@ -1,9 +1,12 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{Person}")]
public class Employee : BeWoEntityBase
{
public static string PropertyName_AbsenceTimes = "AbsenceTimes";

View File

@@ -1,10 +1,11 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{ItemDescription}: {AmountPerUnit} x {UnitCount} = {AmountTotal}")]
public class InvoiceItem : BeWoEntityBase
{
public static string PropertyName_AmountPerUnit = "AmountPerUnit";

View File

@@ -1,9 +1,10 @@
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{Name}")]
public class Organisation : BeWoEntityBase
{
public static string PropertyName_Address = "Address";

View File

@@ -1,10 +1,11 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{FirstNameLastName}")]
public class Person : BeWoEntityBase
{
public static string PropertyName_Abbreviation = "Abbreviation";

View File

@@ -1,10 +1,11 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{StartDate}: {DisplayName}")]
public class Rating : BeWoEntityBase
{
private IList<GoalRating> _GoalRatingList;

View File

@@ -1,9 +1,10 @@
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{DisplayName}")]
public class RatingType : BeWoEntityBase
{

View File

@@ -1,8 +1,10 @@
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{Name} ({ProzentAbrechnung}/{ProzentBudget}/{ProzentStundenkonto})")]
public class ServiceCategory : BeWoEntityBase
{
public static string PropertyName_Abbreviation = "Abbreviation";

View File

@@ -1,8 +1,10 @@
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{Name} ({ProzentAbrechnung}/{ProzentBudget}/{ProzentStundenkonto})")]
public class ServiceDescription : BeWoEntityBase
{
public static string PropertyName_Abbreviation = "Abbreviation";

View File

@@ -1,9 +1,12 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{Customer} {Start}-{End}")]
public class ServiceInvoicePeriod : BeWoEntityBase
{
public static string PropertyName_ApprovedAmountDefaultHourlyRate = "ApprovedAmountDefaultHourlyRate";

View File

@@ -1,9 +1,11 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{Customer.Person.LastNameFirstName} {Start}-{End} ({RoundedDuration}min)")]
public class ServiceRecord : BeWoEntityBase
{
public static string PropertyName_CostBearer2SupportConcept = "CostBearer2SupportConcept";
@@ -786,5 +788,10 @@ namespace BeWo.Data.Entities
}
}
}
//public override string ToString()
//{
// return string.Format("{0}", Customer.Person.LastNameFirstName);
//}
}
}

View File

@@ -1,9 +1,11 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{Customer} {StartDate}-{EndDate}")]
public class SupportConcept : BeWoEntityBase
{
public static string PropertyName_ApprovalDate = "ApprovalDate";

View File

@@ -1,10 +1,12 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using BS.Shared;
namespace BeWo.Data.Entities
{
[DebuggerDisplay("{StartDate}-{EndDate} {ApprovedBEPerInterval}/{ApprovedBETotal}")]
public class SupportConceptApprovalPeriod : BeWoEntityBase
{
public static string PropertyName_ApprovedBEInterval = "ApprovedBEInterval";