- Zeiterfassungseinträge mit ServiceDescription "Arbeitszeit" und "Pause" dürfen sich bei Kunde Synprax überschneiden - Bei Klienten werden jetzt auch die Organisationen des Umfelds angezeigt
75 lines
2.4 KiB
C#
75 lines
2.4 KiB
C#
using BS.Shared.DataContracts;
|
|
|
|
namespace BeWoPlanerMobil.Util
|
|
{
|
|
public class JsonOrganisation
|
|
{
|
|
public long? Customer2OrganisationOid { get; set; }
|
|
|
|
public string ContactPerson { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
public string Role { get; set; }
|
|
|
|
public string StreetName { get; set; }
|
|
public string ZipCode2Town { get; set; }
|
|
|
|
public string PhoneNumber { get; set; }
|
|
public string FaxNumber { get; set; }
|
|
public string Email { get; set; }
|
|
public string Website { get; set; }
|
|
|
|
public string Info { get; set; }
|
|
|
|
public string Notice { get; set; }
|
|
|
|
public string Address
|
|
{
|
|
get
|
|
{
|
|
var result = string.Empty;
|
|
|
|
if(!string.IsNullOrEmpty(StreetName))
|
|
{
|
|
result += StreetName;
|
|
if(!string.IsNullOrEmpty(ZipCode2Town))
|
|
{
|
|
result += "<br />";
|
|
}
|
|
}
|
|
|
|
if(!string.IsNullOrEmpty(ZipCode2Town))
|
|
{
|
|
result += ZipCode2Town;
|
|
}
|
|
|
|
return result;
|
|
}
|
|
}
|
|
|
|
public JsonOrganisation(CustomerOrganisationRelationDC customer2Organisation)
|
|
{
|
|
Customer2OrganisationOid = customer2Organisation.Customer2OrganisationOid;
|
|
|
|
ContactPerson = customer2Organisation.Person?.ToString() ?? string.Empty;
|
|
|
|
Name = customer2Organisation.Organisation.Name ?? string.Empty;
|
|
|
|
Role = customer2Organisation.RelationRole?.DisplayName ?? string.Empty;
|
|
|
|
StreetName = customer2Organisation.Organisation.Street ?? string.Empty;
|
|
|
|
ZipCode2Town = $"{customer2Organisation.Organisation.PostalCode ?? string.Empty} {customer2Organisation.Organisation.Town ?? string.Empty}";
|
|
|
|
PhoneNumber = customer2Organisation.Organisation.Communication1 ?? string.Empty;
|
|
FaxNumber = customer2Organisation.Organisation.Communication2 ?? string.Empty;
|
|
Email = customer2Organisation.Organisation.Communication3 ?? string.Empty;
|
|
Website = customer2Organisation.Organisation.Communication4 ?? string.Empty;
|
|
|
|
Info = customer2Organisation.Info1 ?? string.Empty;
|
|
|
|
Notice = customer2Organisation.Customer2OrganisationNotice ?? string.Empty;
|
|
}
|
|
}
|
|
} |