123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <Window x:Class="AwInitilizer.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:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
- xmlns:local="clr-namespace:AwInitilizer"
- mc:Ignorable="d"
- Title="Initlizer" Height="590" Width="790" Background="#FF363535"
- input:InputMethod.IsInputMethodEnabled="False"
- x:Name="uxManinWindow">
- <Window.Resources>
- </Window.Resources>
- <Viewbox>
- <StackPanel Orientation="Horizontal">
- <StackPanel Orientation="Vertical" Width="790">
- <GroupBox>
- <GroupBox.Header>
- <Label Content="Account" Foreground="White" FontSize="16"/>
- </GroupBox.Header>
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal" Height="30" Margin="0,0,0,10">
- <Grid Width="200">
- <Label Content="User Id" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox Text="{Binding UserID}" IsEnabled="{Binding IsInputLock}" IsReadOnly="True" Width="440" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center"/>
- <Button Width="100" Click="Logout_Click" IsEnabled="{Binding IsInputLock}">
- <Label Content="Logout"/>
- </Button>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="30" Margin="0,0,0,10">
- <Grid Width="200">
- <Label Content="Work Order" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox Text="{Binding WorkOrder}" IsEnabled="{Binding IsInputLock}" IsReadOnly="True" Width="540" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center"
- TextChanged="WorkOrder_TextChanged" KeyDown="WorkOrder_KeyDown"/>
- </StackPanel>
- </StackPanel>
- </GroupBox>
- <GroupBox>
- <GroupBox.Header>
- <Label Content="Barcode Setting" Foreground="White" FontSize="16"/>
- </GroupBox.Header>
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal">
- <StackPanel Orientation="Horizontal" Height="30">
- <Grid Width="200">
- <Label Content="Model Name" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox x:Name="uxModelName" Text="{Binding ModelName}" IsEnabled="{Binding IsInputLock}" IsReadOnly="True" Width="170" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="30">
- <Grid Width="200">
- <Label Content="Serial Number" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox x:Name="uxSerialNumber" Text="{Binding SerialNumber}" IsEnabled="{Binding IsInputLock}" IsReadOnly="True" Width="170" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center"/>
- </StackPanel>
- </StackPanel>
- <Frame Height="10"/>
- </StackPanel>
- </GroupBox>
- <GroupBox>
- <GroupBox.Header>
- <Label Content="Config Setting" Foreground="White" FontSize="16"/>
- </GroupBox.Header>
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal" Height="30">
- <Grid Width="200">
- <Label Content="Setting File" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox x:Name="uxSettingFile" Text="{Binding SettingFileName}" IsEnabled="{Binding IsInputLock}" IsReadOnly="True" Width="540" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center"/>
- </StackPanel>
- <Frame Height="10"/>
- <StackPanel Orientation="Horizontal" Height="30">
- <Grid Width="200">
- <Label Content="4G Module Reversiion" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox x:Name="uxFourGModuleVer" Text="{Binding FourGenModuleVersion}" IsEnabled="{Binding IsInputLock}" IsReadOnly="True" Width="540" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center"/>
- </StackPanel>
- <Frame Height="10"/>
- <StackPanel Orientation="Horizontal" Height="30">
- <Grid Width="200">
- <Label Content="4G Sim Card Information" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <CheckBox x:Name="uxIsSimCheckEnabled" IsChecked="{Binding IsSimInsert}" IsEnabled="{Binding IsInputLock}" IsHitTestVisible="False" VerticalAlignment="Center" />
- <Grid Width="10"/>
- <Grid Width="70">
- <Label Content="ICCID" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <Grid Width="10"/>
- <TextBox x:Name="uxICCID" Text="{Binding ICCID}" IsReadOnly="True" Width="176" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center">
- <TextBox.IsEnabled>
- <MultiBinding Converter="{StaticResource booleanAndConverter}">
- <Binding Path="IsSimInsert" />
- <Binding Path="IsInputLock" />
- </MultiBinding>
- </TextBox.IsEnabled>
- </TextBox>
- <Grid Width="70">
- <Label Content="IMSI" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <Grid Width="10"/>
- <TextBox x:Name="uxIMSI" Text="{Binding IMSI}" IsReadOnly="True" Width="176" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center">
- <TextBox.IsEnabled>
- <MultiBinding Converter="{StaticResource booleanAndConverter}">
- <Binding Path="IsSimInsert" />
- <Binding Path="IsInputLock" />
- </MultiBinding>
- </TextBox.IsEnabled>
- </TextBox>
- <Grid Width="10"/>
- </StackPanel>
- <Frame Height="10"/>
- </StackPanel>
- </GroupBox>
- <GroupBox>
- <GroupBox.Header>
- <Label Content="Firmware version" Foreground="White" FontSize="16"/>
- </GroupBox.Header>
- <DataGrid AutoGenerateColumns="False" Margin="10" Height="150" CanUserSortColumns="False" IsEnabled="{Binding IsInputLock}" ItemsSource="{Binding FirmwareUpdateModels}">
- <DataGrid.Columns>
- <DataGridTextColumn Header="Module" Width="150" MinWidth="50" Binding="{Binding Path=Module}" IsReadOnly="True"/>
- <DataGridTextColumn Header="Version" Width="150" MinWidth="70" Binding="{Binding Path=Version}" IsReadOnly="True"/>
- <DataGridTextColumn Header="File name" Binding="{Binding Path=FirmwareFileName}" IsReadOnly="False"/>
- </DataGrid.Columns>
- </DataGrid>
- </GroupBox>
- <Grid Height="50">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
- <ProgressBar Minimum="0" Maximum="100" x:Name="uxProgress" VerticalAlignment="Center" Height="10" Width="250"/>
- <Label x:Name="uxProgressRate" Content="0%" Foreground="White" FontSize="16"/>
- <Grid Width="10"/>
- <Button x:Name="uxStartBtn" Click="StartInit_Click">
- <Button.IsEnabled>
- <MultiBinding Converter="{StaticResource booleanAndConverter}">
- <Binding Path="IsInputLock" />
- <Binding Path="IsInputCheckpassed" />
- </MultiBinding>
- </Button.IsEnabled>
-
- <Label Content="Start DC Initialize"/>
- </Button>
- </StackPanel>
- </Grid>
- <GroupBox Height="280" >
- <GroupBox.Header>
- <Label Content="Init Procedure" Foreground="White" FontSize="16"/>
- </GroupBox.Header>
- <DataGrid AutoGenerateColumns="False" Margin="10" x:Name="uxProcedureDataGrid" CanUserSortColumns="False" IsEnabled="{Binding IsInputLock}" ItemsSource="{Binding UpdateProcedure}">
- <DataGrid.Columns>
- <DataGridTextColumn Header="Name" Width="150" MinWidth="50" Binding="{Binding Path=Name}" IsReadOnly="True"/>
- <DataGridTextColumn Header="Content" Width="500" MinWidth="70" Binding="{Binding Path=Content}" IsReadOnly="True"/>
- <DataGridCheckBoxColumn Header="Action" Binding="{Binding Path=IsActivated}" IsReadOnly="False"/>
- </DataGrid.Columns>
- </DataGrid>
- </GroupBox>
- </StackPanel>
- <Grid Width="10"/>
- <StackPanel Orientation="Vertical" Width="400">
- <GroupBox Height="885">
- <GroupBox.Header>
- <Label Content="Terminal" Foreground="White" FontSize="16"/>
- </GroupBox.Header>
- <ScrollViewer x:Name="uxTerminalScroller">
- <TextBlock x:Name="uxTerminal" Background="Black" Margin="10" Foreground="Green">
- </TextBlock>
- </ScrollViewer>
- </GroupBox>
- </StackPanel>
- </StackPanel>
- </Viewbox>
- </Window>
|