MH: LebenszentrumKönigsborn QB
This commit is contained in:
@@ -2,7 +2,10 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Report;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BS.Shared.Core;
|
||||
@@ -37,6 +40,13 @@ namespace LebenszentrumKoenigsborn
|
||||
{
|
||||
if (sd.IsBillable || sd.ServiceDescription.ToLower().Contains("fehlkontakt") || sd.ServiceCategory.ToLower().Contains("fehlkontakt"))
|
||||
{
|
||||
// Bei einer Gruppe den originalen SR ziehen, damit alle MA in der Buchung mit angezeigt werden können
|
||||
if (sd.IsGroup && sd.EmployeeCount > 1)
|
||||
{
|
||||
var sr = DAOFactory.GenericDAO.GetByID<ServiceRecord>(sd.ServiceRecordOid);
|
||||
sd.EmployeeFullname = string.Join(", ", sr.Group.ServiceRecordList.Select(s => s.Employee.Person.FirstNameLastName.Trim()).Distinct());
|
||||
}
|
||||
|
||||
ServicesOverviewRO.CreateSignatureString(sd);
|
||||
if (!sd.ServiceDescription.ToLower().Contains("mobil"))
|
||||
{
|
||||
@@ -73,7 +83,7 @@ namespace LebenszentrumKoenigsborn
|
||||
{
|
||||
var base64Data = Regex.Match(base64String, @"data:image/(?<type>.+?),(?<data>.+)").Groups["data"].Value;
|
||||
var binData = Convert.FromBase64String(base64Data);
|
||||
Image img = ByteArrayToImage(binData);
|
||||
System.Drawing.Image img = ByteArrayToImage(binData);
|
||||
xrBox.Image = Utils.CropImage(img);
|
||||
}
|
||||
else
|
||||
@@ -82,11 +92,11 @@ namespace LebenszentrumKoenigsborn
|
||||
}
|
||||
}
|
||||
|
||||
public Image ByteArrayToImage(byte[] byteArrayIn)
|
||||
public System.Drawing.Image ByteArrayToImage(byte[] byteArrayIn)
|
||||
{
|
||||
using(var memoryStream = new MemoryStream(byteArrayIn))
|
||||
{
|
||||
return Image.FromStream(memoryStream);
|
||||
return System.Drawing.Image.FromStream(memoryStream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ namespace LebenszentrumKoenigsborn
|
||||
this.xrTableCell13.Text = "xrTableCell13";
|
||||
this.xrTableCell13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
|
||||
this.xrTableCell13.TextFormatString = "{0:dd.MM.yyyy}";
|
||||
this.xrTableCell13.Weight = 0.17422193999462621D;
|
||||
this.xrTableCell13.Weight = 0.17435126058784595D;
|
||||
//
|
||||
// xrTableCell15
|
||||
//
|
||||
@@ -189,7 +189,7 @@ namespace LebenszentrumKoenigsborn
|
||||
this.xrTableCell15.StylePriority.UsePadding = false;
|
||||
this.xrTableCell15.StylePriority.UseTextAlignment = false;
|
||||
this.xrTableCell15.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
|
||||
this.xrTableCell15.Weight = 0.12904132943584973D;
|
||||
this.xrTableCell15.Weight = 0.12891200884263D;
|
||||
//
|
||||
// xrTableCell17
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user