Main.xaml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="GCHR.Main" xmlns:view="clr-namespace:GCHR.View"
  3. xmlns:model="clr-namespace:GCHR.Model"
  4. xml:lang="de-DE"
  5. Title="GCHR - GlobalCube Herstellerreporting"
  6. WindowStyle="SingleBorderWindow" ResizeMode="CanMinimize" Loaded="WindowLoaded" SizeToContent="WidthAndHeight">
  7. <Window.Resources>
  8. <Style x:Key="TaskLabel" TargetType="{x:Type TextBlock}">
  9. <Setter Property="Margin" Value="5,2,0,5" />
  10. <Setter Property="Foreground" Value="White" />
  11. <Setter Property="Width" Value="290" />
  12. <Setter Property="HorizontalAlignment" Value="Left" />
  13. </Style>
  14. <Style x:Key="TaskHead" TargetType="{x:Type TextBlock}">
  15. <Setter Property="FontSize" Value="14" />
  16. <Setter Property="FontWeight" Value="Bold" />
  17. <Setter Property="Foreground" Value="White" />
  18. </Style>
  19. <DataTemplate x:Key="StatusTemplate" DataType="{x:Type model:Periode}">
  20. <WrapPanel>
  21. <TextBlock FontSize="14" FontWeight="Bold" Margin="5,2,135,2" Text="{Binding Klartext}" />
  22. <view:Ampel Status="Gelb" Message="{Binding Info}" />
  23. <TextBlock VerticalAlignment="Center" Margin="25,2,5,2" Text="{Binding Stand}"/>
  24. </WrapPanel>
  25. </DataTemplate>
  26. </Window.Resources>
  27. <Grid>
  28. <Grid.Background>
  29. <LinearGradientBrush StartPoint="0,1" EndPoint="0,0">
  30. <GradientStop Color="#FF9EBFDE" Offset=".5" />
  31. <GradientStop Color="#FF30567A" Offset="1" />
  32. </LinearGradientBrush>
  33. </Grid.Background>
  34. <StackPanel Opacity="1.0" Name="GridMain" Margin="10">
  35. <Label Foreground="White" FontSize="20" FontWeight="Bold" Name="Kopfzeile">AZ West - Opel</Label>
  36. <!--
  37. <ScrollViewer Height="80" Margin="10,3">
  38. <ListView Name="LvPerioden" ItemTemplate="{StaticResource StatusTemplate}"/>
  39. </ScrollViewer>
  40. -->
  41. <Label Foreground="White" FontSize="14" FontWeight="Bold">Periode auswählen</Label>
  42. <WrapPanel HorizontalAlignment="Center" Margin="0,0,0,10">
  43. <Label Foreground="White">Monat:</Label>
  44. <ComboBox Name="Monatsbox" Width="100" Margin="0,0,10,0" VerticalContentAlignment="Center">
  45. <ComboBoxItem>Januar</ComboBoxItem>
  46. <ComboBoxItem>Februar</ComboBoxItem>
  47. <ComboBoxItem>März</ComboBoxItem>
  48. <ComboBoxItem>April</ComboBoxItem>
  49. <ComboBoxItem>Mai</ComboBoxItem>
  50. <ComboBoxItem>Juni</ComboBoxItem>
  51. <ComboBoxItem>Juli</ComboBoxItem>
  52. <ComboBoxItem>August</ComboBoxItem>
  53. <ComboBoxItem>September</ComboBoxItem>
  54. <ComboBoxItem>Oktober</ComboBoxItem>
  55. <ComboBoxItem>November</ComboBoxItem>
  56. <ComboBoxItem>Dezember</ComboBoxItem>
  57. </ComboBox>
  58. <Label Foreground="White">Jahr:</Label>
  59. <ComboBox Name="Jahrbox" Width="55" Margin="0,0,15,0" VerticalContentAlignment="Center" />
  60. <Button Click="BtnStartenClick" Width="100" Name="BtnStarten">Prozess starten</Button>
  61. </WrapPanel>
  62. <Border CornerRadius="5" BorderThickness="1" BorderBrush="Black" Margin="0" Padding="10,5">
  63. <Border.Background>
  64. <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
  65. <GradientStop Color="#FF9EBFDE" Offset="-.1" />
  66. <GradientStop Color="#FF30567A" Offset="1" />
  67. </LinearGradientBrush>
  68. </Border.Background>
  69. <StackPanel>
  70. <TextBlock Style="{StaticResource TaskHead}">Vorbereitungen</TextBlock>
  71. <WrapPanel>
  72. <TextBlock Style="{StaticResource TaskLabel}">Kontenrahmen laden</TextBlock>
  73. <view:Ampel x:Name="AmpelKontenrahmenLaden" />
  74. </WrapPanel>
  75. <WrapPanel>
  76. <TextBlock Style="{StaticResource TaskLabel}">Übersetzungstabelle laden</TextBlock>
  77. <view:Ampel x:Name="AmpelÜbersetzungstabelleLaden" />
  78. </WrapPanel>
  79. <WrapPanel>
  80. <TextBlock Style="{StaticResource TaskLabel}">Übersetzungstabelle für Statistikkonten laden</TextBlock>
  81. <view:Ampel x:Name="AmpelÜbersetzungstabelleStatLaden" />
  82. </WrapPanel>
  83. <WrapPanel>
  84. <TextBlock Style="{StaticResource TaskLabel}">Vormonatswerte für manuelle Konten laden</TextBlock>
  85. <view:Ampel x:Name="AmpelManuelleLaden" />
  86. </WrapPanel>
  87. <WrapPanel>
  88. <TextBlock Style="{StaticResource TaskHead}">
  89. Verarbeitung der Konten
  90. </TextBlock>
  91. <CheckBox Name="BtnOffline" Margin="100,0,0,0" Checked="BtnOfflineChecked"
  92. Unchecked="BtnOfflineChecked">
  93. <TextBlock FontSize="9" FontWeight="Normal" Foreground="White">Offlinemodus</TextBlock>
  94. </CheckBox>
  95. </WrapPanel>
  96. <WrapPanel>
  97. <TextBlock Style="{StaticResource TaskLabel}">Import der SuSa-Konten</TextBlock>
  98. <view:Ampel x:Name="AmpelSuSaKontenImport" />
  99. </WrapPanel>
  100. <TextBlock Style="{StaticResource TaskLabel}">
  101. <CheckBox Name="BtnKeinJahresabschluss">
  102. <TextBlock Foreground="White">Eröffnungsbilanz berechnen</TextBlock>
  103. </CheckBox>
  104. </TextBlock>
  105. <WrapPanel>
  106. <TextBlock Style="{StaticResource TaskLabel}">Import der Statistikkonten</TextBlock>
  107. <view:Ampel x:Name="AmpelStatKontenImport" />
  108. </WrapPanel>
  109. <WrapPanel>
  110. <TextBlock Style="{StaticResource TaskLabel}">
  111. <CheckBox Name="BtnImportdatenSichern" Checked="BtnImportdatenSichernChecked"
  112. Unchecked="BtnImportdatenSichernUnchecked">
  113. <TextBlock Foreground="White">Importierte Werte sichern</TextBlock>
  114. </CheckBox>
  115. </TextBlock>
  116. </WrapPanel>
  117. <WrapPanel>
  118. <TextBlock Style="{StaticResource TaskLabel}">Übersetzung der Konten</TextBlock>
  119. <view:Ampel x:Name="AmpelSuSaKontenVerarbeitung" />
  120. </WrapPanel>
  121. <WrapPanel>
  122. <TextBlock Style="{StaticResource TaskLabel}">Verarbeitung der manuellen Konten</TextBlock>
  123. <view:Ampel x:Name="AmpelManuelleKontenVerarbeitung" />
  124. </WrapPanel>
  125. <TextBlock Style="{StaticResource TaskHead}">Ergebnisse exportieren</TextBlock>
  126. <WrapPanel>
  127. <TextBlock Style="{StaticResource TaskLabel}">Dateien schreiben</TextBlock>
  128. <view:Ampel x:Name="AmpelExport" />
  129. </WrapPanel>
  130. <Button HorizontalAlignment="Left" Width="130" Margin="15,3" Click="BtnProtokollClick"
  131. Name="BtnProtokoll" Visibility="Hidden">
  132. Export-Verzeichnis
  133. </Button>
  134. </StackPanel>
  135. </Border>
  136. </StackPanel>
  137. </Grid>
  138. </Window>