diff --git a/BeWo/ConfirmDemoDialog.xaml.cs b/BeWo/ConfirmDemoDialog.xaml.cs
index 81de29d14..c31e67ffd 100644
--- a/BeWo/ConfirmDemoDialog.xaml.cs
+++ b/BeWo/ConfirmDemoDialog.xaml.cs
@@ -12,10 +12,20 @@ namespace BeWo
public ConfirmDemoDialog()
{
InitializeComponent();
- CountButton.Content = "Bitte warten (10 sek.)";
- CountButton.IsEnabled = false;
+
+ if (BeWoApp.Tenant == "7514581436")
+ {
+ CountButton.Content = "OK";
+ CountButton.IsEnabled = true;
+ }
+ else
+ {
+ CountButton.Content = "Bitte warten (10 sek.)";
+ CountButton.IsEnabled = false;
- this.Loaded += new RoutedEventHandler(ConfirmDemoDialog_Loaded);
+ this.Loaded += new RoutedEventHandler(ConfirmDemoDialog_Loaded);
+ }
+
}
@@ -23,7 +33,7 @@ namespace BeWo
{
int count = 9;
-
+
new DispatcherTimer(
TimeSpan.FromMilliseconds(1000),
DispatcherPriority.Background,
diff --git a/BeWo/MainWindow.xaml.cs b/BeWo/MainWindow.xaml.cs
index 3f506a8a3..2696b8182 100644
--- a/BeWo/MainWindow.xaml.cs
+++ b/BeWo/MainWindow.xaml.cs
@@ -44,7 +44,7 @@ namespace BeWo
// dlg.ShowDialog();
//}
#else
- if (BeWoApp.Tenant == "demo")
+ if (BeWoApp.Tenant == "demo" || BeWoApp.Tenant == "7514581436")
{
var dlg = new ConfirmDemoDialog();
dlg.ShowDialog();
diff --git a/BeWo/View/BeWoFileView.xaml b/BeWo/View/BeWoFileView.xaml
index e11e8ec68..4152ff778 100644
--- a/BeWo/View/BeWoFileView.xaml
+++ b/BeWo/View/BeWoFileView.xaml
@@ -87,7 +87,7 @@
-
+
diff --git a/Model/Changes_alle_fuer_neue_db.txt b/Model/Changes_alle_fuer_neue_db.txt
index 1ed60f7af..f5babe40c 100644
--- a/Model/Changes_alle_fuer_neue_db.txt
+++ b/Model/Changes_alle_fuer_neue_db.txt
@@ -1696,4 +1696,45 @@ CREATE TABLE `person2team` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `Team`
-ADD COLUMN `IsOwnChatTeam` int DEFAULT NULL;
\ No newline at end of file
+ADD COLUMN `IsOwnChatTeam` int DEFAULT NULL;
+
+CREATE TABLE `StoredFile` (
+`Oid` bigint NOT NULL AUTO_INCREMENT,
+`InsTs` datetime DEFAULT NULL,
+`InsUser` varchar(255) DEFAULT NULL,
+`Notice` varchar(1024) DEFAULT NULL,
+`Tid` int DEFAULT NULL,
+`UdpUser` varchar(255) DEFAULT NULL,
+`Version` bigint DEFAULT NULL,
+`IsActive` tinyint DEFAULT NULL,
+`SystemEntryID` int DEFAULT NULL,
+`FileName` varchar(255),
+`FilePath` varchar(1024),
+`ContentType` varchar(127),
+`Size` bigint,
+`Checksum` varchar(64),
+`BeWoObjectTid` int,
+`BeWoObjectOid` bigint,
+PRIMARY KEY (`Oid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+ALTER TABLE `invoicebase`
+ADD COLUMN `XRechnungStoredFileOid` BIGINT NULL DEFAULT NULL AFTER `StornoInvoiceBaseOid`,
+ADD INDEX `FK_IN_SFILE_idx` (`XRechnungStoredFileOid` ASC);
+
+ALTER TABLE `invoicebase`
+ADD CONSTRAINT `FK_IN_SFILE`
+ FOREIGN KEY (`XRechnungStoredFileOid`)
+ REFERENCES `storedfile` (`Oid`)
+ ON DELETE CASCADE
+ ON UPDATE CASCADE;
+
+
+ALTER TABLE `team`
+DROP FOREIGN KEY `FK_TEAM_LEADER_EMPLOYEE`;
+ALTER TABLE `team`
+CHANGE COLUMN `EmployeeOid` `EmployeeOid` BIGINT NULL ;
+ALTER TABLE `team`
+ADD CONSTRAINT `FK_TEAM_LEADER_EMPLOYEE`
+ FOREIGN KEY (`EmployeeOid`)
+ REFERENCES `employee` (`Oid`);
diff --git a/Service/Plugins/PluginLoader.cs b/Service/Plugins/PluginLoader.cs
index 1443a127d..88bfcdc49 100644
--- a/Service/Plugins/PluginLoader.cs
+++ b/Service/Plugins/PluginLoader.cs
@@ -178,7 +178,7 @@ namespace BeWo.Service.Plugins
//t = "6340891020"; // Caritas Ahlen
//t = "3659854106"; // alpha e.V.
//t = "5809130435"; // Lebenshilfe Kusel
- //t = "3367947706"; // PaS Mönchengladbach
+ t = "3367947706"; // PaS Mönchengladbach
//t = "2331203795"; // BeWo für dich
//t = "5426234256"; // SKM Leverkusen
//t = "4137042939"; // MLG Lebengestalten / Haus Müllestumpe
diff --git a/Service/ServiceContracts/IEmployeeService.cs b/Service/ServiceContracts/IEmployeeService.cs
index ea68781db..3d1af9954 100644
--- a/Service/ServiceContracts/IEmployeeService.cs
+++ b/Service/ServiceContracts/IEmployeeService.cs
@@ -128,6 +128,11 @@ namespace BeWo.Service.ServiceContracts
[OperationContract]
List GetAllTeamsCompact();
+
+ [FaultContract(typeof(BeWoFault))]
+ [OperationContract]
+ List GetAllTeamsIncludingOwnChatCompact();
+
[FaultContract(typeof (BeWoFault))]
[OperationContract]
List GetAssessmentSheetEntriesForCustomer(long customerOid, DateTime startDt,
diff --git a/Shared/DataContracts/ClientPartials/FlatSupportConceptTreeNodeDC.cs b/Shared/DataContracts/ClientPartials/FlatSupportConceptTreeNodeDC.cs
index 78a2e8e26..ba397d206 100644
--- a/Shared/DataContracts/ClientPartials/FlatSupportConceptTreeNodeDC.cs
+++ b/Shared/DataContracts/ClientPartials/FlatSupportConceptTreeNodeDC.cs
@@ -28,7 +28,12 @@ namespace BS.Shared.DataContracts
if (this.SupportConceptTreeNodeDC.CostBearer != null)
{
- return this.SupportConceptTreeNodeDC.CostBearer.ToString();
+ String cb = this.SupportConceptTreeNodeDC.CostBearer.ToString();
+ if (this.SupportConceptTreeNodeDC.SupportConceptCostBearerRelDC != null && this.SupportConceptTreeNodeDC.SupportConceptCostBearerRelDC.Status != CostBearer2SupportConceptStatus.Approved)
+ {
+ cb = String.Format("{0} (nicht bewilligt)", cb);
+ }
+ return cb;
}
return string.Empty;