1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <Window x:Class="vCloud.TestClientUi.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"
- mc:Ignorable="d"
- Title="TestClient" Height="600" Width="800">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="20,0,0,0">
- <Label Content="Server:" VerticalAlignment="Center"/>
- <TextBox Text="{Binding ServerHost,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="20,0,0,0" VerticalAlignment="Center" Width="150"/>
- <Label Content="Port:" Margin="20,0,0,0" VerticalAlignment="Center"/>
- <TextBox Text="{Binding ServerPort,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="20,0,0,0" VerticalAlignment="Center" Width="50"/>
- <Button Content="Connect Server" Margin="20,0,0,0" Width="120" Height="30" Command="{Binding ConnectServerCommand}"/>
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="20,0,0,0">
- <Label Content="StorageServer:" VerticalAlignment="Center"/>
- <TextBox Text="{Binding StorageHost,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="20,0,0,0" VerticalAlignment="Center" Width="150"/>
- <Label Content="Port:" Margin="20,0,0,0" VerticalAlignment="Center"/>
- <TextBox Text="{Binding StoragePort,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="20,0,0,0" VerticalAlignment="Center" Width="50"/>
- </StackPanel>
- <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="20,0,0,0">
- <Button Content="Terminal Test" Margin="20,0,0,0" Width="100" Command="{Binding TestTerminalCommand}"/>
- </StackPanel>
- <GroupBox Grid.Row="3" Header="Test Upload Remedical" >
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal">
- <Button Content="Upload Remedical" Margin="20,0,0,0" Width="120" Command="{Binding UploadTerminalDataCommand}"/>
- <Label Content="PatientName:" Margin="10,0,10,0"/>
- <TextBox Text="{Binding UploadPatientName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="100" VerticalAlignment="Center"></TextBox>
- <Label Content="UploadCount:" Margin="10,0,10,0"/>
- <TextBox Text="{Binding UploadRemedicalCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="100" VerticalAlignment="Center"></TextBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <Label Content="AccountName:" Margin="20,0,0,0" VerticalAlignment="Center"/>
- <TextBox Text="{Binding TerminalAccountName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="10,0,0,0" VerticalAlignment="Center" Width="100"/>
- <Label Content="Password:" Margin="20,0,0,0" VerticalAlignment="Center"/>
- <TextBox Text="{Binding TerminalPassword,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="10,0,0,0" VerticalAlignment="Center" Width="100"/>
- </StackPanel>
- </StackPanel>
- </GroupBox>
- <GroupBox Grid.Row="4" Header="About Script" Margin="20,5,0,0">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Orientation="Horizontal">
- <Label Content="AccountName:" Margin="20,0,0,0" VerticalAlignment="Center"/>
- <TextBox Text="{Binding AccountName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="20,0,0,0" VerticalAlignment="Center" Width="100"/>
- <Label Content="Password:" Margin="20,0,0,0" VerticalAlignment="Center"/>
- <TextBox Text="{Binding Password,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="20,0,0,0" VerticalAlignment="Center" Width="100"/>
- <Button Content="Login" Width="80" Command="{Binding LoginCommand}" Margin="20,0,0,0"/>
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="0,5,0,0">
- <Label Content="TeminalName:" Margin="20,0,0,0" VerticalAlignment="Center"/>
- <TextBox Text="{Binding TerminalName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="20,0,0,0" VerticalAlignment="Center" Width="100"/>
- <Button Content="Connect" Width="80" Command="{Binding ConnectCommand}" Margin="20,0,0,0"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Grid.Row="2" Margin="0,5,0,0">
- <Button Content="Get Script" Width="80" Command="{Binding GetScriptCommand}" Margin="20,0,0,0"/>
- <ComboBox ItemsSource="{Binding ScriptInfos}" DisplayMemberPath="ScriptName" Margin="10,5,0,5"
- SelectedItem="{Binding SelectScriptInfo}" SelectedValuePath="ScriptName" Width="150"/>
- <Button Content="Run Script" Margin="20,0,0,0" Width="80" Command="{Binding RunScriptCommand}"/>
- <Button Content="Cancel" Margin="20,0,0,0" Width="80" Command="{Binding CancelCommand}"/>
- </StackPanel>
- </Grid>
- </GroupBox>
- <ListBox Grid.Row="5" Margin="20,10,20,10" ItemsSource="{Binding LogMessages}"/>
- </Grid>
- </Window>
|