diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj
index a1358d640..a1c4ddc27 100644
--- a/BeWo/BeWo.csproj
+++ b/BeWo/BeWo.csproj
@@ -67,6 +67,7 @@
AllRules.ruleset
true
false
+ CS0659, CS0162, CS0168, CS0649, CS0219, CS0169, CS0414, CS0067
pdbonly
diff --git a/BeWo/Core/SupportConceptGoalTreeItem.cs b/BeWo/Core/SupportConceptGoalTreeItem.cs
index b789e160c..3940531e9 100644
--- a/BeWo/Core/SupportConceptGoalTreeItem.cs
+++ b/BeWo/Core/SupportConceptGoalTreeItem.cs
@@ -6,7 +6,8 @@ using System.Diagnostics;
namespace BeWo.Core
{
- [DebuggerDisplay("{GoalEntryVM.Abbreviation}: {GoalEntryVM.Description}")]
+#pragma warning disable CS0108 // Rethrow to preserve stack details
+ [DebuggerDisplay("{GoalEntryVM.Abbreviation}: {GoalEntryVM.Description}")]
public class SupportConceptGoalTreeItem : SupportConceptGoalDC
{
private ValueListEntryVM _GoalEntryVM;
@@ -97,5 +98,6 @@ namespace BeWo.Core
}
public ValueListEntryType GoalType => GoalEntryDC?.Type ?? GoalEntryVM.Type;
- }
+ }
+#pragma warning restore CS0108 // Rethrow to preserve stack details
}
\ No newline at end of file
diff --git a/BeWo/View/Detail/Zeiterfassung/ServiceRecordView2.xaml.cs b/BeWo/View/Detail/Zeiterfassung/ServiceRecordView2.xaml.cs
index 55a272c9c..8eb07b385 100644
--- a/BeWo/View/Detail/Zeiterfassung/ServiceRecordView2.xaml.cs
+++ b/BeWo/View/Detail/Zeiterfassung/ServiceRecordView2.xaml.cs
@@ -57,7 +57,8 @@ using BeWo.View.Windows;
namespace BeWo.View.Detail.Zeiterfassung
{
- public partial class ServiceRecordView2
+#pragma warning disable CS0618
+ public partial class ServiceRecordView2
{
public static Visibility InsertedOnAndByVisibility
{
@@ -5134,33 +5135,34 @@ namespace BeWo.View.Detail.Zeiterfassung
}
}
- //public class RowBackgroundHelper
- //{
- // public static Brush GetBackground(DependencyObject obj)
- // {
- // return (Brush)obj.GetValue(BackgroundProperty);
- // }
- // public static void SetBackground(DependencyObject obj, Brush value)
- // {
- // obj.SetValue(BackgroundProperty, value);
- // }
- // public static readonly DependencyProperty BackgroundProperty =
- // DependencyProperty.RegisterAttached("Background", typeof(Brush), typeof(RowBackgroundHelper), null);
+ //public class RowBackgroundHelper
+ //{
+ // public static Brush GetBackground(DependencyObject obj)
+ // {
+ // return (Brush)obj.GetValue(BackgroundProperty);
+ // }
+ // public static void SetBackground(DependencyObject obj, Brush value)
+ // {
+ // obj.SetValue(BackgroundProperty, value);
+ // }
+ // public static readonly DependencyProperty BackgroundProperty =
+ // DependencyProperty.RegisterAttached("Background", typeof(Brush), typeof(RowBackgroundHelper), null);
- // public static bool GetIsEnabled(DependencyObject obj)
- // {
- // return (bool)obj.GetValue(IsEnabledProperty);
- // }
+ // public static bool GetIsEnabled(DependencyObject obj)
+ // {
+ // return (bool)obj.GetValue(IsEnabledProperty);
+ // }
- // public static void SetIsEnabled(DependencyObject obj, bool value)
- // {
- // obj.SetValue(IsEnabledProperty, value);
- // }
+ // public static void SetIsEnabled(DependencyObject obj, bool value)
+ // {
+ // obj.SetValue(IsEnabledProperty, value);
+ // }
- // public static readonly DependencyProperty IsEnabledProperty =
- // DependencyProperty.RegisterAttached("IsEnabled", typeof(bool), typeof(RowBackgroundHelper), new PropertyMetadata(false));
+ // public static readonly DependencyProperty IsEnabledProperty =
+ // DependencyProperty.RegisterAttached("IsEnabled", typeof(bool), typeof(RowBackgroundHelper), new PropertyMetadata(false));
- //}
+ //}
+ #pragma warning restore CS0618
}
\ No newline at end of file
diff --git a/BeWo/View/Document/DokumenteView.xaml.cs b/BeWo/View/Document/DokumenteView.xaml.cs
index 94c8f93ed..46f8b0a98 100644
--- a/BeWo/View/Document/DokumenteView.xaml.cs
+++ b/BeWo/View/Document/DokumenteView.xaml.cs
@@ -45,7 +45,9 @@ using System.ComponentModel;
namespace BeWo.View.Document
{
- public partial class DokumenteView
+
+#pragma warning disable CS0618
+ public partial class DokumenteView
{
private string _UploadFileName;
private string _NormalFileName = null;
@@ -2132,3 +2134,4 @@ namespace BeWo.View.Document
}
}
}
+#pragma warning restore CS0618
\ No newline at end of file
diff --git a/BeWo/ViewModel/GkvAbrechnungVM.cs b/BeWo/ViewModel/GkvAbrechnungVM.cs
index c39fc6d2b..bb7f10a5b 100644
--- a/BeWo/ViewModel/GkvAbrechnungVM.cs
+++ b/BeWo/ViewModel/GkvAbrechnungVM.cs
@@ -364,7 +364,7 @@ namespace BeWo.ViewModel
public bool IsReady2Create
=> InvoiceBases?.Where(x => x.IsChecked).Any() ?? false;
- public void UpdateByDataContract(GkvAbrechnungDC pDataContract)
+ internal override void UpdateByDataContract(GkvAbrechnungDC pDataContract)
{
GkvAbrechnungVersion = pDataContract.Version;
diff --git a/BeWo/ViewModel/ServiceRecordVM.cs b/BeWo/ViewModel/ServiceRecordVM.cs
index 4627e00a3..8fc1cf26c 100644
--- a/BeWo/ViewModel/ServiceRecordVM.cs
+++ b/BeWo/ViewModel/ServiceRecordVM.cs
@@ -246,8 +246,6 @@ namespace BeWo.ViewModel
_Category2Services = pCategory2Services;
ChangeGoalTree(pAllGoalCategories, pAllGoals);
- if (_Duration == null)
- _Duration = 0;
}
#endregion
@@ -284,12 +282,12 @@ namespace BeWo.ViewModel
return RoundedDuration;
}
- if (_Duration != null)
- {
+ //if (_Duration != null)
+ //{
return Duration;
- }
+ //}
- return 0;
+ //return 0;
}
}
diff --git a/Dakota/Dakota.csproj b/Dakota/Dakota.csproj
index fd5b9efb8..b0bb94690 100644
--- a/Dakota/Dakota.csproj
+++ b/Dakota/Dakota.csproj
@@ -21,6 +21,7 @@
DEBUG;TRACE
prompt
4
+ CS0168
pdbonly
diff --git a/Dakota/Models/Segmente/Segment.cs b/Dakota/Models/Segmente/Segment.cs
index f59b796b6..a84297e8e 100644
--- a/Dakota/Models/Segmente/Segment.cs
+++ b/Dakota/Models/Segmente/Segment.cs
@@ -36,7 +36,6 @@ namespace Dakota.Models.Segmente
}
public string GetRow()
{
- Dateneinheit lastzero = null;
var body = GetBody();
var bodyRev = body.ToList();
bodyRev.Reverse();
diff --git a/Data/Data.csproj b/Data/Data.csproj
index 02c24d801..fe9af4f5e 100644
--- a/Data/Data.csproj
+++ b/Data/Data.csproj
@@ -47,8 +47,7 @@
4
AllRules.ruleset
false
-
-
+ CS0659, CS0162, CS0168, CS0169
pdbonly
diff --git a/Data/Entities/Medikamentenverordnungsliste.cs b/Data/Entities/Medikamentenverordnungsliste.cs
index d19cee20d..1f150166b 100644
--- a/Data/Entities/Medikamentenverordnungsliste.cs
+++ b/Data/Entities/Medikamentenverordnungsliste.cs
@@ -9,7 +9,6 @@ namespace BeWo.Data.Entities
public static string PropertyName_Customer = "Customer";
public static string PropertyName_Gueltig = "Gueltig";
public static string PropertyName_Medikamentenverordnungen = "Medikamentenverordnungen";
- public static string PropertyName_Notice = "Notice";
public static string PropertyName_MedListType = "MedListType";
public Medikamentenverordnungsliste()
@@ -61,8 +60,11 @@ namespace BeWo.Data.Entities
}
}
+#pragma warning disable CS0108 // Rethrow to preserve stack details
private string _Notice;
+#pragma warning restore CS0108
+#pragma warning disable CS0114 // Rethrow to preserve stack details // Rethrow to preserve stack details
public virtual string Notice
{
get { return _Notice; }
@@ -72,5 +74,6 @@ namespace BeWo.Data.Entities
_Notice = value;
}
}
+#pragma warning restore CS0114 // Rethrow to preserve stack details
}
}
diff --git a/Host/Host.csproj b/Host/Host.csproj
index 2ce3e88f7..f1be87f13 100644
--- a/Host/Host.csproj
+++ b/Host/Host.csproj
@@ -40,6 +40,7 @@
4
AllRules.ruleset
false
+ CS0659, CS0162, CS0168, CS0649
pdbonly
diff --git a/Report/Report.csproj b/Report/Report.csproj
index f0c1d272b..95427a457 100644
--- a/Report/Report.csproj
+++ b/Report/Report.csproj
@@ -47,6 +47,7 @@
x86
AllRules.ruleset
false
+ CS0659, CS0162, CS0168, CS0649, CS0219
pdbonly
diff --git a/ReportService/ReportingService.csproj b/ReportService/ReportingService.csproj
index 3389bd5b8..2cd708615 100644
--- a/ReportService/ReportingService.csproj
+++ b/ReportService/ReportingService.csproj
@@ -25,6 +25,7 @@
prompt
4
false
+ CS0659, CS0162, CS0168, CS0649
pdbonly
diff --git a/Service/DCEntityMapper/WohnheimbuchungDC_Wohnheimbuchung.cs b/Service/DCEntityMapper/WohnheimbuchungDC_Wohnheimbuchung.cs
index 385514277..25dd5ad37 100644
--- a/Service/DCEntityMapper/WohnheimbuchungDC_Wohnheimbuchung.cs
+++ b/Service/DCEntityMapper/WohnheimbuchungDC_Wohnheimbuchung.cs
@@ -39,7 +39,7 @@ namespace BeWo.Service.DCEntityMapper
pEntity.Version = pDataContract.WohnheimbuchungVersion;
pEntity.Buchungsdatum = pDataContract.Buchungsdatum;
- if ((pEntity.Wohnheim == null || pEntity.Wohnheim.Oid != pDataContract.Wohnheim.WohnheimOid) && pDataContract.Wohnheim.WohnheimOid != null)
+ if (pEntity.Wohnheim == null || pEntity.Wohnheim.Oid != pDataContract.Wohnheim.WohnheimOid)
{
pEntity.Wohnheim = DAOFactory.GenericDAO.LoadByID(pDataContract.Wohnheim.WohnheimOid);
}
diff --git a/Service/Invoicing/SbdDefaultInvoiceCreation.cs b/Service/Invoicing/SbdDefaultInvoiceCreation.cs
index 78518f219..a1115cc69 100644
--- a/Service/Invoicing/SbdDefaultInvoiceCreation.cs
+++ b/Service/Invoicing/SbdDefaultInvoiceCreation.cs
@@ -365,9 +365,9 @@ namespace Service.Invoicing
return true;
}
return false;
- }
-
- public virtual InvoiceItem CreateInvoiceItem(ServiceRecordDC iServiceRecord, SupportConceptApprovalPeriod scap, Calculations calc)
+ }
+#pragma warning disable CS0114 // Rethrow to preserve stack details
+ public virtual InvoiceItem CreateInvoiceItem(ServiceRecordDC iServiceRecord, SupportConceptApprovalPeriod scap, Calculations calc)
{
var invoiceItem = new InvoiceItem();
@@ -420,9 +420,10 @@ namespace Service.Invoicing
//}
return invoiceItem;
- }
+ }
+#pragma warning restore CS0114 // Rethrow to preserve stack details
- public decimal GetCostRateValue(List crList, CostRatePeriodType t, DateTime date)
+ public decimal GetCostRateValue(List crList, CostRatePeriodType t, DateTime date)
{
var cp = crList.GetCostRatePeriodForDate(t, date);
diff --git a/Service/Service.csproj b/Service/Service.csproj
index b261cbfe7..24fe067a0 100644
--- a/Service/Service.csproj
+++ b/Service/Service.csproj
@@ -47,6 +47,7 @@
x86
AllRules.ruleset
false
+ CS0659, CS0162, CS0168, CS0649, CS0219
pdbonly
diff --git a/Service/ServiceProxy/OpenWebUIFacade.cs b/Service/ServiceProxy/OpenWebUIFacade.cs
index 001599778..ce45130a8 100644
--- a/Service/ServiceProxy/OpenWebUIFacade.cs
+++ b/Service/ServiceProxy/OpenWebUIFacade.cs
@@ -72,8 +72,8 @@ namespace BeWo.Service.ServiceProxy
},
usage = new
{
- total_duration = 0l,
- total_tokens = 68l
+ total_duration = 0L,
+ total_tokens = 68L
}
};
diff --git a/Shared/Shared.csproj b/Shared/Shared.csproj
index 0de568ce1..468c1ca64 100644
--- a/Shared/Shared.csproj
+++ b/Shared/Shared.csproj
@@ -44,6 +44,7 @@
4
AllRules.ruleset
false
+ CS0659, CS0162, CS0168
pdbonly