5 Commits

Author SHA1 Message Date
bc3486abea Bug + cleaner 2024-10-16 14:11:24 +02:00
923830a90f Merge 2024-10-16 09:24:57 +02:00
3ba48ca760 format 2024-10-09 13:28:20 +02:00
e8bd6bdbe5 Smart Selection 2024-10-08 10:56:28 +02:00
983b6e01fd DebugConfig 2024-10-08 10:45:01 +02:00
5 changed files with 22 additions and 9 deletions

View File

@@ -12,6 +12,7 @@ namespace BeWo
FeatureCustomerWohnhilfe,
FeatureWohnheimWohneinheit,
FeatureAuswertungenQuittierungsbelege,
FeatureDokumentenVorlage,
FeatureDakota
}
@@ -24,7 +25,7 @@ namespace BeWo
{
#if DEBUG
//return _CurrentConfig ?? (_CurrentConfig = SimpleAutoLogin);
return _CurrentConfig ?? (_CurrentConfig = Feature_Dokumenten_Vorlage);
#endif
@@ -86,5 +87,12 @@ namespace BeWo
SelectView = UIContext.Finance,
SelectIndex = 8
};
public static DebugConfig Feature_Dokumenten_Vorlage => new DebugConfig()
{
DebugConfigMode = DebugConfigMode.FeatureDokumentenVorlage,
AutoLogin = true,
SelectView = UIContext.Dokumente
};
}
}

View File

@@ -260,11 +260,20 @@ namespace BeWo.View.Detail
}
private void TemplatesTreeView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
var selection = TreeListControlTemplates.SelectedItem as PlatzhalterVM;
var platzhalter = TreeListControlTemplates.SelectedItem as PlatzhalterVM;
if (selection.Platzhalter != null)
if (platzhalter.Platzhalter != null)
{
EditorControl.Document.InsertText(EditorControl.Document.CaretPosition, "[" + selection.Platzhalter + "]");
var doc = EditorControl.Document;
var selection = doc.Selection;
if(selection.Length > 0)
{
doc.Delete(selection);
}
var range = EditorControl.Document.InsertText(EditorControl.Document.CaretPosition, "[" + platzhalter.Platzhalter + "]");
EditorControl.Document.Selection = range;
}
}
}

View File

@@ -121,7 +121,7 @@
</StackPanel>
</GroupBox.Header>
<Grid Background="{StaticResource ObjectEditBackgroundBrush}">
<TabControl Visibility="Visible">
<TabControl Margin="1" Visibility="Visible">
<TabItem Visibility="Visible">
<TabItem.Header>
<TextBlock

View File

@@ -1717,7 +1717,6 @@ namespace BeWo.View.Master
templateVM.Data = Encoding.ASCII.GetBytes(text);
UploadTemplateBasedDocument(control.selectedFolder.DataContract.BeWoFolderDC, templateVM.Name, (long)objectOid, templateVM);
}
}
}
}

View File

@@ -21,7 +21,6 @@ namespace BeWo.Service.Vorlagen
var alleVorlagentabellen = DAOFactory.GenericDAO.GetAllActive<Vorlagentabelle>();
return MapperFactory.VorlagentabelleDC_Vorlagentabelle.MapToNewDCs(alleVorlagentabellen);
}
public static DokumentvorlageDC InsertTemplate(DokumentvorlageDC dc)
{
@@ -162,8 +161,6 @@ namespace BeWo.Service.Vorlagen
sonstiges.Children.Add(datum);
#endregion
liste.Add(personendaten);
liste.Add(adressdatenKlient);
//liste.Add(adressdatenOrganisation);