123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403 |
- <UserControl x:Class="LogoForceTestApp.Modules.MainModule.Views.MainPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:converter="clr-namespace:LogoForceTestApp.Modules.MainModule.Converters"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- xmlns:local="clr-namespace:LogoForceTestApp.Modules.MainModule.Views"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:oxyplot="http://oxyplot.org/wpf"
- xmlns:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
- d:DataContext="{d:DesignInstance Type=viewmodels:MainPageViewModel}"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/LogoForceTestApp.Modules.MainModule;component/Dictionary.xaml" />
- <ResourceDictionary>
- <converter:BooleanToBrush x:Key="BoolBrush" />
- </ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- <Style TargetType="DataGrid">
- <Setter Property="Height"
- Value="auto" />
- <Setter Property="Width"
- Value="auto" />
- <Setter Property="CanUserAddRows"
- Value="False" />
- <Setter Property="FontSize"
- Value="16" />
- </Style>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition Width="300" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="1*" />
- </Grid.RowDefinitions>
- <Border BorderBrush="#6A5ACD"
- BorderThickness="4">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="当前账号:"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Foreground="Black"
- FontSize="22"
- Margin="5" />
- <TextBlock Text="{Binding NowID}"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Foreground="Blue"
- FontSize="22"
- Margin="5" />
- </StackPanel>
- </Border>
- <GroupBox Grid.Row="1"
- Header="产品信息"
- FontSize="20">
- <StackPanel Orientation="Horizontal"
- VerticalAlignment="Center"
- HorizontalAlignment="Center">
- <TextBlock VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Text="产品码:" />
- <TextBox VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Height="50"
- Width="600"
- Text="{Binding ProCode,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBoxProCode"
- KeyDown="TextBoxProCode_KeyDown" />
- </StackPanel>
- <!--<Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="2*" />
- </Grid.ColumnDefinitions>
- <Border BorderThickness="0,0,3,0"
- BorderBrush="#6A5ACD">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*" />
- <RowDefinition Height="3*" />
- </Grid.RowDefinitions>
- <TextBlock VerticalAlignment="Center"
- HorizontalAlignment="Left"
- Text="当前生产订单"
- Foreground="#762DA6" />
- <TextBlock Grid.Row="1"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- FontSize="30"
- Foreground="#762DA6"
- Text="{Binding OrderForGoods}" />
- </Grid>
- </Border>
- <StackPanel Orientation="Horizontal"
- Grid.Column="1"
- VerticalAlignment="Center"
- HorizontalAlignment="Center">
- <TextBlock VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Text="产品码:" />
- <TextBox VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Height="50"
- Width="600"
- Text="{Binding ProCode,UpdateSourceTrigger=PropertyChanged}"/>
- </StackPanel>
- </Grid>-->
- </GroupBox>
- <GroupBox Grid.Row="2"
- Header="维修用料"
- FontSize="20">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <StackPanel Orientation="Vertical"
- VerticalAlignment="Center"
- HorizontalAlignment="Center">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="01"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu1,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox1"
- KeyDown="TextBox1_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="02"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu2,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox2"
- KeyDown="TextBox2_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="03"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu3,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox3"
- KeyDown="TextBox3_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="04"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu4,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox4"
- KeyDown="TextBox4_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="05"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu5,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox5"
- KeyDown="TextBox5_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="06"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu6,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox6"
- KeyDown="TextBox6_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="07"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu7,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox7"
- KeyDown="TextBox7_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="08"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu8,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox8"
- KeyDown="TextBox8_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="09"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu9,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox9"
- KeyDown="TextBox9_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="10"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu10,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox10"
- KeyDown="TextBox10_KeyDown" />
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Vertical"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Grid.Column="1">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="11"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu11,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox11"
- KeyDown="TextBox11_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="12"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu12,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox12"
- KeyDown="TextBox12_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="13"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu13,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox13"
- KeyDown="TextBox13_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="14"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu14,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox14"
- KeyDown="TextBox14_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="15"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu15,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox15"
- KeyDown="TextBox15_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="16"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu16,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox16"
- KeyDown="TextBox16_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="17"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu17,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox17"
- KeyDown="TextBox17_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="18"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu18,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox18"
- KeyDown="TextBox18_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="19"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu19,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox19"
- KeyDown="TextBox19_KeyDown" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="20"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <hc:TextBox Width="400"
- Height="40"
- Margin="5"
- Text="{Binding Wu20,UpdateSourceTrigger=PropertyChanged}"
- Name="TextBox20" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </GroupBox>
-
- <Button Content="确 认"
- VerticalAlignment="Center"
- Margin="15"
- Width="100"
- Height="40"
- FontSize="20"
- Grid.Row="3"
- Style="{StaticResource BtnStyle}"
- Command="{Binding NotarizeCommand}" />
- </Grid>
- <Grid Grid.Column="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition />
- </Grid.RowDefinitions>
- <GroupBox Grid.Column="1"
- Grid.Row="0"
- Header="员工信息">
- <StackPanel Orientation="Vertical"
- VerticalAlignment="Center"
- HorizontalAlignment="Center">
- <TextBox Text="{Binding Person,UpdateSourceTrigger=PropertyChanged}"
- Height="30"
- Width="280" />
- <Button Content="上传"
- VerticalAlignment="Center"
- Margin="10"
- Width="80"
- Height="30"
- FontSize="18"
- Style="{StaticResource BtnStyle}"
- Command="{Binding UpCommand}" />
- </StackPanel>
- </GroupBox>
- <GroupBox Grid.Row="1"
- Header="日志">
- <ListBox x:Name="ListBoxMessage" />
- </GroupBox>
- </Grid>
- </Grid>
- </UserControl>
|