KTDReaderGUI fertig
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -651,3 +651,6 @@ obj
|
|||||||
/BeWo.Styles/bin
|
/BeWo.Styles/bin
|
||||||
/BeWo.Styles/obj
|
/BeWo.Styles/obj
|
||||||
/Tools/KTDReaderGUI/.vs*
|
/Tools/KTDReaderGUI/.vs*
|
||||||
|
/Tools/KTDReaderGUI/packages
|
||||||
|
/Tools/KTDReaderGUI/KTDReaderGUI/bin/Debug
|
||||||
|
/Tools/KTDReaderGUI/KTDReaderGUI/bin/Release
|
||||||
|
|||||||
@@ -7,4 +7,10 @@
|
|||||||
<SolidColorBrush x:Key="ControlMouseOverBackgroundBrush" Color="#FFDCA158" />
|
<SolidColorBrush x:Key="ControlMouseOverBackgroundBrush" Color="#FFDCA158" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TabItemHotTextBrush" Color="#FFAB4A07" />
|
<SolidColorBrush x:Key="TabItemHotTextBrush" Color="#FFAB4A07" />
|
||||||
|
|
||||||
|
<LinearGradientBrush x:Key="ApplicationBackground" StartPoint="0.5,0" EndPoint="0.5,1">
|
||||||
|
<GradientStop Offset="0.38" Color="#FFDADADB" />
|
||||||
|
<GradientStop Offset="0.725" Color="#FFA9B8C2" />
|
||||||
|
<GradientStop Offset="0.91" Color="#FF4E565A" />
|
||||||
|
</LinearGradientBrush>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -7,20 +7,49 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KTDReaderGUI", "KTDReaderGU
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dakota", "..\..\Dakota\Dakota.csproj", "{47331732-DD96-4075-869F-83AA9F3F9937}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dakota", "..\..\Dakota\Dakota.csproj", "{47331732-DD96-4075-869F-83AA9F3F9937}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeWo.Styles", "..\..\BeWo.Styles\BeWo.Styles.csproj", "{9BAB16DE-E284-4B57-BD09-763FC5CE521A}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shared", "..\..\Shared\Shared.csproj", "{2F50B83D-A3F0-4EC4-979A-3F9B7E3D8ED4}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Controls", "..\..\Controls\Controls.csproj", "{D5E53B0F-BF5A-41E8-93E2-0F32845FC729}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
DebugRemote|Any CPU = DebugRemote|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{F8EE2279-EDEA-4D4A-9D0F-89B7DA7E6AC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{F8EE2279-EDEA-4D4A-9D0F-89B7DA7E6AC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{F8EE2279-EDEA-4D4A-9D0F-89B7DA7E6AC2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{F8EE2279-EDEA-4D4A-9D0F-89B7DA7E6AC2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{F8EE2279-EDEA-4D4A-9D0F-89B7DA7E6AC2}.DebugRemote|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{F8EE2279-EDEA-4D4A-9D0F-89B7DA7E6AC2}.DebugRemote|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{F8EE2279-EDEA-4D4A-9D0F-89B7DA7E6AC2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{F8EE2279-EDEA-4D4A-9D0F-89B7DA7E6AC2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{F8EE2279-EDEA-4D4A-9D0F-89B7DA7E6AC2}.Release|Any CPU.Build.0 = Release|Any CPU
|
{F8EE2279-EDEA-4D4A-9D0F-89B7DA7E6AC2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{47331732-DD96-4075-869F-83AA9F3F9937}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{47331732-DD96-4075-869F-83AA9F3F9937}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{47331732-DD96-4075-869F-83AA9F3F9937}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{47331732-DD96-4075-869F-83AA9F3F9937}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{47331732-DD96-4075-869F-83AA9F3F9937}.DebugRemote|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{47331732-DD96-4075-869F-83AA9F3F9937}.DebugRemote|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{47331732-DD96-4075-869F-83AA9F3F9937}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{47331732-DD96-4075-869F-83AA9F3F9937}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{47331732-DD96-4075-869F-83AA9F3F9937}.Release|Any CPU.Build.0 = Release|Any CPU
|
{47331732-DD96-4075-869F-83AA9F3F9937}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{9BAB16DE-E284-4B57-BD09-763FC5CE521A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{9BAB16DE-E284-4B57-BD09-763FC5CE521A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{9BAB16DE-E284-4B57-BD09-763FC5CE521A}.DebugRemote|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{9BAB16DE-E284-4B57-BD09-763FC5CE521A}.DebugRemote|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{9BAB16DE-E284-4B57-BD09-763FC5CE521A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{9BAB16DE-E284-4B57-BD09-763FC5CE521A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{2F50B83D-A3F0-4EC4-979A-3F9B7E3D8ED4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{2F50B83D-A3F0-4EC4-979A-3F9B7E3D8ED4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{2F50B83D-A3F0-4EC4-979A-3F9B7E3D8ED4}.DebugRemote|Any CPU.ActiveCfg = DebugRemote|Any CPU
|
||||||
|
{2F50B83D-A3F0-4EC4-979A-3F9B7E3D8ED4}.DebugRemote|Any CPU.Build.0 = DebugRemote|Any CPU
|
||||||
|
{2F50B83D-A3F0-4EC4-979A-3F9B7E3D8ED4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{2F50B83D-A3F0-4EC4-979A-3F9B7E3D8ED4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{D5E53B0F-BF5A-41E8-93E2-0F32845FC729}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{D5E53B0F-BF5A-41E8-93E2-0F32845FC729}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{D5E53B0F-BF5A-41E8-93E2-0F32845FC729}.DebugRemote|Any CPU.ActiveCfg = DebugRemote|Any CPU
|
||||||
|
{D5E53B0F-BF5A-41E8-93E2-0F32845FC729}.DebugRemote|Any CPU.Build.0 = DebugRemote|Any CPU
|
||||||
|
{D5E53B0F-BF5A-41E8-93E2-0F32845FC729}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{D5E53B0F-BF5A-41E8-93E2-0F32845FC729}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
@@ -94,5 +94,23 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\..\BeWo.Styles\BeWo.Styles.csproj">
|
||||||
|
<Project>{9bab16de-e284-4b57-bd09-763fc5ce521a}</Project>
|
||||||
|
<Name>BeWo.Styles</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\..\..\Controls\Controls.csproj">
|
||||||
|
<Project>{d5e53b0f-bf5a-41e8-93e2-0f32845fc729}</Project>
|
||||||
|
<Name>Controls</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\..\..\Dakota\Dakota.csproj">
|
||||||
|
<Project>{47331732-DD96-4075-869F-83AA9F3F9937}</Project>
|
||||||
|
<Name>Dakota</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\..\..\Shared\Shared.csproj">
|
||||||
|
<Project>{2f50b83d-a3f0-4ec4-979a-3f9b7e3d8ed4}</Project>
|
||||||
|
<Name>Shared</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,27 +1,95 @@
|
|||||||
<Window x:Class="KTDReaderGUI.MainWindow"
|
<Window
|
||||||
|
x:Class="KTDReaderGUI.MainWindow"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
xmlns:local="clr-namespace:KTDReaderGUI"
|
xmlns:local="clr-namespace:KTDReaderGUI"
|
||||||
mc:Ignorable="d"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
Title="MainWindow" Height="450" Width="800">
|
Title="MainWindow"
|
||||||
|
Width="500"
|
||||||
|
Height="400"
|
||||||
|
Background="{DynamicResource ApplicationBackground}"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
<Window.Resources>
|
||||||
|
<ResourceDictionary>
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<!-- Common base theme -->
|
||||||
|
<ResourceDictionary Source="pack://application:,,,/BeWo.Styles;component/ModernOrangeBlack.xaml" />
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</Window.Resources>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
<ColumnDefinition Width="auto" />
|
<ColumnDefinition Width="auto" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid Grid.Column="1" Margin="10">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="auto" />
|
<ColumnDefinition Width="auto" />
|
||||||
<ColumnDefinition Width="auto"/>
|
<ColumnDefinition Width="10" />
|
||||||
|
<ColumnDefinition Width="auto" MinWidth="200" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="auto" />
|
<RowDefinition Height="auto" />
|
||||||
<RowDefinition Height="auto" />
|
<RowDefinition Height="auto" />
|
||||||
<RowDefinition Height="auto" />
|
<RowDefinition Height="auto" />
|
||||||
|
<RowDefinition Height="auto" />
|
||||||
|
<RowDefinition Height="auto" />
|
||||||
|
<RowDefinition Height="auto" />
|
||||||
|
<RowDefinition Height="auto" />
|
||||||
|
<RowDefinition Height="*" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<Label Grid.Row="0" Grid.Column="0">IK Krankenkasse</Label>
|
<Label Grid.Row="0" Grid.Column="0">IK Krankenkasse</Label>
|
||||||
<TextBlock Grid.Row="0" Grid.Column="1"></TextBlock>
|
<TextBox
|
||||||
|
x:Name="input_krankenkasse"
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="2" />
|
||||||
|
|
||||||
<Label Grid.Row="0" Grid.Column="0">IK Krankenkasse</Label>
|
<Label Grid.Row="1" Grid.Column="0">Leistungserbringergruppe</Label>
|
||||||
|
<TextBox
|
||||||
|
x:Name="input_leistungsgruppe"
|
||||||
|
Grid.Row="1"
|
||||||
|
Grid.Column="2" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
Grid.Row="2"
|
||||||
|
Grid.ColumnSpan="3"
|
||||||
|
Width="100"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Click="Button_Click">
|
||||||
|
Ermitteln
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Label Grid.Row="3" Grid.Column="0">IK Krankenkasse</Label>
|
||||||
|
<TextBox
|
||||||
|
x:Name="out_ikkrankenkasse"
|
||||||
|
Grid.Row="3"
|
||||||
|
Grid.Column="2"
|
||||||
|
IsEnabled="False" />
|
||||||
|
|
||||||
|
<Label Grid.Row="4" Grid.Column="0">IK Kostenträger</Label>
|
||||||
|
<TextBox
|
||||||
|
x:Name="out_ikkostentrager"
|
||||||
|
Grid.Row="4"
|
||||||
|
Grid.Column="2"
|
||||||
|
IsEnabled="False" />
|
||||||
|
|
||||||
|
<Label Grid.Row="5" Grid.Column="0">IK Datenannahmestelle</Label>
|
||||||
|
<TextBox
|
||||||
|
x:Name="out_ikdatenannahmestelle"
|
||||||
|
Grid.Row="5"
|
||||||
|
Grid.Column="2"
|
||||||
|
IsEnabled="False" />
|
||||||
|
|
||||||
|
<Label Grid.Row="6" Grid.Column="0">Bez Datenannahmestelle</Label>
|
||||||
|
<TextBox
|
||||||
|
x:Name="out_bezdatenannahmestelle"
|
||||||
|
Grid.Row="6"
|
||||||
|
Grid.Column="2"
|
||||||
|
IsEnabled="False" />
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
using System;
|
using Dakota.Logic;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -20,9 +22,33 @@ namespace KTDReaderGUI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class MainWindow : Window
|
public partial class MainWindow : Window
|
||||||
{
|
{
|
||||||
|
private DakotaKTDReader Reader;
|
||||||
|
|
||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
|
var root = Directory.GetCurrentDirectory();
|
||||||
|
|
||||||
|
var path = System.IO.Path.Combine(root, "KTDatei");
|
||||||
|
|
||||||
|
Reader = new DakotaKTDReader(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
var ikkrankenkasse = input_krankenkasse.Text;
|
||||||
|
var leistungsgruppe = input_leistungsgruppe.Text;
|
||||||
|
|
||||||
|
if (ikkrankenkasse.Length != 10 || leistungsgruppe.Length != 7)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var rtn = Reader.Resolve(ikkrankenkasse, leistungsgruppe.Substring(0, 2), leistungsgruppe.Substring(2, 5));
|
||||||
|
|
||||||
|
out_ikkrankenkasse.Text = rtn.Item3;
|
||||||
|
out_ikkostentrager.Text = rtn.Item2;
|
||||||
|
out_ikdatenannahmestelle.Text = rtn.Item1;
|
||||||
|
out_bezdatenannahmestelle.Text = rtn.Item4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user