<Page x:Class="B20UVLog.Pages.RobotInterfaceOut"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:B20UVLog.Pages" xmlns:My="clr-namespace:MyWPFControl.Controls;assembly=MyWPFControl" xmlns:viewmodels="clr-namespace:B20UVLog.ViewModels"
      mc:Ignorable="d" 
      d:DesignHeight="800" d:DesignWidth="1600"
      Title="RobotInterface">
    <Page.DataContext>
        <viewmodels:RobotInterfaceOutViewModel/>
    </Page.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center">
            <!--<My:MTextBox x:Name="TextIndex" Title="Index_No"/>-->
            <My:MDateTimePicker x:Name="DTPStart" Title="开始时间"/>
            <TextBlock Text="--" VerticalAlignment="Center" Margin="2"/>
            <My:MDateTimePicker x:Name="DTPEnd" Title="结束时间"/>
            <My:MButton x:Name="BtnSearch" Content="查询" Type="Primary"  Click="BtnSearch_Click"/>
            <My:MButton x:Name="BtnReset" Content="条件重置"  Click="BtnReset_Click"/>
            <My:MButton x:Name="BtnExport" Content="导出报表"  Click="BtnExport_Click" Type="Warning"/>
        </StackPanel>
        <My:MPagination Grid.Row="1" x:Name="MyPagination" PageSize="1" PageIndexChange="MyPagination_PageIndexChange" IsShowTotalNum="False" IsShowPageSize="False"/>
        <StackPanel x:Name="DP" Grid.Row="2">
            <StackPanel Orientation="Horizontal">
                <StackPanel.Resources>
                    <Style x:Key="BaseGroup" TargetType="GroupBox">
                        <Setter Property="Margin" Value="10 10 0 0"/>
                    </Style>
                    <Style x:Key="MainGroup" TargetType="GroupBox" BasedOn="{StaticResource BaseGroup}">
                    </Style>
                    <Style x:Key="ChildGroup" TargetType="GroupBox" BasedOn="{StaticResource BaseGroup}">
                        <Setter Property="Height" Value="510"/>
                    </Style>
                    <Style TargetType="My:MCheckBox" BasedOn="{StaticResource CheckBoxStyle}">
                        <Setter Property="Margin" Value="0"/>
                        <Setter Property="IsHitTestVisible" Value="False"/>
                    </Style>
                </StackPanel.Resources>
                <GroupBox Style="{StaticResource MainGroup}" DataContext="{Binding OutStreamData}">
                    <GroupBox.Header>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock FontSize="20" Margin="10 5 0 5" Text="出片"/>
                            <TextBlock FontSize="20" Margin="10 5 0 5" Text="{Binding RecordTime,StringFormat=yyyy-MM-dd HH:mm:ss}"/>
                        </StackPanel>
                    </GroupBox.Header>
                    <StackPanel Orientation="Horizontal">
                        <GroupBox Style="{StaticResource ChildGroup}" Header="Robot">
                            <WrapPanel Orientation="Vertical">
                                <My:MCheckBox IsChecked="{Binding DownRobotStreamInline}">Down Stream Inline</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotStreamTrouble}">Down Stream Trouble</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotReceiveAble}">Receive Able</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotReceive}">Receive</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotJobTransfer}">Job Transfer</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotReceiveCancel}">Receive Cancel</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotExchangeExec}">Exchange Execute</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotDoubleGlass}">Double Glass</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotReceiveJobRe}">Receive Job Reserve</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotStopRecv}">Stop Receive</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotTransferStopReq}">Transfer Stop Req</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotGlassExist}">Glass Exist</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotInterlock}">Interlock</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotSpere}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotSlotNum1}">Slot number#01</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotSlotNum2}">Slot number#02</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotSlotNum3}">Slot number#03</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotSlotNum4}">Slot number#04</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotSlotNum5}">Slot number#05</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotSlotNum6}">Slot number#06</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotGlassCount1}">Glass Count#01</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotGlassCount2}">Glass Count#02</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotGlassCount3}">Glass Count#03</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotGlassCount4}">Glass Count#04</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotGlassCount5}">Glass Count#05</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotForceCompReq}">Force Complete Req.</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotForceCompAck}">Force Complete Ack.</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotLinkSpeSpere1}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotLinkSpeSpere2}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotNC1}">NC</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotNC2}">NC</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownRobotNC3}">NC</My:MCheckBox>
                            </WrapPanel>
                        </GroupBox>
                        <GroupBox Style="{StaticResource ChildGroup}" Header="SUV">
                            <WrapPanel Orientation="Vertical">
                                <My:MCheckBox IsChecked="{Binding UpSUVInline}">Up Stream Inline</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVTrouble}">Up Stream Trouble</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSendReady}">Send Ready</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSend}">Send</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVJobTransfer}">Job Transfer</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSendCancel}">Send Cancel</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVExPossible}">Exchange Possible</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVDoubleGlass}">Double Glass</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSendJobRev}">Send Job Reserve</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSpere1}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSpere2}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSpere3}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSpere4}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVInterlock}">Interlock</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSlotNumber01}">Slot number#01</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSlotNumber02}">Slot number#02</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSlotNumber03}">Slot number#03</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSlotNumber04}">Slot number#04</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSlotNumber05}">Slot number#05</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSlotNumber06}">Slot number#06</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSpere5}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVForceCompReq}">Force Complete Req.</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVForceCompAck}">Force Complete Ack.</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSpere6}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVSpere7}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVLinkSpeSpere1}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVLinkSpeSpere2}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVLinkSpeSpere3}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVLinkSpeSpere4}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVNC}">NC</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVNC2}">NC</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpSUVNC3}">NC</My:MCheckBox>
                            </WrapPanel>
                        </GroupBox>
                    </StackPanel>
                </GroupBox>
            </StackPanel>
        </StackPanel>

    </Grid>

</Page>
