|
@@ -10,7 +10,7 @@
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:GeneralData="clr-namespace:GeneralData;assembly=GeneralData"
|
|
xmlns:GeneralData="clr-namespace:GeneralData;assembly=GeneralData"
|
|
xmlns:Convert="clr-namespace:EEMSUIClient.Converter"
|
|
xmlns:Convert="clr-namespace:EEMSUIClient.Converter"
|
|
- Title="MainWindow" Height="450" Width="800"
|
|
|
|
|
|
+ Title="EEMS Client" Height="450" Width="900"
|
|
WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize" WindowStyle="SingleBorderWindow">
|
|
WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize" WindowStyle="SingleBorderWindow">
|
|
<Window.Resources>
|
|
<Window.Resources>
|
|
<ObjectDataProvider x:Key="DeviceModelProvider" MethodName="GetNames" ObjectType="{x:Type sys:Enum}">
|
|
<ObjectDataProvider x:Key="DeviceModelProvider" MethodName="GetNames" ObjectType="{x:Type sys:Enum}">
|
|
@@ -18,83 +18,190 @@
|
|
<x:Type TypeName="GeneralData:DeviceModel"/>
|
|
<x:Type TypeName="GeneralData:DeviceModel"/>
|
|
</ObjectDataProvider.MethodParameters>
|
|
</ObjectDataProvider.MethodParameters>
|
|
</ObjectDataProvider>
|
|
</ObjectDataProvider>
|
|
|
|
+ <ObjectDataProvider x:Key="DeviceStatusProvider" MethodName="GetNames" ObjectType="{x:Type sys:Enum}">
|
|
|
|
+ <ObjectDataProvider.MethodParameters>
|
|
|
|
+ <x:Type TypeName="GeneralData:DeviceStatus"/>
|
|
|
|
+ </ObjectDataProvider.MethodParameters>
|
|
|
|
+ </ObjectDataProvider>
|
|
|
|
+ <ObjectDataProvider x:Key="RecipeTypeProvider" MethodName="GetNames" ObjectType="{x:Type sys:Enum}">
|
|
|
|
+ <ObjectDataProvider.MethodParameters>
|
|
|
|
+ <x:Type TypeName="GeneralData:RecipeType"/>
|
|
|
|
+ </ObjectDataProvider.MethodParameters>
|
|
|
|
+ </ObjectDataProvider>
|
|
<Convert:DeviceModelEnumConvert x:Key="EnumConverter"/>
|
|
<Convert:DeviceModelEnumConvert x:Key="EnumConverter"/>
|
|
|
|
+ <Convert:DeviceStatusEnumConvert x:Key="StatusEnumConverter"/>
|
|
|
|
+ <Convert:RecipeTypeEnumConvert x:Key="RecipeEnumConverter"/>
|
|
</Window.Resources>
|
|
</Window.Resources>
|
|
- <Grid Margin="5,5,5,5" >
|
|
|
|
|
|
+ <Grid>
|
|
<Grid.RowDefinitions>
|
|
<Grid.RowDefinitions>
|
|
- <RowDefinition Height="1*"/>
|
|
|
|
- <RowDefinition Height="3*"/>
|
|
|
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
|
+ <RowDefinition Height="4"/>
|
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
|
+ <RowDefinition Height="4"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
- <Grid Grid.Row="0" Background="#FFCECECE">
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
- <RowDefinition Height="1*"/>
|
|
|
|
- <RowDefinition Height="1*"/>
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
|
- <ColumnDefinition Width="1*"/>
|
|
|
|
- <ColumnDefinition Width="1*"/>
|
|
|
|
- <ColumnDefinition Width="1*"/>
|
|
|
|
- <ColumnDefinition Width="1*"/>
|
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
|
- <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
|
- <Label Content="IP:" Height="30"/>
|
|
|
|
- <TextBox Text="{Binding Address.Ip}" Width="150" Height="30" IsEnabled="{Binding IsNotConnected}"/>
|
|
|
|
- </StackPanel>
|
|
|
|
- <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
|
- <Label Content="Port:" Height="30"/>
|
|
|
|
- <TextBox Text="{Binding Address.Port}" Width="150" Height="30" IsEnabled="{Binding IsNotConnected}"/>
|
|
|
|
- </StackPanel>
|
|
|
|
- <StackPanel Grid.Row="0" Grid.Column="2" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
|
- <Label Content="HubName:" Height="30"/>
|
|
|
|
- <TextBox Text="{Binding Address.HubName}" Width="100" Height="30" IsEnabled="{Binding IsNotConnected}"/>
|
|
|
|
- </StackPanel>
|
|
|
|
- <StackPanel Grid.Row="0" Grid.Column="3" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
|
- <Button Content="Connect" Command="{Binding ConnectCommand}" Height="30" Width="60" IsEnabled="{Binding IsNotConnected}"/>
|
|
|
|
- </StackPanel>
|
|
|
|
- <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
|
|
- <Button Content="Recipe" Command="{Binding SelectRecipeCommand}" Height="30" Width="60"/>
|
|
|
|
- </StackPanel>
|
|
|
|
- <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
|
|
- <TextBox Text="{Binding LocalFilePathInfo.RecipePath}" IsReadOnly="True" Height="30" Width="160"/>
|
|
|
|
- </StackPanel>
|
|
|
|
- <StackPanel Grid.Row="1" Grid.Column="2" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
|
|
- <Button Content="Config" Command="{Binding SelectConfigCommand}" Height="30" Width="60"/>
|
|
|
|
- </StackPanel>
|
|
|
|
- <StackPanel Grid.Row="1" Grid.Column="3" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
|
- <TextBox Text="{Binding LocalFilePathInfo.ConfigPath}" IsReadOnly="True" Height="30" Width="160"/>
|
|
|
|
- </StackPanel>
|
|
|
|
- </Grid>
|
|
|
|
- <Grid Grid.Row="1" Margin="3,5,3,5" Background="#FFCECECE">
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
- <RowDefinition Height="1*"/>
|
|
|
|
- <RowDefinition Height="1*"/>
|
|
|
|
- <RowDefinition Height="1*"/>
|
|
|
|
- <RowDefinition Height="1*"/>
|
|
|
|
- <RowDefinition Height="1*"/>
|
|
|
|
- <RowDefinition Height="1*"/>
|
|
|
|
- <RowDefinition Height="1*"/>
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
|
|
+ <Border Grid.Row="0" Background="#FFCECECE" IsEnabled="{Binding IsNotConnected}">
|
|
|
|
+ <Grid Margin="8">
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
+ <ColumnDefinition Width="auto"/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+
|
|
|
|
+ <ColumnDefinition Width="auto"/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+
|
|
|
|
+ <ColumnDefinition Width="auto"/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
+
|
|
|
|
+ <Label Grid.Column="0" Content="IP:" />
|
|
|
|
+ <TextBox Grid.Column="2" Text="{Binding Address.Ip}" VerticalContentAlignment="Center" />
|
|
|
|
+
|
|
|
|
+ <Label Grid.Column="4" Content="Port:" />
|
|
|
|
+ <TextBox Grid.Column="6" Text="{Binding Address.Port}" VerticalContentAlignment="Center" />
|
|
|
|
+
|
|
|
|
+ <Label Grid.Column="8" Content="HubName:" />
|
|
|
|
+ <TextBox Grid.Column="10" Text="{Binding Address.HubName}" VerticalContentAlignment="Center" />
|
|
|
|
+
|
|
|
|
+ <Button Grid.Column="12" Content="Connect" Command="{Binding ConnectCommand}"/>
|
|
|
|
+
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
|
|
+
|
|
|
|
+ <Border Grid.Row="2" Background="#FFCECECE">
|
|
|
|
+ <Grid Margin="8" Height="30">
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
+ <ColumnDefinition Width="60"/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
+ <ColumnDefinition Width="16"/>
|
|
|
|
+
|
|
|
|
+ <ColumnDefinition Width="60"/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
+ <Button Content="Recipe" Command="{Binding SelectRecipeCommand}" />
|
|
|
|
+ <TextBox Grid.Column="2" Text="{Binding LocalFilePathInfo.RecipePath}" IsReadOnly="True" VerticalContentAlignment="Center" />
|
|
|
|
+ <Button Grid.Column="4" Content="Config" Command="{Binding SelectConfigCommand}" />
|
|
|
|
+ <TextBox Grid.Column="6" Text="{Binding LocalFilePathInfo.ConfigPath}" IsReadOnly="True" VerticalContentAlignment="Center" />
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
|
|
+
|
|
|
|
+ <Grid Grid.Row="4" >
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
- <ColumnDefinition Width="0.8*"/>
|
|
|
|
- <ColumnDefinition Width="1*"/>
|
|
|
|
- <ColumnDefinition Width="1*"/>
|
|
|
|
|
|
+ <ColumnDefinition Width="420"/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+ <ColumnDefinition Width="300"/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
- <Label Grid.Row="0" Grid.Column="0" Content="Device Model:" HorizontalAlignment="Right" Height="30"/>
|
|
|
|
- <ComboBox Grid.Row="0" Grid.Column="1" ItemsSource="{Binding Source={StaticResource DeviceModelProvider} }" SelectedItem="{Binding Running.DeviceInfo.DeviceModel, Converter={StaticResource EnumConverter}}" Height="30"/>
|
|
|
|
- <Label Grid.Row="1" Grid.Column="0" Content="Device SubModel:" HorizontalAlignment="Right" Height="30"/>
|
|
|
|
- <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding Running.DeviceInfo.DeviceSubModel}" Height="30"/>
|
|
|
|
- <Label Grid.Row="2" Grid.Column="0" Content="Device Name:" HorizontalAlignment="Right" Height="30"/>
|
|
|
|
- <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding Running.DeviceInfo.DeviceName}" Height="30"/>
|
|
|
|
- <Label Grid.Row="3" Grid.Column="0" Content="Position:" HorizontalAlignment="Right" Height="30"/>
|
|
|
|
- <TextBox Grid.Row="3" Grid.Column="1" Text="{Binding Running.DeviceInfo.Position}" Height="30"/>
|
|
|
|
- <Label Grid.Row="4" Grid.Column="0" Content="Software Version:" HorizontalAlignment="Right" Height="30"/>
|
|
|
|
- <TextBox Grid.Row="4" Grid.Column="1" Text="{Binding Running.DeviceInfo.SoftwareVersion}" Height="30"/>
|
|
|
|
- <Label Grid.Row="5" Grid.Column="0" Content="DB Connection String:" HorizontalAlignment="Right" Height="30"/>
|
|
|
|
- <TextBox Grid.Row="5" Grid.Column="1" Text="{Binding Running.DeviceInfo.DBConnectionString}" Height="30"/>
|
|
|
|
- <Label Grid.Row="6" Grid.Column="0" Content="Guid:" HorizontalAlignment="Right" Height="30"/>
|
|
|
|
- <TextBox Grid.Row="6" Grid.Column="1" Text="{Binding Running.DeviceInfo.Guid}" Height="30" IsReadOnly="True"/>
|
|
|
|
- <Button Grid.Row="6" Grid.Column="2" Content="Register" Command="{Binding RegisterCommand}" Height="30" Width="100"/>
|
|
|
|
- <Button Grid.Row="0" Grid.Column="2" Content="Trigger" Command="{Binding TriggerCommand}" Height="30" Width="100"/>
|
|
|
|
|
|
+ <Border Background="#FFCECECE">
|
|
|
|
+ <Grid Margin="8">
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
+ <ColumnDefinition Width="auto"/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
+ <Label Grid.Row="0" Grid.Column="0" Content="Device Model:" VerticalAlignment="Center"/>
|
|
|
|
+ <ComboBox Grid.Row="0" Grid.Column="2" VerticalContentAlignment="Center"
|
|
|
|
+ ItemsSource="{Binding Source={StaticResource DeviceModelProvider} }" SelectedItem="{Binding Running.DeviceInfo.DeviceModel, Converter={StaticResource EnumConverter}}"/>
|
|
|
|
+
|
|
|
|
+ <Label Grid.Row="2" Grid.Column="0" Content="Device SubModel:" VerticalAlignment="Center"/>
|
|
|
|
+ <TextBox Grid.Row="2" Grid.Column="2" Text="{Binding Running.DeviceInfo.DeviceSubModel}" VerticalContentAlignment="Center"/>
|
|
|
|
+
|
|
|
|
+ <Label Grid.Row="4" Grid.Column="0" Content="Device Name:" VerticalAlignment="Center" />
|
|
|
|
+ <TextBox Grid.Row="4" Grid.Column="2" Text="{Binding Running.DeviceInfo.DeviceName}" VerticalContentAlignment="Center"/>
|
|
|
|
+
|
|
|
|
+ <Label Grid.Row="6" Grid.Column="0" Content="Position:" VerticalAlignment="Center"/>
|
|
|
|
+ <TextBox Grid.Row="6" Grid.Column="2" Text="{Binding Running.DeviceInfo.Position}" VerticalContentAlignment="Center"/>
|
|
|
|
+
|
|
|
|
+ <Label Grid.Row="8" Grid.Column="0" Content="Software Version:" VerticalAlignment="Center"/>
|
|
|
|
+ <TextBox Grid.Row="8" Grid.Column="2" Text="{Binding Running.DeviceInfo.SoftwareVersion}" VerticalContentAlignment="Center"/>
|
|
|
|
+
|
|
|
|
+ <Label Grid.Row="10" Grid.Column="0" Content="DB Connection String:" VerticalAlignment="Center"/>
|
|
|
|
+ <TextBox Grid.Row="10" Grid.Column="2" Text="{Binding Running.DeviceInfo.DBConnectionString}" VerticalContentAlignment="Center"/>
|
|
|
|
+
|
|
|
|
+ <Label Grid.Row="12" Grid.Column="0" Content="Guid:" VerticalAlignment="Center"/>
|
|
|
|
+ <TextBox Grid.Row="12" Grid.Column="2" Text="{Binding Running.DeviceInfo.Guid}" IsReadOnly="True" VerticalContentAlignment="Center"/>
|
|
|
|
+
|
|
|
|
+ <Button Grid.Row="14" Grid.ColumnSpan="3" Height="28" Content="Register" Command="{Binding RegisterCommand}"/>
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
|
|
+
|
|
|
|
+ <Border Grid.Column="2" Background="#FFCECECE">
|
|
|
|
+ <Grid Margin="8">
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
+ <ColumnDefinition Width="auto"/>
|
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
+
|
|
|
|
+ <Label Grid.Row="0" Grid.Column="0" Content="Device Status:" VerticalAlignment="Center"/>
|
|
|
|
+ <ComboBox Grid.Row="0" Grid.Column="2" VerticalContentAlignment="Center"
|
|
|
|
+ ItemsSource="{Binding Source={StaticResource DeviceStatusProvider} }" SelectedItem="{Binding TempTest.DeviceStatus, Converter={StaticResource StatusEnumConverter}}"/>
|
|
|
|
+
|
|
|
|
+ <Label Grid.Row="2" Grid.Column="0" Content="PJob ID:" VerticalAlignment="Center"/>
|
|
|
|
+ <TextBox Grid.Row="2" Grid.Column="2" Text="{Binding TempTest.PJobID}" VerticalContentAlignment="Center"/>
|
|
|
|
+
|
|
|
|
+ <Label Grid.Row="4" Grid.Column="0" Content="CJob ID:" VerticalAlignment="Center" />
|
|
|
|
+ <TextBox Grid.Row="4" Grid.Column="2" Text="{Binding TempTest.CJobID}" VerticalContentAlignment="Center"/>
|
|
|
|
+
|
|
|
|
+ <Label Grid.Row="6" Grid.Column="0" Content="Recipe Type:" VerticalAlignment="Center"/>
|
|
|
|
+ <ComboBox Grid.Row="6" Grid.Column="2" VerticalContentAlignment="Center"
|
|
|
|
+ ItemsSource="{Binding Source={StaticResource RecipeTypeProvider} }" SelectedItem="{Binding TempTest.RecipeType, Converter={StaticResource RecipeEnumConverter}}"/>
|
|
|
|
+
|
|
|
|
+ <Button Grid.Row="8" Grid.ColumnSpan="3" Content="Update" Command="{Binding TriggerCommand}" Height="28"/>
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
|
|
+
|
|
|
|
+ <Border Grid.Column="4" Background="#FFCECECE">
|
|
|
|
+
|
|
|
|
+ <Grid Margin="8">
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition/>
|
|
|
|
+ <RowDefinition Height="4"/>
|
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+ <Button Grid.Row="2" Height="28" Content="Start Data Service" Command="{Binding StartDataServiceCommand}"/>
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|
|
</Window>
|