123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317 |
- <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"
- xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
- 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/ButtonStyle.xaml" />
- <ResourceDictionary>
- <converter:BooleanToBrush x:Key="BoolBrush" />
- </ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="3*" />
- <ColumnDefinition Width="2*" />
- </Grid.ColumnDefinitions>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <!--<GroupBox Header="型号">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Margin="0,4"
- Orientation="Horizontal">
- <TextBlock Margin="4,0"
- VerticalAlignment="Center"
- Text="产品名称"
- FontSize="25" />
- <hc:ComboBox HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Margin="4,0"
- Width="200"
- SelectedItem="{Binding SelectedConfigName}"
- ItemsSource="{Binding ConfigNames}"
- FontSize="22" />
- <Button Content="一键切换"
- VerticalAlignment="Center"
- Margin="5"
- Width="130"
- Height="40"
- FontSize="22"
- Style="{StaticResource BtnStyle}"
- Command="{Binding SwitchCommand}" />
- </StackPanel>
- </Grid>
- </GroupBox>-->
- <GroupBox Grid.Row="1"
- Header="显示">
- <DataGrid AutoGenerateColumns="False"
- IsReadOnly="True"
- ItemsSource="{Binding InforNew}">
- <DataGrid.Columns>
- <DataGridTextColumn Width="*"
- Binding="{Binding CreateTime}"
- Header="日期" />
- <DataGridTextColumn Width="*"
- Binding="{Binding ProNo}"
- Header="产品编号" />
- <DataGridTextColumn Width="*"
- Binding="{Binding OperatorCode}"
- Header="员工ID" />
- <DataGridTextColumn Width="*"
- Binding="{Binding SpendTime}"
- Header="用时" />
- <DataGridTextColumn Width="*"
- Binding="{Binding ProType}"
- Header="产品型号" />
- <DataGridTextColumn Width="*"
- Binding="{Binding ProCode}"
- Header="物料码" />
- </DataGrid.Columns>
- </DataGrid>
- </GroupBox>
- </Grid>
- <Grid Grid.Column="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="150" />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <GroupBox Grid.Column="1"
- Grid.Row="0"
- Header="二维码">
- <StackPanel Orientation="Horizontal">
- <TextBox Width="230"
- Height="40"
- FontSize="22"
- VerticalAlignment="Center"
- Margin="5"
- Text="{Binding InQR,UpdateSourceTrigger=PropertyChanged}" />
- <Button Content="生成二维码"
- VerticalAlignment="Center"
- Margin="5"
- Width="130"
- Height="40"
- FontSize="22"
- Style="{StaticResource BtnStyle}"
- Command="{Binding QRCommand}" />
- <Image Source="{Binding QrImage}"
- Margin="3" />
- </StackPanel>
- </GroupBox>
- <GroupBox Grid.Column="1"
- Grid.Row="1"
- Header="看板设置">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <!--#region 线边仓 -->
- <Border BorderThickness="0,0,0,1"
- BorderBrush="#6A5ACD"
- Grid.Row="0">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal"
- Grid.Column="0"
- Grid.Row="0">
- <TextBlock Text="缺料订单数"
- VerticalAlignment="Center"
- FontSize="20"
- Margin="5" />
- <TextBox Width="200"
- Height="40"
- FontSize="20"
- VerticalAlignment="Center"
- Margin="5"
- Text="{Binding LackHouse,UpdateSourceTrigger=PropertyChanged}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal"
- Grid.Column="1"
- Grid.Row="0">
- <TextBlock Text="已领料订单数"
- VerticalAlignment="Center"
- FontSize="20"
- Margin="5" />
- <TextBox Width="200"
- Height="40"
- FontSize="20"
- VerticalAlignment="Center"
- Margin="5"
- Text="{Binding UsedHouse,UpdateSourceTrigger=PropertyChanged}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal"
- Grid.Column="0"
- Grid.Row="1">
- <TextBlock Text="当日订单数"
- VerticalAlignment="Center"
- FontSize="20"
- Margin="5" />
- <TextBox Width="200"
- Height="40"
- FontSize="20"
- VerticalAlignment="Center"
- Margin="5"
- Text="{Binding TotalHouse,UpdateSourceTrigger=PropertyChanged}" />
- </StackPanel>
- <Button Content="上传线边仓(当日)"
- VerticalAlignment="Center"
- Margin="5"
- Width="180"
- Height="40"
- FontSize="20"
- Style="{StaticResource BtnStyle}"
- Command="{Binding HouseCommand}"
- Grid.Column="1"
- Grid.Row="1" />
- </Grid>
- </Border>
- <!--#endregion-->
- <!--#region 出勤 -->
- <Border BorderThickness="0,0,0,1"
- BorderBrush="#6A5ACD"
- Grid.Row="1">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal"
- Grid.Column="0"
- Grid.Row="0">
- <TextBlock Text="实到人数"
- VerticalAlignment="Center"
- FontSize="20"
- Margin="5" />
- <TextBox Width="200"
- Height="40"
- FontSize="20"
- VerticalAlignment="Center"
- Margin="5"
- Text="{Binding ActPer,UpdateSourceTrigger=PropertyChanged}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal"
- Grid.Column="1"
- Grid.Row="0">
- <TextBlock Text="请假人数"
- VerticalAlignment="Center"
- FontSize="20"
- Margin="5" />
- <TextBox Width="200"
- Height="40"
- FontSize="20"
- VerticalAlignment="Center"
- Margin="5"
- Text="{Binding FallPer,UpdateSourceTrigger=PropertyChanged}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal"
- Grid.Column="0"
- Grid.Row="1">
- <TextBlock Text="旷工人数"
- VerticalAlignment="Center"
- FontSize="20"
- Margin="5" />
- <TextBox Width="200"
- Height="40"
- FontSize="20"
- VerticalAlignment="Center"
- Margin="5"
- Text="{Binding AbsPer,UpdateSourceTrigger=PropertyChanged}" />
- </StackPanel>
- <Button Content="上传出勤信息"
- VerticalAlignment="Center"
- Margin="5"
- Width="150"
- Height="40"
- FontSize="20"
- Style="{StaticResource BtnStyle}"
- Command="{Binding OutWorkCommand}"
- Grid.Column="1"
- Grid.Row="1" />
- </Grid>
- </Border>
- <!--#endregion-->
- <!--#region 当前生产订单 -->
- <Border BorderThickness="0,0,0,0"
- BorderBrush="#6A5ACD"
- Grid.Row="2">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- </Grid.RowDefinitions>
- <hc:ComboBox HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Margin="4,0"
- Width="200"
- SelectedItem="{Binding SelectedOrderName}"
- ItemsSource="{Binding OrderNames}"
- FontSize="20"
- Grid.Column="0"
- Grid.Row="0" />
- <Button Content="确认当前生产订单"
- VerticalAlignment="Center"
- Margin="5"
- Width="200"
- Height="40"
- FontSize="20"
- Style="{StaticResource BtnStyle}"
- Command="{Binding OrderCommand}"
- Grid.Column="1"
- Grid.Row="0" />
- </Grid>
- </Border>
- <!--#endregion-->
- </Grid>
- </GroupBox>
- <GroupBox Grid.Column="1"
- Grid.Row="2"
- Header="日志">
- <ListBox x:Name="ListBoxMessage" />
- </GroupBox>
- </Grid>
- </Grid>
- </UserControl>
|