KTDReaderGUI fertig
This commit is contained in:
@@ -7,20 +7,49 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KTDReaderGUI", "KTDReaderGU
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dakota", "..\..\Dakota\Dakota.csproj", "{47331732-DD96-4075-869F-83AA9F3F9937}"
|
||||
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
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
DebugRemote|Any CPU = DebugRemote|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{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}.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.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.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.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
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
@@ -94,5 +94,23 @@
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</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" />
|
||||
</Project>
|
||||
@@ -1,27 +1,95 @@
|
||||
<Window x:Class="KTDReaderGUI.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:KTDReaderGUI"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="450" Width="800">
|
||||
<Window
|
||||
x:Class="KTDReaderGUI.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:KTDReaderGUI"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
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.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Column="1" Margin="10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<ColumnDefinition Width="10" />
|
||||
<ColumnDefinition Width="auto" MinWidth="200" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<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="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Grid.Row="0" Grid.Column="0">IK Krankenkasse</Label>
|
||||
<TextBlock Grid.Row="0" Grid.Column="1"></TextBlock>
|
||||
|
||||
<Label Grid.Row="0" Grid.Column="0">IK Krankenkasse</Label>
|
||||
|
||||
<Label Grid.Row="0" Grid.Column="0">IK Krankenkasse</Label>
|
||||
<TextBox
|
||||
x:Name="input_krankenkasse"
|
||||
Grid.Row="0"
|
||||
Grid.Column="2" />
|
||||
|
||||
<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>
|
||||
</Window>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using System;
|
||||
using Dakota.Logic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -20,9 +22,33 @@ namespace KTDReaderGUI
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
private DakotaKTDReader Reader;
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
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