43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
|
|
using BS.Shared.DataContracts;
|
|
|
|
using DevExpress.Xpf.Core;
|
|
|
|
namespace BeWo.View.Detail
|
|
{
|
|
public partial class ServiceRecordHistoryView
|
|
{
|
|
public ServiceRecordHistoryView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void InitView(List<ServiceRecordHistoryDC> historyList)
|
|
{
|
|
AenderungsdatumColumn.Visible = !BeWoApp.AppSettings.HideServiceRecordInsertedByAndInsertedOn;
|
|
|
|
InitializeComponent();
|
|
datagrid_ServiceRecordHistory.ItemsSource = historyList;
|
|
GridView.BestFitColumns();
|
|
Focus();
|
|
|
|
|
|
if (!BeWoApp.AppSettings.IsEndDateVisible && !BeWoApp.AppSettings.IsOnlyYearMonthVisible)
|
|
{
|
|
RoundedDHeader.Header = "Minuten";
|
|
DurationInSTDHeader.Visible = false;
|
|
}
|
|
|
|
}
|
|
}
|
|
public class RowDetailContainerControl : ContentControl
|
|
{
|
|
public RowDetailContainerControl()
|
|
{
|
|
this.SetDefaultStyleKey(typeof(RowDetailContainerControl));
|
|
}
|
|
}
|
|
} |