Files
BeWoPlaner/Service/XAMLInformation/InfoViaXAMLManager.cs

398 lines
26 KiB
C#

using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Service.DCEntityMapper;
using BeWo.Service.ServiceImplementations;
using BS.Shared.DataContracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Markup;
using System.Windows.Media;
namespace BeWo.Service.XAMLInformation
{
internal class InfoViaXAMLManager
{
public static string GetXAMLInformationStringForEmployee(long empOid, DateTime? datum)
{
var employee = DAOFactory.GenericDAO.GetByID<Employee>(empOid);
string xamlstring = "";
xamlstring = "<ScrollViewer xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' VerticalScrollBarVisibility='Auto' HorizontalScrollBarVisibility='auto'/>";
//return xamlstring;
#region Variablen setzen
//Geburtstag
var birthdayTimeAndDate = employee.Person.DateOfBirth.ToString().Split(' ');
//Qualifiziert
string qualifiziert = "nicht angegeben";
if (employee.IsQualified != null)
qualifiziert = ((bool)employee.IsQualified) ? "Ja" : "Nein";
//Wöchentl. FLS
string FLSWoche = "kein Vetrag angegeben";
if(employee.LastContract!= null)
{
double d = (employee.LastContract.WeeklyFLS != null) ? Convert.ToDouble(employee.LastContract.WeeklyFLS.Value) : 0;
FLSWoche = Math.Round(d, 2).ToString();
}
//Wöchentl. Stunden
string stundenWoche = "kein Vetrag angegeben";
if (employee.LastContract != null)
{
double d = (employee.LastContract.WeeklyTotalHours != null) ? Convert.ToDouble(employee.LastContract.WeeklyTotalHours.Value) : 0;
stundenWoche = Math.Round(d, 2).ToString();
}
//Monatl. FLS
string FLSMonat = "kein Vetrag angegeben";
if (employee.LastContract != null)
{
double d = (employee.LastContract.MonthlyFLS != null) ? Convert.ToDouble(employee.LastContract.MonthlyFLS.Value) : 0;
FLSMonat = Math.Round(d, 2).ToString();
}
//Monatl. Stunden
string stundenMonat = "kein Vetrag angegeben";
if (employee.LastContract != null)
{
double d = (employee.LastContract.MonthlyTotalHours != null) ? Convert.ToDouble(employee.LastContract.MonthlyTotalHours.Value) : 0;
stundenMonat = Math.Round(d, 2).ToString();
}
//Vetragsart
string vertragsart = "kein Vetrag angegeben";
if (employee.LastContract != null)
{
if (employee.LastContract.EmploymentType != null)
{
vertragsart = employee.LastContract.EmploymentType.Name;
}
else
vertragsart = "keine Vertragsart angegeben";
}
#endregion
xamlstring =
"<ScrollViewer xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' VerticalScrollBarVisibility='Auto' HorizontalScrollBarVisibility='auto'>" +
"<Grid xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'>" +
"<Grid.RowDefinitions>" +
"<RowDefinition Height=\"auto\"/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"</Grid.RowDefinitions>" +
"<Grid.ColumnDefinitions>" +
"<ColumnDefinition Width='auto'/>" +
"<ColumnDefinition Width='*'/>" +
"</Grid.ColumnDefinitions>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='0' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Vollständiger Name</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='0' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + employee.Person.FirstNameLastName + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='1' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Geburtstag</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='1' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + birthdayTimeAndDate[0] + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='2' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Qualifiziert</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='2' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + qualifiziert + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='3' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Mitarbeiternummer</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='3' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + employee.PersonnelNumber + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='4' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Vertragsart</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='4' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + vertragsart + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='5' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>FLS pro Woche</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='5' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + FLSWoche + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='6' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Stunden pro Woche</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='6' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + stundenWoche + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='7' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>FLS pro Monat</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='7' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + FLSMonat + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='8' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Stunden pro Monat</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='8' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + stundenMonat + "</Label>" +
"</Grid>" +
"</ScrollViewer>";
return xamlstring;
}
public static string GetXAMLInformationStringForCustomer(long customerOid, DateTime? datum)
{
var customer = DAOFactory.GenericDAO.GetByID<Customer>(customerOid);
string xamlstring = "";
xamlstring = "<ScrollViewer xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' VerticalScrollBarVisibility='Auto' HorizontalScrollBarVisibility='auto'/>";
return xamlstring;
#region Variablen setzen
string ort = "";
if (customer.Person.Address != null)
{
if (customer.Person.Address.PostalCode != null)
ort += customer.Person.Address.PostalCode;
if (customer.Person.Address.Town != null)
ort += ort.Equals("") ? customer.Person.Address.Town : " " + customer.Person.Address.Town;
}
else
ort += "keine Angabe";
var ansprechpartnerLabel = BS.Shared.Translation.Translator.Translate("Ansprechpartner");
#endregion
xamlstring =
"<ScrollViewer xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' VerticalScrollBarVisibility='Auto' HorizontalScrollBarVisibility='auto'>" +
"<Grid xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'>" +
"<Grid.RowDefinitions>" +
"<RowDefinition Height=\"auto\"/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"</Grid.RowDefinitions>" +
"<Grid.ColumnDefinitions>" +
"<ColumnDefinition Width='auto'/>" +
"<ColumnDefinition Width='*'/>" +
"</Grid.ColumnDefinitions>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='0' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>" + ansprechpartnerLabel + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='0' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + ((customer.Ansprechpartner != null) ? customer.Ansprechpartner.FirstNameLastName : "keine Angabe") + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='1' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Ausweis Aktenzeichen</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='1' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + ((customer.AusweisAktenzeichen != null) ? customer.AusweisAktenzeichen : "keine Angabe") + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='2' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Grad der Behinderung</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='2' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + ((customer.GradDerBehinderung != null) ? customer.GradDerBehinderung : "keine Angabe") + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='3' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Hygienebelehrung</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='3' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + ((customer.Hygienebelehrung) ? "Ja" : "Nein") + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='4' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Ort</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='4' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + ort + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='5' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Medikation</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='5' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + ((customer.Medication != null) ? customer.Medication : "keine Angabe") + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='6' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Schutzstufe</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='6' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + ((customer.Schutzstufe != null) ? customer.Schutzstufe : "keine") + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='7' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Vertretung dringend erforderlich</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='7' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + (customer.VertretungDringendErforderlich ? "Ja" : "Nein") + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='8' Grid.Column='0' Background='Transparent' " +
"Margin='5' FontSize='14'>Vertretung gewünscht</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='8' Grid.Column='1' Background='Transparent' " +
"Margin='5' FontSize='14'>" + (customer.VertretungGewuenscht ? "Ja" : "Nein") + "</Label>" +
"</Grid>" +
"</ScrollViewer>";
return xamlstring;
}
public static string GetXAMLInformationStringForUrlaubsplaner(UrlaubskontoDC konto, decimal tageUrlaub, decimal tageKrank, bool urlaubVerfallen)
{
decimal verfalleneTage = urlaubVerfallen ? konto.VerfallenerUrlaub : 0;
string xamlstring =
"<ScrollViewer xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' VerticalScrollBarVisibility='Auto' HorizontalScrollBarVisibility='auto'>" +
"<Grid xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'>" +
"<Grid.RowDefinitions>" +
"<RowDefinition Height=\"auto\"/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"<RowDefinition Height='auto'/>" +
"</Grid.RowDefinitions>" +
"<Grid.ColumnDefinitions>" +
"<ColumnDefinition Width='auto'/>" +
"<ColumnDefinition Width='*'/>" +
"</Grid.ColumnDefinitions>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='0' Grid.Column='0' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>Resturlaub Vorjahr:</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='0' Grid.Column='1' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>" + konto.ResturlaubVorjahr.ToString("0.00") + " Tage" + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='1' Grid.Column='0' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>Urlaubsanspruch Vorjahr:</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='1' Grid.Column='1' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>" + konto.ResturlaubVorjahrTotal.ToString("0.00") + " Tage" + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='2' Grid.Column='0' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>Resturlaub</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='2' Grid.Column='1' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>" + konto.Resturlaub.ToString("0.00") + " Tage" + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='3' Grid.Column='0' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>Urlaubsanspruch</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='3' Grid.Column='1' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>" + konto.Urlaubsanspruch.ToString("0.00") + " Tage" + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='4' Grid.Column='0' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>Tage Urlaub</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='4' Grid.Column='1' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>" + tageUrlaub + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='5' Grid.Column='0' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>Tage krank</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='5' Grid.Column='1' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>" + tageKrank + "</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='6' Grid.Column='0' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>Verfallener Urlaub</Label>" +
"<Label xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Row='6' Grid.Column='1' Background='Transparent' " +
"Margin='5 0 5 0' FontSize='14'>" + verfalleneTage.ToString("0.00") + " Tage" + "</Label>" +
"</Grid>" +
"</ScrollViewer>";
return xamlstring;
}
public static string GetXAMLInformationStringForScheduler(long customerOid)
{
#region Daten zusammensammeln
var analysisService = new AnalysisServiceImp();
List<long> empOids = new List<long>();
List<SupportConceptOverviewDC> alleAnalysen = new List<SupportConceptOverviewDC>();
var allSupportConcepts = MapperFactory.SupportConceptDC_SupportConcept.MapToNewDCs(DAOFactory.GenericDAO.GetAllActive<SupportConcept>());
foreach (var sc in allSupportConcepts)
{
if (sc.Customer.Oid == customerOid && !empOids.Contains(sc.Originator.EmployeeOid))
empOids.Add(sc.Originator.EmployeeOid);
}
foreach (var oid in empOids)
{
alleAnalysen.AddRange(analysisService.GetSupportConceptAnalysis2(oid, null, null, null, false));
}
List<SupportConceptOverviewDC> analysenFuerKlient = new List<SupportConceptOverviewDC>();
analysenFuerKlient.AddRange(alleAnalysen.Where(a => a.CustomerOid == customerOid).ToList());
// Doppelte entfernen
List<long> scOids = new List<long>();
List<long> c2scOids = new List<long>();
for (int i = analysenFuerKlient.Count - 1; i >= 0; i--)
{
if (scOids.Contains(analysenFuerKlient[i].SupportConceptOid))
{
if (c2scOids.Contains(analysenFuerKlient[i].CostBearer2SupportConceptOid))
{
analysenFuerKlient.RemoveAt(i);
continue;
}
}
scOids.Add(analysenFuerKlient[i].SupportConceptOid);
c2scOids.Add(analysenFuerKlient[i].CostBearer2SupportConceptOid);
}
// Sortieren nach z.B. Hilfeplanstartdatum
analysenFuerKlient = analysenFuerKlient.OrderBy(a => a.ApprovedStartDate).ToList();
#endregion
string xamlString = "<ScrollViewer xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' VerticalScrollBarVisibility='Auto' HorizontalScrollBarVisibility='auto'>" +
"<Grid Grid.Column='0' xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'><Grid.ColumnDefinitions><ColumnDefinition Width='auto'/>" +
"<ColumnDefinition Width='auto'/></Grid.ColumnDefinitions>" +
"<Grid.RowDefinitions>";
// Wenn keine Einträge/Analysen vorhanden sind
if (analysenFuerKlient.Count == 0)
{
xamlString += "<RowDefinition Height='30'/></Grid.RowDefinitions>";
xamlString += "<TextBlock xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Column='0' Margin='5' HorizontalAlignment='Left' VerticalAlignment='Center' Foreground='Black' " +
"Text='Es ist keine Hilfeplanübersicht für diesen Klienten / diese Klientin verfügbar.' FontSize='14' Grid.Row='0'/>";
xamlString += "</Grid></ScrollViewer>";
return xamlString;
}
foreach (var item in analysenFuerKlient)
{
xamlString += "<RowDefinition Height='30'/>";
}
xamlString += "</Grid.RowDefinitions>";
int row = 0;
foreach (var item in analysenFuerKlient)
{
string percent = string.Format("{0:0.00}", item.FLSRecordedTillNowInPercent);
percent = percent.Replace(',', '.');
// Label
xamlString += "<TextBlock xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Column='0' Margin='5' HorizontalAlignment='Left' VerticalAlignment='Center' Foreground='Black' Text='" +
string.Format("{0} ({1:MM/yy} - {2:MM/yy})", item.CostBearer, item.ApprovedStartDate, item.ApprovedEndDate) + "' Grid.Row='" + row + "'/>";
// ProgressBar
xamlString += "<ProgressBar xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Column='1' Minimum='0' Maximum='100' Margin='5' Width='180' Height='30' HorizontalAlignment='Left' " +
"VerticalAlignment='Center' Value='" + percent + "' Grid.Row='" + row + "'/>";
// Label auf dem ProgressBar
xamlString += "<TextBlock xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Grid.Column='1' HorizontalAlignment='Center' VerticalAlignment='Center' Margin='5' Foreground='Black' FontSize='10' " +
"Text='" + string.Format("{0:0.00}% ({1:0.00} / {2:0.00})", item.FLSRecordedTillNowInPercent, item.FLSRecordedTillNow, item.FLSApprovedTillNow) +
"' Grid.Row='" + row + "'/>";
row++;
}
xamlString += "</Grid></ScrollViewer>";
return xamlString;
}
}
}