diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj
index eb152e13b..6f17efee4 100644
--- a/BeWo/BeWo.csproj
+++ b/BeWo/BeWo.csproj
@@ -272,6 +272,10 @@
MSBuild:Compile
Designer
+
+ Designer
+ MSBuild:Compile
+
Designer
MSBuild:Compile
@@ -428,7 +432,7 @@
MSBuild:Compile
Designer
-
+
Designer
MSBuild:Compile
@@ -557,6 +561,7 @@
+
EnterTenantDialog.xaml
@@ -698,7 +703,7 @@
-
+
@@ -723,7 +728,7 @@
-
+
BargeldkassenView.xaml
@@ -734,6 +739,9 @@
ChatProgressBarView.xaml
+
+ TextModuleTreeViewControl.xaml
+
ServiceRecordRTFWindowView.xaml
@@ -857,8 +865,8 @@
MedikamentenverordnungslistenEditView.xaml
-
- TextbausteinView.xaml
+
+ TextModuleView.xaml
ChatView.xaml
@@ -920,7 +928,7 @@
ResourcesTreeSearchView.xaml
-
+
SupportEMailControl.xaml
@@ -933,6 +941,7 @@
ReportView.xaml
+
diff --git a/BeWo/Converter/BoolReverseConverter.cs b/BeWo/Converter/BoolReverseConverter.cs
index 596d58877..022d53c7e 100644
--- a/BeWo/Converter/BoolReverseConverter.cs
+++ b/BeWo/Converter/BoolReverseConverter.cs
@@ -10,7 +10,7 @@ namespace BeWo.Converter
{
if (value is bool)
{
- return !((bool) value);
+ return !(bool) value;
}
return false;
diff --git a/BeWo/Converter/BoolVisibilityConverter.cs b/BeWo/Converter/BoolVisibilityConverter.cs
index ce68fff68..608be9519 100644
--- a/BeWo/Converter/BoolVisibilityConverter.cs
+++ b/BeWo/Converter/BoolVisibilityConverter.cs
@@ -14,18 +14,19 @@ namespace BeWo.Converter
return Visibility.Visible;
}
- bool lMode = true;
- if (parameter is string)
+ var lMode = true;
+ var s = parameter as string;
+ if (s != null)
{
- bool.TryParse((string) parameter, out lMode);
+ bool.TryParse(s, out lMode);
}
if (lMode)
{
- return (!(bool)value) ? Visibility.Collapsed : Visibility.Visible;
+ return !(bool)value ? Visibility.Collapsed : Visibility.Visible;
}
- return ((bool)value) ? Visibility.Collapsed : Visibility.Visible;
+ return (bool)value ? Visibility.Collapsed : Visibility.Visible;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
diff --git a/BeWo/Core/Service/GoalService.cs b/BeWo/Core/Service/GoalService.cs
index a0fdc781f..40db6eebc 100644
--- a/BeWo/Core/Service/GoalService.cs
+++ b/BeWo/Core/Service/GoalService.cs
@@ -14,7 +14,7 @@ namespace BeWo.Core.Service
{
public static List GetGoalTree(IEnumerable goalCategories, List indGoalCategories, List pAllGoals, bool removeEmptyGoalCategories)
{
- List allCategories = new List();
+ var allCategories = new List();
if (goalCategories != null && pAllGoals != null && pAllGoals.Count > 0)
{
foreach (var goalCat in goalCategories)
@@ -41,8 +41,6 @@ namespace BeWo.Core.Service
}
}
-
-
var sortedCategories = allCategories.OrderBy(s => s.TypeDescription).ToList();
var sortedGoals = pAllGoals.OrderBy(s => s.TypeDescription).ToList();
@@ -122,12 +120,15 @@ namespace BeWo.Core.Service
private static void RemoveCategoriesWithoutSelectedGoals(ICollection goalList, List sortedGoals)
{
var cats2Remove = new List();
+
foreach (var cat in goalList)
{
RemoveCategoriesWithoutSelectedGoals(cat.Children, sortedGoals);
if (!ContainsAnyGoal(cat, sortedGoals))
+ {
cats2Remove.Add(cat);
+ }
}
foreach (var cat in cats2Remove)
@@ -136,7 +137,6 @@ namespace BeWo.Core.Service
}
}
-
private static bool ContainsAnyGoal(SupportConceptGoalDC cat, IEnumerable goals)
{
foreach (var goal in goals)
@@ -271,6 +271,7 @@ namespace BeWo.Core.Service
}
private static List InsertedGoals;
+
public static IEnumerable SaveIndividualGoalsAndMassnahmenRecursively(SupportConceptGoalTreeItem treeItem)
{
InsertedGoals = new List();
diff --git a/BeWo/Core/Service/SupportConceptService.cs b/BeWo/Core/Service/SupportConceptService.cs
index e3a5d25e4..b91d3e9b0 100644
--- a/BeWo/Core/Service/SupportConceptService.cs
+++ b/BeWo/Core/Service/SupportConceptService.cs
@@ -174,89 +174,92 @@ namespace BeWo.Core.Service
}
}
- public static List CreateServiceTree(IList serviceCategories, IList serviceDescriptions, IList serviceAccountings)
- {
- List treeList = new List();
+ public static List CreateServiceTree(IList serviceCategories, IList serviceDescriptions, IList serviceAccountings)
+ {
+ var treeList = new List();
- if (serviceCategories != null && serviceDescriptions != null)
- {
- List sortedCategories = serviceCategories.Where(sd => !sd.OhneHilfeplan.HasValue ||sd.OhneHilfeplan.Value == AccountingvisibilityType.Beides || sd.OhneHilfeplan.Value == AccountingvisibilityType.NurKlientenbezogen).OrderBy(s => s.Name).ToList();
- List serviceAccountingsCopy = new List();
- List descriptions = serviceDescriptions.OrderBy(s => s.Name).ToList();
+ if(serviceCategories != null && serviceDescriptions != null)
+ {
+ var sortedCategories = serviceCategories.Where(sd => !sd.OhneHilfeplan.HasValue || sd.OhneHilfeplan.Value == AccountingvisibilityType.Beides || sd.OhneHilfeplan.Value == AccountingvisibilityType.NurKlientenbezogen).OrderBy(s => s.Name).ToList();
+ var serviceAccountingsCopy = new List();
+ var descriptions = serviceDescriptions.OrderBy(s => s.Name).ToList();
- if (serviceAccountings != null)
- {
- foreach (var serviceAccountingDc in serviceAccountings)
- {
- descriptions.Remove(serviceAccountingDc.ServiceDescription);
- serviceAccountingsCopy.Add(serviceAccountingDc);
- }
- }
+ if(serviceAccountings != null)
+ {
+ foreach(var serviceAccountingDc in serviceAccountings)
+ {
+ descriptions.Remove(serviceAccountingDc.ServiceDescription);
+ serviceAccountingsCopy.Add(serviceAccountingDc);
+ }
+ }
- foreach (var serviceDescriptionDc in descriptions)
- {
- ServiceAccountingDC accountingDc = new ServiceAccountingDC();
- accountingDc.ServiceDescription = serviceDescriptionDc;
+ foreach(var serviceDescriptionDc in descriptions)
+ {
+ var accountingDc = new ServiceAccountingDC();
+ accountingDc.ServiceDescription = serviceDescriptionDc;
- serviceAccountingsCopy.Add(accountingDc);
- }
- List sortedAccountings = serviceAccountingsCopy.OrderBy(acc => acc.ServiceDescription.Name).ToList();
+ serviceAccountingsCopy.Add(accountingDc);
+ }
- Dictionary categoryDict = new Dictionary();
+ var sortedAccountings = serviceAccountingsCopy.OrderBy(acc => acc.ServiceDescription.Name).ToList();
- foreach (ServiceCategoryDC category in sortedCategories)
- {
- ServiceCategoryTreeItem treeItem = new ServiceCategoryTreeItem();
- treeItem.ServiceCategory = category;
- treeItem.IsExpanded = true;
- categoryDict.Add(category.ServiceCategoryOid.Value, treeItem);
- treeList.Add(treeItem);
- }
+ var categoryDict = new Dictionary();
- foreach (ServiceAccountingDC sa in sortedAccountings)
- {
- ServiceCategoryTreeItem childItem = new ServiceCategoryTreeItem();
- childItem.ServiceAccounting = sa;
+ foreach(var category in sortedCategories)
+ {
+ var treeItem = new ServiceCategoryTreeItem
+ {
+ ServiceCategory = category,
+ IsExpanded = true
+ };
- if (sa.ServiceDescription.Category != null && categoryDict.ContainsKey(sa.ServiceDescription.Category.ServiceCategoryOid.Value))
- {
- ServiceCategoryTreeItem parentItem = categoryDict[sa.ServiceDescription.Category.ServiceCategoryOid.Value];
- childItem.Parent = parentItem;
+ categoryDict.Add(category.ServiceCategoryOid.Value, treeItem);
+ treeList.Add(treeItem);
+ }
- //if (selectedDescriptions != null)
- //{
- // foreach (var existingSd in selectedDescriptions)
- // {
- // if (existingSd.Equals(sd))
- // {
- // childItem.IsChecked = true;
- // }
- // }
+ foreach(var sa in sortedAccountings)
+ {
+ var childItem = new ServiceCategoryTreeItem {ServiceAccounting = sa};
- // childItem.PropertyChanged += (s, e) =>
- // {
- // ServiceCategoryTreeItem selectedSd = s as ServiceCategoryTreeItem;
- // if (selectedSd != null && selectedSd.ServiceDescription != null)
- // {
- // if (selectedSd.IsChecked)
- // {
- // selectedDescriptions.Add(selectedSd.ServiceDescription);
- // }
- // else
- // {
- // selectedDescriptions.Remove(selectedSd.ServiceDescription);
- // }
- // }
- // };
- //}
+ if(sa.ServiceDescription.Category != null && categoryDict.ContainsKey(sa.ServiceDescription.Category.ServiceCategoryOid.Value))
+ {
+ var parentItem = categoryDict[sa.ServiceDescription.Category.ServiceCategoryOid.Value];
+ childItem.Parent = parentItem;
- parentItem.Children.Add(childItem);
- }
- }
- }
+ //if (selectedDescriptions != null)
+ //{
+ // foreach (var existingSd in selectedDescriptions)
+ // {
+ // if (existingSd.Equals(sd))
+ // {
+ // childItem.IsChecked = true;
+ // }
+ // }
- return treeList;
- }
+ // childItem.PropertyChanged += (s, e) =>
+ // {
+ // ServiceCategoryTreeItem selectedSd = s as ServiceCategoryTreeItem;
+ // if (selectedSd != null && selectedSd.ServiceDescription != null)
+ // {
+ // if (selectedSd.IsChecked)
+ // {
+ // selectedDescriptions.Add(selectedSd.ServiceDescription);
+ // }
+ // else
+ // {
+ // selectedDescriptions.Remove(selectedSd.ServiceDescription);
+ // }
+ // }
+ // };
+ //}
+
+ parentItem.Children.Add(childItem);
+ }
+ }
+ }
+
+ return treeList;
+ }
public static FlatSupportConceptTreeNodeDC CreateFlatSupportConceptItem(CompactSupportConceptDC dc, CompactOrganisationDC orga)
{
diff --git a/BeWo/Scheduler/ViewModel/SchedulerAppointmentListVM.cs b/BeWo/Scheduler/ViewModel/SchedulerAppointmentListVM.cs
index 9430a7eba..70e0074ce 100644
--- a/BeWo/Scheduler/ViewModel/SchedulerAppointmentListVM.cs
+++ b/BeWo/Scheduler/ViewModel/SchedulerAppointmentListVM.cs
@@ -139,7 +139,7 @@ namespace BeWo.Scheduler.ViewModel
{
SchedulerAppointmentVM found = null;
- foreach (var vm in Appointments.OfType().Where(vm => vm.DataContract.Equals(dc)))
+ foreach (var vm in Appointments.OfType().Where(vm => vm.DataContract != null && vm.DataContract.Equals(dc)))
{
found = vm;
}
diff --git a/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstBearbeitungsView.xaml.cs b/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstBearbeitungsView.xaml.cs
index b365b4e69..7e54fa3e3 100644
--- a/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstBearbeitungsView.xaml.cs
+++ b/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstBearbeitungsView.xaml.cs
@@ -272,7 +272,7 @@ namespace BeWo.SchulbegleitenderDienst
public void GetAllTokensAndSetAll()
{
// var x =
- ServiceFacade.DoOperationsServiceAsync(r => r.GetAllTokens(SchulbegleitenderZugehörigkeitsTyp.Klient, _klientOid), x => this.Dispatch(
+ ServiceFacade.DoOperationsServiceAsync(r => r.GetAllTokens(SchulbegleitenderZugehoerigkeitsTyp.Klient, _klientOid), x => this.Dispatch(
delegate
{
List wunschliste = new List();
@@ -312,7 +312,7 @@ namespace BeWo.SchulbegleitenderDienst
//var x =
ServiceFacade.DoOperationsServiceAsync(
- r => r.GetAllTokens(SchulbegleitenderZugehörigkeitsTyp.Mitarbeiter, 0), x =>this.Dispatch(delegate
+ r => r.GetAllTokens(SchulbegleitenderZugehoerigkeitsTyp.Mitarbeiter, 0), x =>this.Dispatch(delegate
{
List wunschliste = new List();
List ausschlussliste = new List();
diff --git a/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstMitarbeiterBearbeitungsView.xaml.cs b/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstMitarbeiterBearbeitungsView.xaml.cs
index 74d1fb2d1..e7c28c1a7 100644
--- a/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstMitarbeiterBearbeitungsView.xaml.cs
+++ b/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstMitarbeiterBearbeitungsView.xaml.cs
@@ -126,7 +126,7 @@ namespace BeWo.SchulbegleitenderDienst
private void SetMitarbeiterKriteria()
{
- var tokenlist = ServiceFacade.DoOperationsServiceSync(r => r.GetAllTokens(SchulbegleitenderZugehörigkeitsTyp.Mitarbeiter, _employeeOid));
+ var tokenlist = ServiceFacade.DoOperationsServiceSync(r => r.GetAllTokens(SchulbegleitenderZugehoerigkeitsTyp.Mitarbeiter, _employeeOid));
foreach (var tkList in tokenlist)
{
@@ -151,7 +151,7 @@ namespace BeWo.SchulbegleitenderDienst
ServiceFacade.DoOperationsServiceAsync(
- r => r.GetAllTokens(SchulbegleitenderZugehörigkeitsTyp.Klient, 0), x => this.Dispatch(delegate
+ r => r.GetAllTokens(SchulbegleitenderZugehoerigkeitsTyp.Klient, 0), x => this.Dispatch(delegate
{
List wunschliste = new List();
List ausschlussliste = new List();
diff --git a/BeWo/ServiceProxy/Generated.cs b/BeWo/ServiceProxy/Generated.cs
index a591b22ea..0df74b149 100644
--- a/BeWo/ServiceProxy/Generated.cs
+++ b/BeWo/ServiceProxy/Generated.cs
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
//
-// Dieser Code wurde von einem Tool generiert.
-// Laufzeitversion:4.0.30319.42000
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
//
-// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
-// der Code erneut generiert wird.
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
//
//------------------------------------------------------------------------------
@@ -2888,24 +2888,24 @@ namespace BeWo.ServiceProxy
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IStreamingService/UpdateBeWoFoldersBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
void UpdateBeWoFolders(System.Collections.Generic.List dcs);
- // CODEGEN: Der Nachrichtenvertrag wird generiert, da der Wrappername (UploadPackage) von Nachricht "UploadPackage" nicht mit dem Standardwert (UploadDocument) übereinstimmt.
+ // CODEGEN: Generating message contract since the wrapper name (UploadPackage) of message UploadPackage does not match the default value (UploadDocument)
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStreamingService/UploadDocument", ReplyAction="http://tempuri.org/IStreamingService/UploadDocumentResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IStreamingService/UploadDocumentBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
BeWo.ServiceProxy.UploadResult UploadDocument(BeWo.ServiceProxy.UploadPackage request);
- // CODEGEN: Der Nachrichtenvertrag wird generiert, da der Wrappername (UpdatePackage) von Nachricht "UpdatePackage" nicht mit dem Standardwert (UpdateDocument) übereinstimmt.
+ // CODEGEN: Generating message contract since the wrapper name (UpdatePackage) of message UpdatePackage does not match the default value (UpdateDocument)
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStreamingService/UpdateDocument", ReplyAction="http://tempuri.org/IStreamingService/UpdateDocumentResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IStreamingService/UpdateDocumentBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
BeWo.ServiceProxy.UploadResult UpdateDocument(BeWo.ServiceProxy.UpdatePackage request);
- // CODEGEN: Der Nachrichtenvertrag wird generiert, da der Wrappername (UploadChatPackage) von Nachricht "UploadChatPackage" nicht mit dem Standardwert (CreateNewSpeziallStreamChatMessagesDC) übereinstimmt.
+ // CODEGEN: Generating message contract since the wrapper name (UploadChatPackage) of message UploadChatPackage does not match the default value (CreateNewSpeziallStreamChatMessagesDC)
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStreamingService/CreateNewSpeziallStreamChatMessagesDC", ReplyAction="http://tempuri.org/IStreamingService/CreateNewSpeziallStreamChatMessagesDCRespons" +
"e")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IStreamingService/CreateNewSpeziallStreamChatMessagesDCBeWoFau" +
"ltFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
BeWo.ServiceProxy.UploadChatResult CreateNewSpeziallStreamChatMessagesDC(BeWo.ServiceProxy.UploadChatPackage request);
- // CODEGEN: Der Nachrichtenvertrag wird generiert, da der Wrappername (UploadPackage) von Nachricht "UploadPackage" nicht mit dem Standardwert (UploadImportFile) übereinstimmt.
+ // CODEGEN: Generating message contract since the wrapper name (UploadPackage) of message UploadPackage does not match the default value (UploadImportFile)
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStreamingService/UploadImportFile", ReplyAction="http://tempuri.org/IStreamingService/UploadImportFileResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IStreamingService/UploadImportFileBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
BeWo.ServiceProxy.UploadImportFileResult UploadImportFile(BeWo.ServiceProxy.UploadPackage request);
@@ -4000,6 +4000,11 @@ namespace BeWo.ServiceProxy
public interface IOperationsService
{
+ [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/FindUnreadChatMessagesForRecipient", ReplyAction="http://tempuri.org/IOperationsService/FindUnreadChatMessagesForRecipientResponse")]
+ [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/FindUnreadChatMessagesForRecipientBeWoFault" +
+ "Fault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
+ System.Collections.Generic.List FindUnreadChatMessagesForRecipient(long personOid);
+
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/CreateNewEmployeeAPPCodeDC", ReplyAction="http://tempuri.org/IOperationsService/CreateNewEmployeeAPPCodeDCResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/CreateNewEmployeeAPPCodeDCBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
BS.Shared.DataContracts.EmployeeAPPCodeDC CreateNewEmployeeAPPCodeDC(long employeeOid);
@@ -4100,7 +4105,7 @@ namespace BeWo.ServiceProxy
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/GetAllTokens", ReplyAction="http://tempuri.org/IOperationsService/GetAllTokensResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/GetAllTokensBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- System.Collections.Generic.List GetAllTokens(BS.Shared.SchulbegleitenderZugehörigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid);
+ System.Collections.Generic.List GetAllTokens(BS.Shared.SchulbegleitenderZugehoerigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/DeleteToken", ReplyAction="http://tempuri.org/IOperationsService/DeleteTokenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DeleteTokenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
@@ -4108,15 +4113,15 @@ namespace BeWo.ServiceProxy
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/DeletTokenRelation", ReplyAction="http://tempuri.org/IOperationsService/DeletTokenRelationResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DeletTokenRelationBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void DeletTokenRelation(BS.Shared.DataContracts.Compact.CompactTokenDC token, System.Nullable oid, BS.Shared.SchulbegleitenderZugehörigkeitsTyp typ);
+ void DeletTokenRelation(BS.Shared.DataContracts.Compact.CompactTokenDC token, System.Nullable oid, BS.Shared.SchulbegleitenderZugehoerigkeitsTyp typ);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/InsertNewToken", ReplyAction="http://tempuri.org/IOperationsService/InsertNewTokenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/InsertNewTokenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void InsertNewToken(string beschreibung, BS.Shared.TokenTyp typ, BS.Shared.SchulbegleitenderZugehörigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid);
+ void InsertNewToken(string beschreibung, BS.Shared.TokenTyp typ, BS.Shared.SchulbegleitenderZugehoerigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/InsertNewRelationToken", ReplyAction="http://tempuri.org/IOperationsService/InsertNewRelationTokenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/InsertNewRelationTokenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void InsertNewRelationToken(BS.Shared.DataContracts.Compact.CompactTokenDC token, BS.Shared.TokenTyp typ, BS.Shared.SchulbegleitenderZugehörigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid);
+ void InsertNewRelationToken(BS.Shared.DataContracts.Compact.CompactTokenDC token, BS.Shared.TokenTyp typ, BS.Shared.SchulbegleitenderZugehoerigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/UpdateToken", ReplyAction="http://tempuri.org/IOperationsService/UpdateTokenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/UpdateTokenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
@@ -4142,11 +4147,11 @@ namespace BeWo.ServiceProxy
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/DoTokenWunschOperation", ReplyAction="http://tempuri.org/IOperationsService/DoTokenWunschOperationResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DoTokenWunschOperationBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void DoTokenWunschOperation(int art, System.Nullable Oid, BS.Shared.SchulbegleitenderZugehörigkeitsTyp zugehoerigkeitsTyp, System.Collections.Generic.Dictionary verfuegbarerWunschToken, string token);
+ void DoTokenWunschOperation(int art, System.Nullable Oid, BS.Shared.SchulbegleitenderZugehoerigkeitsTyp zugehoerigkeitsTyp, System.Collections.Generic.Dictionary verfuegbarerWunschToken, string token);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/DoTokenAusschlussOperation", ReplyAction="http://tempuri.org/IOperationsService/DoTokenAusschlussOperationResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DoTokenAusschlussOperationBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void DoTokenAusschlussOperation(int art, System.Nullable Oid, BS.Shared.SchulbegleitenderZugehörigkeitsTyp zugehoerigkeitsTyp, System.Collections.Generic.Dictionary verfuegbarerAusschlussToken, string token);
+ void DoTokenAusschlussOperation(int art, System.Nullable Oid, BS.Shared.SchulbegleitenderZugehoerigkeitsTyp zugehoerigkeitsTyp, System.Collections.Generic.Dictionary verfuegbarerAusschlussToken, string token);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/UpdateServiceDescriptions", ReplyAction="http://tempuri.org/IOperationsService/UpdateServiceDescriptionsResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/UpdateServiceDescriptionsBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
@@ -4397,26 +4402,30 @@ namespace BeWo.ServiceProxy
"", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
System.Collections.Generic.List FindServiceRecordsForLastDays(System.Nullable costbearer2SupportConceptOid, int days, System.Nullable employeeOid);
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/GetAllTextbausteine", ReplyAction="http://tempuri.org/IOperationsService/GetAllTextbausteineResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/GetAllTextbausteineBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- System.Collections.Generic.List GetAllTextbausteine();
+ [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/GetAllTextModules", ReplyAction="http://tempuri.org/IOperationsService/GetAllTextModulesResponse")]
+ [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/GetAllTextModulesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
+ System.Collections.Generic.List GetAllTextModules();
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/InsertNewTextbausteine", ReplyAction="http://tempuri.org/IOperationsService/InsertNewTextbausteineResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/InsertNewTextbausteineBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- System.Collections.Generic.List InsertNewTextbausteine(System.Collections.Generic.List pTextbausteine);
+ [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/GetTextModules", ReplyAction="http://tempuri.org/IOperationsService/GetTextModulesResponse")]
+ [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/GetTextModulesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
+ System.Collections.Generic.List GetTextModules(bool pShouldShowAllTextModules, long pEmployeeOid, bool pHasRightToSeeAllTextModules, bool pIsInAdministrationView);
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/UpdateTextbausteine", ReplyAction="http://tempuri.org/IOperationsService/UpdateTextbausteineResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/UpdateTextbausteineBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void UpdateTextbausteine(System.Collections.Generic.List pTextbausteine);
+ [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/InsertNewTextModules", ReplyAction="http://tempuri.org/IOperationsService/InsertNewTextModulesResponse")]
+ [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/InsertNewTextModulesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
+ System.Collections.Generic.List InsertNewTextModules(System.Collections.Generic.List pTextbausteine);
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/DeleteTextbausteine", ReplyAction="http://tempuri.org/IOperationsService/DeleteTextbausteineResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DeleteTextbausteineBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void DeleteTextbausteine(System.Collections.Generic.Dictionary pOid2Version);
+ [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/UpdateTextModules", ReplyAction="http://tempuri.org/IOperationsService/UpdateTextModulesResponse")]
+ [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/UpdateTextModulesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
+ void UpdateTextModules(System.Collections.Generic.List pTextbausteine);
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/GetTextbausteineByServiceCategory", ReplyAction="http://tempuri.org/IOperationsService/GetTextbausteineByServiceCategoryResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/GetTextbausteineByServiceCategoryBeWoFaultF" +
- "ault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- System.Collections.Generic.List GetTextbausteineByServiceCategory(long pServiceCategoryOid);
+ [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/DeleteTextModules", ReplyAction="http://tempuri.org/IOperationsService/DeleteTextModulesResponse")]
+ [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DeleteTextModulesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
+ void DeleteTextModules(System.Collections.Generic.Dictionary pOid2Version);
+
+ [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/GetTextModulesByServiceCategory", ReplyAction="http://tempuri.org/IOperationsService/GetTextModulesByServiceCategoryResponse")]
+ [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/GetTextModulesByServiceCategoryBeWoFaultFau" +
+ "lt", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
+ System.Collections.Generic.List GetTextModulesByServiceCategory(long pServiceCategoryOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/FindServiceRecordsInSpan", ReplyAction="http://tempuri.org/IOperationsService/FindServiceRecordsInSpanResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/FindServiceRecordsInSpanBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
@@ -4450,11 +4459,6 @@ namespace BeWo.ServiceProxy
"ult", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
System.Collections.Generic.List GetIsChatActiveCustomerAPPCodeDC(long customerOid, int activeType);
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/FindUnreadChatMessagesForRecipient", ReplyAction="http://tempuri.org/IOperationsService/FindUnreadChatMessagesForRecipientResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/FindUnreadChatMessagesForRecipientBeWoFault" +
- "Fault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- System.Collections.Generic.List FindUnreadChatMessagesForRecipient(long personOid);
-
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/DeactivateInvoices", ReplyAction="http://tempuri.org/IOperationsService/DeactivateInvoicesResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DeactivateInvoicesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
void DeactivateInvoices(System.Collections.Generic.List invoices);
@@ -4770,6 +4774,11 @@ namespace BeWo.ServiceProxy
{
}
+ public System.Collections.Generic.List FindUnreadChatMessagesForRecipient(long personOid)
+ {
+ return base.Channel.FindUnreadChatMessagesForRecipient(personOid);
+ }
+
public BS.Shared.DataContracts.EmployeeAPPCodeDC CreateNewEmployeeAPPCodeDC(long employeeOid)
{
return base.Channel.CreateNewEmployeeAPPCodeDC(employeeOid);
@@ -4875,7 +4884,7 @@ namespace BeWo.ServiceProxy
base.Channel.UpdateAbsenceTime(abs);
}
- public System.Collections.Generic.List GetAllTokens(BS.Shared.SchulbegleitenderZugehörigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid)
+ public System.Collections.Generic.List GetAllTokens(BS.Shared.SchulbegleitenderZugehoerigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid)
{
return base.Channel.GetAllTokens(zugehoerigkeitsTyp, oid);
}
@@ -4885,17 +4894,17 @@ namespace BeWo.ServiceProxy
base.Channel.DeleteToken(token);
}
- public void DeletTokenRelation(BS.Shared.DataContracts.Compact.CompactTokenDC token, System.Nullable oid, BS.Shared.SchulbegleitenderZugehörigkeitsTyp typ)
+ public void DeletTokenRelation(BS.Shared.DataContracts.Compact.CompactTokenDC token, System.Nullable oid, BS.Shared.SchulbegleitenderZugehoerigkeitsTyp typ)
{
base.Channel.DeletTokenRelation(token, oid, typ);
}
- public void InsertNewToken(string beschreibung, BS.Shared.TokenTyp typ, BS.Shared.SchulbegleitenderZugehörigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid)
+ public void InsertNewToken(string beschreibung, BS.Shared.TokenTyp typ, BS.Shared.SchulbegleitenderZugehoerigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid)
{
base.Channel.InsertNewToken(beschreibung, typ, zugehoerigkeitsTyp, oid);
}
- public void InsertNewRelationToken(BS.Shared.DataContracts.Compact.CompactTokenDC token, BS.Shared.TokenTyp typ, BS.Shared.SchulbegleitenderZugehörigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid)
+ public void InsertNewRelationToken(BS.Shared.DataContracts.Compact.CompactTokenDC token, BS.Shared.TokenTyp typ, BS.Shared.SchulbegleitenderZugehoerigkeitsTyp zugehoerigkeitsTyp, System.Nullable oid)
{
base.Channel.InsertNewRelationToken(token, typ, zugehoerigkeitsTyp, oid);
}
@@ -4925,12 +4934,12 @@ namespace BeWo.ServiceProxy
return base.Channel.KlientenAbschlagsInfoListe(start, end);
}
- public void DoTokenWunschOperation(int art, System.Nullable Oid, BS.Shared.SchulbegleitenderZugehörigkeitsTyp zugehoerigkeitsTyp, System.Collections.Generic.Dictionary verfuegbarerWunschToken, string token)
+ public void DoTokenWunschOperation(int art, System.Nullable Oid, BS.Shared.SchulbegleitenderZugehoerigkeitsTyp zugehoerigkeitsTyp, System.Collections.Generic.Dictionary verfuegbarerWunschToken, string token)
{
base.Channel.DoTokenWunschOperation(art, Oid, zugehoerigkeitsTyp, verfuegbarerWunschToken, token);
}
- public void DoTokenAusschlussOperation(int art, System.Nullable Oid, BS.Shared.SchulbegleitenderZugehörigkeitsTyp zugehoerigkeitsTyp, System.Collections.Generic.Dictionary verfuegbarerAusschlussToken, string token)
+ public void DoTokenAusschlussOperation(int art, System.Nullable Oid, BS.Shared.SchulbegleitenderZugehoerigkeitsTyp zugehoerigkeitsTyp, System.Collections.Generic.Dictionary verfuegbarerAusschlussToken, string token)
{
base.Channel.DoTokenAusschlussOperation(art, Oid, zugehoerigkeitsTyp, verfuegbarerAusschlussToken, token);
}
@@ -5190,29 +5199,34 @@ namespace BeWo.ServiceProxy
return base.Channel.FindServiceRecordsForLastDays(costbearer2SupportConceptOid, days, employeeOid);
}
- public System.Collections.Generic.List GetAllTextbausteine()
+ public System.Collections.Generic.List GetAllTextModules()
{
- return base.Channel.GetAllTextbausteine();
+ return base.Channel.GetAllTextModules();
}
- public System.Collections.Generic.List InsertNewTextbausteine(System.Collections.Generic.List pTextbausteine)
+ public System.Collections.Generic.List GetTextModules(bool pShouldShowAllTextModules, long pEmployeeOid, bool pHasRightToSeeAllTextModules, bool pIsInAdministrationView)
{
- return base.Channel.InsertNewTextbausteine(pTextbausteine);
+ return base.Channel.GetTextModules(pShouldShowAllTextModules, pEmployeeOid, pHasRightToSeeAllTextModules, pIsInAdministrationView);
}
- public void UpdateTextbausteine(System.Collections.Generic.List pTextbausteine)
+ public System.Collections.Generic.List InsertNewTextModules(System.Collections.Generic.List pTextbausteine)
{
- base.Channel.UpdateTextbausteine(pTextbausteine);
+ return base.Channel.InsertNewTextModules(pTextbausteine);
}
- public void DeleteTextbausteine(System.Collections.Generic.Dictionary pOid2Version)
+ public void UpdateTextModules(System.Collections.Generic.List pTextbausteine)
{
- base.Channel.DeleteTextbausteine(pOid2Version);
+ base.Channel.UpdateTextModules(pTextbausteine);
}
- public System.Collections.Generic.List GetTextbausteineByServiceCategory(long pServiceCategoryOid)
+ public void DeleteTextModules(System.Collections.Generic.Dictionary pOid2Version)
{
- return base.Channel.GetTextbausteineByServiceCategory(pServiceCategoryOid);
+ base.Channel.DeleteTextModules(pOid2Version);
+ }
+
+ public System.Collections.Generic.List GetTextModulesByServiceCategory(long pServiceCategoryOid)
+ {
+ return base.Channel.GetTextModulesByServiceCategory(pServiceCategoryOid);
}
public System.Collections.Generic.List FindServiceRecordsInSpan(long pCostBearer2SupportConceptOid, BS.Shared.Core.DateTimeSpan period)
@@ -5250,11 +5264,6 @@ namespace BeWo.ServiceProxy
return base.Channel.GetIsChatActiveCustomerAPPCodeDC(customerOid, activeType);
}
- public System.Collections.Generic.List FindUnreadChatMessagesForRecipient(long personOid)
- {
- return base.Channel.FindUnreadChatMessagesForRecipient(personOid);
- }
-
public void DeactivateInvoices(System.Collections.Generic.List invoices)
{
base.Channel.DeactivateInvoices(invoices);
diff --git a/BeWo/ServiceProxy/ServiceFacade.cs b/BeWo/ServiceProxy/ServiceFacade.cs
index 3e2d335de..0eafc25d4 100644
--- a/BeWo/ServiceProxy/ServiceFacade.cs
+++ b/BeWo/ServiceProxy/ServiceFacade.cs
@@ -510,7 +510,7 @@ namespace BeWo.ServiceProxy
public static void GetAll(Action> pCallBack)
{
- if (typeof(T).Equals(typeof(CompactCustomerDC)))
+ if (typeof(T) == typeof(CompactCustomerDC))
{
long? oid = null;
@@ -534,27 +534,27 @@ namespace BeWo.ServiceProxy
pCallBack(list.Cast().ToList());
});
}
- else if (typeof(T).Equals(typeof(CompactEmployeeDC)))
+ else if (typeof(T) == typeof(CompactEmployeeDC))
{
DoEmployeeServiceAsync(s => s.GetAllActiveEmployeesCompact().Cast().ToList(), r => pCallBack(r));
}
- else if (typeof(T).Equals(typeof(CompactTeamDC)))
+ else if (typeof(T) == typeof(CompactTeamDC))
{
DoEmployeeServiceAsync(s => s.GetAllTeamsCompact().Cast().ToList(), r => pCallBack(r));
}
- else if (typeof(T).Equals(typeof(CompactOrganisationDC)))
+ else if (typeof(T) == typeof(CompactOrganisationDC))
{
DoCustomerServiceAsync(s => s.GetAllActiveOrganisationsCompact().Cast().ToList(), r => pCallBack(r));
}
- else if (typeof(T).Equals(typeof(CompactPersonDC)))
+ else if (typeof(T) == typeof(CompactPersonDC))
{
DoCustomerServiceAsync(s => s.GetAllActivePersonsCompact().Cast().ToList(), r => pCallBack(r));
}
- else if (typeof(T).Equals(typeof(CompactSupportConceptDC)))
+ else if (typeof(T) == typeof(CompactSupportConceptDC))
{
DoCustomerServiceAsync(s => s.GetAllActiveSupportConceptsCompact().Cast().ToList(), r => pCallBack(r));
}
- else if (typeof(T).Equals(typeof(CompactUserDC)))
+ else if (typeof(T) == typeof(CompactUserDC))
{
DoUserServiceAsync(s => s.GetAllUsersCompact().Cast().ToList(), r => pCallBack(r), true);
}
@@ -562,9 +562,9 @@ namespace BeWo.ServiceProxy
{
DoResourceServiceAsync(s => s.GetAllResources().Cast().ToList(), pCallBack, true);
}
- else if (typeof (T) == typeof (TextbausteinDC))
+ else if (typeof (T) == typeof (TextModuleDC))
{
- DoOperationsServiceAsync(s => s.GetAllTextbausteine().Cast().ToList(), pCallBack);
+ DoOperationsServiceAsync(s => s.GetAllTextModules().Cast().ToList(), pCallBack);
}
else
{
diff --git a/BeWo/Styles/OrangeBlack.xaml b/BeWo/Styles/OrangeBlack.xaml
index 230ac45a1..cfb730804 100644
--- a/BeWo/Styles/OrangeBlack.xaml
+++ b/BeWo/Styles/OrangeBlack.xaml
@@ -14,7 +14,7 @@
xmlns:Blacklight_Wpf_Controls="clr-namespace:Blacklight.Wpf.Controls;assembly=Blacklight.Wpf.Controls">
-
+
@@ -1786,8 +1786,6 @@
-
-
-
+
@@ -2262,10 +2260,8 @@
-
+
-
-
@@ -2285,7 +2281,6 @@
-
diff --git a/BeWo/View/Controls/ComboBoxTreeViewControl.xaml b/BeWo/View/Controls/ComboBoxTreeViewControl.xaml
index ead2fef36..fce5d6e4c 100644
--- a/BeWo/View/Controls/ComboBoxTreeViewControl.xaml
+++ b/BeWo/View/Controls/ComboBoxTreeViewControl.xaml
@@ -1,92 +1,89 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BeWo/View/Controls/ComboBoxTreeViewControl.xaml.cs b/BeWo/View/Controls/ComboBoxTreeViewControl.xaml.cs
index c8058b278..1959128c7 100644
--- a/BeWo/View/Controls/ComboBoxTreeViewControl.xaml.cs
+++ b/BeWo/View/Controls/ComboBoxTreeViewControl.xaml.cs
@@ -5,15 +5,12 @@ using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
-using BS.Shared;
+
using BS.Shared.DataContracts;
using BS.Shared.DataContracts.ClientPartials;
namespace BeWo.View.Controls
{
- ///
- /// Interaktionslogik für ComboBoxTreeViewControl.xaml
- ///
public partial class ComboBoxTreeViewControl
{
public double ParentWindowHeight
@@ -22,11 +19,7 @@ namespace BeWo.View.Controls
set { SetValue(ParentWindowHeightProperty, value); }
}
- public static readonly DependencyProperty ParentWindowHeightProperty =
- DependencyProperty.Register("ParentWindowHeight",
- typeof (double),
- typeof (ComboBoxTreeViewControl),
- new FrameworkPropertyMetadata(500.0));
+ public static readonly DependencyProperty ParentWindowHeightProperty = DependencyProperty.Register("ParentWindowHeight", typeof (double), typeof (ComboBoxTreeViewControl), new FrameworkPropertyMetadata(500.0));
public List TreeViewSourceList
@@ -39,11 +32,7 @@ namespace BeWo.View.Controls
}
}
- public static readonly DependencyProperty ListProperty =
- DependencyProperty.Register("TreeViewSourceList",
- typeof (List),
- typeof (ComboBoxTreeViewControl),
- new FrameworkPropertyMetadata(new List()));
+ public static readonly DependencyProperty ListProperty = DependencyProperty.Register("TreeViewSourceList", typeof (List), typeof (ComboBoxTreeViewControl), new FrameworkPropertyMetadata(new List()));
public ComboBoxTreeViewControl()
{
@@ -53,14 +42,12 @@ namespace BeWo.View.Controls
private void ShowCheckedValues()
{
- string ToolTipString;
-
GoalCount = 0;
var selectedGoals = GetSelectedGoals();
- bool allSelected = selectedGoals.Count == GoalCount && GoalCount > 0;
+ var allSelected = selectedGoals.Count == GoalCount && GoalCount > 0;
- ToolTipString = selectedGoals.Aggregate(string.Empty, (s, dc) => s + (dc.TypeDescription + "; "));
+ var ToolTipString = selectedGoals.Aggregate(string.Empty, (s, dc) => s + (dc.TypeDescription + "; "));
DeSelectAllCheckBox.IsChecked = allSelected;
@@ -72,15 +59,17 @@ namespace BeWo.View.Controls
return;
}
- string[] splittedToolTip = ToolTipString.Split(';');
+ var splittedToolTip = ToolTipString.Split(';');
ToolTipString = string.Empty;
foreach (var item in splittedToolTip.Where(x => x != " "))
{
ToolTipString += item.Trim(' ');
- if (splittedToolTip.Where(x => x != " ").ToList().IndexOf(item) <
- (splittedToolTip.Count(x => x != " ") - 1))
- ToolTipString += "\n";
+
+ if (splittedToolTip.Where(x => x != " ").ToList().IndexOf(item) < splittedToolTip.Count(x => x != " ") - 1)
+ {
+ ToolTipString += "\n";
+ }
}
Imitationheader.ToolTip = ToolTipString;
@@ -96,9 +85,9 @@ namespace BeWo.View.Controls
}
private int GoalCount;
- private void AddCheckedGoals(List goals, List selectedGoals)
+ private void AddCheckedGoals(IEnumerable goals, ICollection selectedGoals)
{
- foreach (SupportConceptGoalDC item in goals)
+ foreach (var item in goals)
{
if (item.Children == null || item.Children.Count == 0)
{
@@ -125,21 +114,26 @@ namespace BeWo.View.Controls
private void openPopup()
{
- TreeViewPopup.Placement = PlacementMode.RelativePoint;
- TreeViewPopup.PlacementTarget = Imitationheader;
- TreeViewPopup.VerticalOffset = Imitationheader.Height;
+ TreeViewPopup.Placement = PlacementMode.RelativePoint;
+ TreeViewPopup.PlacementTarget = Imitationheader;
+ TreeViewPopup.VerticalOffset = Imitationheader.Height;
TreeViewPopup.HorizontalOffset = 0;
- TreeViewPopup.MinWidth = Imitationheader.Width;
- TreeViewPopup.IsOpen = true;
+ TreeViewPopup.MinWidth = Imitationheader.Width;
+ TreeViewPopup.IsOpen = true;
+
if (ParentWindowHeight == 0)
+ {
ParentWindowHeight = 500;
+ }
+
OpenPopUpBtn.IsEnabled = false;
}
private void PopUpClosedEvent(object sender, EventArgs eventArgs)
{
ShowCheckedValues();
- cbtv_search.Text = string.Empty;
+
+ cbtv_search.Text = string.Empty;
OpenPopUpBtn.IsEnabled = true;
}
@@ -150,16 +144,18 @@ namespace BeWo.View.Controls
public void ResetControl()
{
- TreeViewSourceList = new List();
- Imitationheader.Text = string.Empty;
- Imitationheader.ToolTip = null;
+ TreeViewSourceList = new List();
+ Imitationheader.Text = string.Empty;
+ Imitationheader.ToolTip = null;
DeSelectAllCheckBox.IsChecked = false;
}
private void Tree1_OnLoaded(object sender, RoutedEventArgs e)
{
if (ParentWindowHeight >= TreeViewPopup.VerticalOffset)
- TreeViewPopup.MaxHeight = ParentWindowHeight - TreeViewPopup.VerticalOffset - ParentWindowHeight/4;
+ {
+ TreeViewPopup.MaxHeight = ParentWindowHeight - TreeViewPopup.VerticalOffset - ParentWindowHeight/4;
+ }
}
private void Bd_OnClick(object sender, RoutedEventArgs e)
@@ -172,13 +168,18 @@ namespace BeWo.View.Controls
var cb = (CheckBox)sender;
if (!cb.IsChecked.HasValue)
- return;
+ {
+ return;
+ }
foreach (var item in TreeViewSourceList)
{
item.IsChecked = cb.IsChecked.Value;
+
foreach (var item2 in item.Children)
- item2.IsChecked = cb.IsChecked.Value;
+ {
+ item2.IsChecked = cb.IsChecked.Value;
+ }
}
ShowCheckedValues();
@@ -187,9 +188,13 @@ namespace BeWo.View.Controls
private void BdText_OnMouseDown(object sender, MouseButtonEventArgs e)
{
var SupportConceptGoal = ((TextBlock)sender).Tag as SupportConceptGoalDC;
-
- SupportConceptGoal.IsChecked = !SupportConceptGoal.IsChecked;
- ShowCheckedValues();
+
+ if(SupportConceptGoal != null)
+ {
+ SupportConceptGoal.IsChecked = !SupportConceptGoal.IsChecked;
+ }
+
+ ShowCheckedValues();
}
}
}
diff --git a/BeWo/View/Detail/CustomerView.xaml b/BeWo/View/Detail/CustomerView.xaml
index 43cd2c997..497af2a44 100644
--- a/BeWo/View/Detail/CustomerView.xaml
+++ b/BeWo/View/Detail/CustomerView.xaml
@@ -14,501 +14,434 @@
xmlns:controls="clr-namespace:BeWo.View.Controls"
Height="Auto" Width="Auto" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" Focusable="True" GotFocus="UserControl_GotFocus">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+ Text="{val:ValidationBinding Path=FirstName, UpdateSourceTrigger=PropertyChanged}" />
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
+
-
+
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -518,1010 +451,969 @@
+ Text="{val:ValidationBinding Path=DebitorNumber, UpdateSourceTrigger=PropertyChanged}" />
+ Text="{val:ValidationBinding Path=CostCenter, UpdateSourceTrigger=PropertyChanged}" />
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BeWo/View/Detail/CustomerView.xaml.cs b/BeWo/View/Detail/CustomerView.xaml.cs
index 131268171..3baa65565 100644
--- a/BeWo/View/Detail/CustomerView.xaml.cs
+++ b/BeWo/View/Detail/CustomerView.xaml.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
-using System.Drawing;
using System.Globalization;
using System.Linq;
using System.ServiceModel;
@@ -29,23 +28,19 @@ using DevExpress.Utils;
using DevExpress.Xpf.Editors.Settings;
using DevExpress.Xpf.Grid;
-using System.IO;
-using System.Windows.Forms;
using System.Windows.Media.Imaging;
-using System.Windows.Media;
using DevExpress.XtraGrid;
-using Binding = System.Windows.Data.Binding;
-using Button = System.Windows.Controls.Button;
-using CheckBox = System.Windows.Controls.CheckBox;
-using ComboBox = System.Windows.Controls.ComboBox;
-using Control = System.Windows.Controls.Control;
-using GridControl = DevExpress.Xpf.Grid.GridControl;
-using GroupBox = System.Windows.Controls.GroupBox;
+using Binding = System.Windows.Data.Binding;
+using Button = System.Windows.Controls.Button;
+using CheckBox = System.Windows.Controls.CheckBox;
+using ComboBox = System.Windows.Controls.ComboBox;
+using Control = System.Windows.Controls.Control;
+using GridControl = DevExpress.Xpf.Grid.GridControl;
+using GroupBox = System.Windows.Controls.GroupBox;
using HorizontalAlignment = System.Windows.HorizontalAlignment;
-using Hyperlink = System.Windows.Documents.Hyperlink;
-using Image = System.Windows.Controls.Image;
-using MessageBox = System.Windows.MessageBox;
-using VerticalAlignment = System.Windows.VerticalAlignment;
+using Hyperlink = System.Windows.Documents.Hyperlink;
+using MessageBox = System.Windows.MessageBox;
+using VerticalAlignment = System.Windows.VerticalAlignment;
namespace BeWo.View.Detail
@@ -87,7 +82,6 @@ namespace BeWo.View.Detail
public static readonly string[] GradDerBehinderungComboBoxQuelle = { "20", "30", "40", "50", "60", "70", "80", "90", "100" };
- //Konstruktor
public CustomerView(CustomerVM pCustomerVM)
{
InitializeComponent();
@@ -392,12 +386,10 @@ namespace BeWo.View.Detail
Cache.GetInstance().ClearSupportConceptTree();
Cache.GetInstance().ClearCustomers();
BeWoApp.MainControl.ResetView(UIContext.Customer);
-
}
catch (FaultException)
{
- MessageBox.Show(
- "Dieser Datensatz wurde in der Zwischenzeit von einem anderen Benutzer geändert. Klicken Sie Ok um den Datansatz erneut zu laden. Ihre Änderungen gehen dabei leider verloren.");
+ MessageBox.Show("Dieser Datensatz wurde in der Zwischenzeit von einem anderen Benutzer geändert. Klicken Sie Ok, um den Datansatz erneut zu laden. Ihre Änderungen gehen dabei leider verloren.");
ReloadViewModel(lDataContract.CustomerOid.Value);
}
}
@@ -1018,7 +1010,7 @@ namespace BeWo.View.Detail
{
if (tabitem_schuldienst.Content == null)
{
- //tabitem_schuldienst.Content = new SchulbegleitenderDienst.SchulbegleitenderDienst(TableID.Customer, ViewModel.DataContract.CustomerOid.Value,SchulbegleitenderZugehörigkeitsTyp.Klient);
+ //tabitem_schuldienst.Content = new SchulbegleitenderDienst.SchulbegleitenderDienst(TableID.Customer, ViewModel.DataContract.CustomerOid.Value,SchulbegleitenderZugehoerigkeitsTyp.Klient);
}
}
@@ -1619,8 +1611,8 @@ namespace BeWo.View.Detail
{
var v1String = e.Value1.ToString();
var v2String = e.Value2.ToString();
- var dt1 = Convert.ToDateTime(v1String.Substring(v1String.Length - 10, 10));
- var dt2 = Convert.ToDateTime(v2String.Substring(v2String.Length - 10, 10));
+ var dt1 = Convert.ToDateTime(v1String.Substring(v1String.Length - 10, 10), new CultureInfo("de-DE"));
+ var dt2 = Convert.ToDateTime(v2String.Substring(v2String.Length - 10, 10), new CultureInfo("de-DE"));
e.Result = Comparer.Default.Compare(dt1, dt2) * -1;
e.Handled = true;
diff --git a/BeWo/View/Detail/CustomerView2.xaml b/BeWo/View/Detail/CustomerView2.xaml
index f30ccba57..e1488ec51 100644
--- a/BeWo/View/Detail/CustomerView2.xaml
+++ b/BeWo/View/Detail/CustomerView2.xaml
@@ -15,7 +15,7 @@
-
+
@@ -33,7 +33,7 @@
-
+
@@ -51,7 +51,7 @@
-
+
@@ -67,7 +67,7 @@
-
+
@@ -92,7 +92,7 @@
-
+
@@ -113,7 +113,7 @@
-
+
diff --git a/BeWo/View/Detail/EmployeeView.xaml.cs b/BeWo/View/Detail/EmployeeView.xaml.cs
index 96de097ad..75485d667 100644
--- a/BeWo/View/Detail/EmployeeView.xaml.cs
+++ b/BeWo/View/Detail/EmployeeView.xaml.cs
@@ -468,7 +468,7 @@ namespace BeWo.View.Detail
{
if (tabitem_schuldienst.Content == null)
{
- tabitem_schuldienst.Content = new SchulbegleitenderDienst(TableID.Customer, ViewModel.DataContract.EmployeeOid.Value, SchulbegleitenderZugehörigkeitsTyp.Mitarbeiter);
+ tabitem_schuldienst.Content = new SchulbegleitenderDienst(TableID.Customer, ViewModel.DataContract.EmployeeOid.Value, SchulbegleitenderZugehoerigkeitsTyp.Mitarbeiter);
}
}
diff --git a/BeWo/View/Detail/ServiceCategoryView.xaml b/BeWo/View/Detail/ServiceCategoryView.xaml
index f6d8dc4ff..367d4afa2 100644
--- a/BeWo/View/Detail/ServiceCategoryView.xaml
+++ b/BeWo/View/Detail/ServiceCategoryView.xaml
@@ -112,7 +112,7 @@
-
+
diff --git a/BeWo/View/Detail/ServiceRecordRTFWindowView.xaml b/BeWo/View/Detail/ServiceRecordRTFWindowView.xaml
index 026a37a79..44468f58c 100644
--- a/BeWo/View/Detail/ServiceRecordRTFWindowView.xaml
+++ b/BeWo/View/Detail/ServiceRecordRTFWindowView.xaml
@@ -59,7 +59,7 @@
-
+
diff --git a/BeWo/View/Detail/ServiceRecordRTFWindowView.xaml.cs b/BeWo/View/Detail/ServiceRecordRTFWindowView.xaml.cs
index 27ee1eb51..87a34b2ef 100644
--- a/BeWo/View/Detail/ServiceRecordRTFWindowView.xaml.cs
+++ b/BeWo/View/Detail/ServiceRecordRTFWindowView.xaml.cs
@@ -1,34 +1,20 @@
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.Controls.Primitives;
-using System.Windows.Data;
-using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
+
using BeWo.ViewModel;
-using BS.Shared;
+
using BS.Shared.Core;
using BS.Shared.DataContracts;
using BS.Shared.Extensions;
namespace BeWo.View.Detail
{
- ///
- /// Interaktionslogik für ServiceRecordRTFWindowView.xaml
- ///
- public partial class ServiceRecordRTFWindowView : Window
+ public partial class ServiceRecordRTFWindowView
{
public event EventHandler RaiseCustomEvent;
-
-
public ServiceRecordRTFWindowView(string titel,string text, string rtfText)
{
InitializeComponent();
@@ -38,7 +24,6 @@ namespace BeWo.View.Detail
richEditControl.Text = text;
richEditControl.RtfText = rtfText;
- // höhe und breite vom Screen nehmen und durch 2 teilen
Width = SystemParameters.PrimaryScreenWidth / 2;
Height = SystemParameters.PrimaryScreenWidth / 2;
@@ -52,18 +37,16 @@ namespace BeWo.View.Detail
private void RtfRueckgabe()
{
- RaiseCustomEvent(this, new CustomRTFWindowArgs(richEditControl.Text,richEditControl.RtfText));
- Close();
+ RaiseCustomEvent?.Invoke(this, new CustomRTFWindowArgs(richEditControl.Text,richEditControl.RtfText));
+ Close();
}
-
- //TextBausteine Bereich
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
popup_textbausteine.IsOpen = true;
}
- private void TextbausteineSearchView_OnItemSelected(object sender, EventArgs e)
+ private void TextbausteineSearchView_OnItemSelected(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(richEditControl.Text))
{
@@ -104,105 +87,36 @@ namespace BeWo.View.Detail
private void EditTextbausteineClick(object sender, RoutedEventArgs e)
{
- VMFactory.CreateTextbausteinListVMAsync(
- x => this.Dispatch(delegate
- {
- var tbv = new TextbausteinView(x) { Background = FindResource("ApplicationBackground") as LinearGradientBrush };
+ VMFactory.CreateTextModuleListVMAsync(
+ textModules => this.Dispatch(delegate
+ {
+ var tbv = new TextModuleView(textModules) { Background = FindResource("ApplicationBackground") as LinearGradientBrush };
- var rootGrid2 = (Grid)tbv.root.Content;
- var zielGrid = (Grid)rootGrid2.Children[0];
- var cb = new CheckBox
- {
- Content = "Nur für mich sichtbar",
- Margin = new Thickness(3),
- HorizontalAlignment = HorizontalAlignment.Left,
- VerticalAlignment = VerticalAlignment.Center
- };
+ var window = new BeWoWindow(tbv) { rootGroupBox = { Header = "Textbausteine" }, Width = 850, MinWidth = 850 };
- if (BeWoApp.LoggedOnUser.HasRight(UserRightType.TextbausteineNurEigeneBearbeiten) && !BeWoApp.LoggedOnUser.HasRight(UserRightType.TextbausteineAlleBearbeiten))
- {
- cb.IsEnabled = false;
- }
-
- var IsOnlyForEmployeeBinding = new Binding("NewVM.IsOnlyForEmployee") { Source = tbv.ViewModel, UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged };
- BindingOperations.SetBinding(cb, ToggleButton.IsCheckedProperty, IsOnlyForEmployeeBinding);
-
- Grid.SetColumn(cb, 0);
- Grid.SetRow(cb, 2);
- Grid.SetColumnSpan(cb, 4);
-
- zielGrid.Children.Add(cb);
-
- var stackPanel = new StackPanel { Orientation = Orientation.Horizontal, HorizontalAlignment = HorizontalAlignment.Right };
-
- var speichernBtn = new Button
- {
- Content = "Speichern und schließen",
- HorizontalAlignment = HorizontalAlignment.Right,
- Margin = new Thickness(3),
- VerticalAlignment = VerticalAlignment.Center
- };
-
- var abbrechenBtn = new Button
- {
- Content = "Abbrechen",
- HorizontalAlignment = HorizontalAlignment.Right,
- Margin = new Thickness(3),
- VerticalAlignment = VerticalAlignment.Center
- };
-
- stackPanel.Children.Add(speichernBtn);
- stackPanel.Children.Add(abbrechenBtn);
- Grid.SetRow(stackPanel, 2);
-
- rootGrid2.Children.Add(stackPanel);
- tbv.root.Header = string.Empty;
- var window = new BeWoWindow(tbv) { Width = 514, Height = 400, rootGroupBox = { Header = "Textbausteine" } };
-
- speichernBtn.Click += (o, args) =>
- {
- tbv.Focus();
- if (x.IsDirty || x.VMList.Any(vm => vm.IsDirty))
- tbv.Save(() => { textbausteineSearchView.ServiceCategoryOid = textbausteineSearchView.ServiceCategoryOid; });
-
- window.Close();
- };
-
- abbrechenBtn.Click += (o, args) =>
- {
- tbv.Focus();
- tbv.DoSaveCheck();
-
- window.Close();
- };
-
- window.Show();
- }));
- }
+ tbv.CancelButton.Click += (o, args) =>
+ {
+ tbv.Focus();
+ tbv.DoSaveCheck();
+ window.Close();
+ };
+ window.Show();
+ }), false, true);
+ }
}
public class CustomRTFWindowArgs : EventArgs
{
- private string _text;
- private string _rtfText;
-
-
- public CustomRTFWindowArgs(string txt, string rtfTxt)
+ public CustomRTFWindowArgs(string txt, string rtfTxt)
{
- _text = txt;
- _rtfText = rtfTxt;
+ Text = txt;
+ RtfText = rtfTxt;
}
- public string Text
- {
- get { return _text; }
- }
+ public string Text { get; }
- public string RtfText
- {
- get { return _rtfText;}
- }
+ public string RtfText { get; }
}
}
diff --git a/BeWo/View/Detail/ServiceRecordView2.xaml b/BeWo/View/Detail/ServiceRecordView2.xaml
index 0f8460117..c9795c37e 100644
--- a/BeWo/View/Detail/ServiceRecordView2.xaml
+++ b/BeWo/View/Detail/ServiceRecordView2.xaml
@@ -15,7 +15,6 @@
xmlns:detail="clr-namespace:BeWo.View.Detail"
xmlns:core="clr-namespace:BS.Shared.Core;assembly=BS.Shared"
xmlns:security="clr-namespace:BeWo.Security"
- xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
Height="Auto" Width="Auto" VerticalAlignment="Stretch" Focusable="True" HorizontalAlignment="Stretch">
@@ -209,7 +208,6 @@
-