<Page x:Class="B20UVLog.Pages.RobotInterfaceIn"
      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:RobotInterfaceInViewModel/>
    </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}" Height="auto" DataContext="{Binding InStreamData}">
                    <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 UpRobotInline}">Up Stream Inline</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotTrouble}">Up Stream Trouble</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSendReady}">Send Ready</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSend}">Send</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotJobTransfer}">Job Transfer</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSendCancel}">Send Cancel</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotExExecute}">Exchange Execute</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotDoubleGlass}">Double Glass</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSendJobRev}">Send Job Reserve</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSpere1}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSpere2}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSpere3}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSpere4}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotInterlock}">Interlock</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSlotNumber01}">Slot number#01</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSlotNumber02}">Slot number#02</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSlotNumber03}">Slot number#03</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSlotNumber04}">Slot number#04</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSlotNumber05}">Slot number#05</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSlotNumber06}">Slot number#06</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSpere5}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotForceCompReq}">Force Complete Req.</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotForceCompAck}">Force Complete Ack.</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSpere6}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotSpere7}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotLinkSpeSpere1}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotLinkSpeSpere2}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotLinkSpeSpere3}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRobotLinkSpeSpere4}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRoboNC}">NC</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRoboNC2}">NC</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding UpRoboNC3}">NC</My:MCheckBox>
                            </WrapPanel>
                        </GroupBox>
                        <GroupBox Style="{StaticResource ChildGroup}" Header="SUV">
                            <WrapPanel Orientation="Vertical">
                                <My:MCheckBox IsChecked="{Binding DownSUVStreamInline}">Down Stream Inline</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVStreamTrouble}">Down Stream Trouble</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVReceiveAble}">Receive Able</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVReceive}">Receive</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVJobTransfer}">Job Transfer</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVReceiveCancel}">Receive Cancel</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVExchangePoss}">Exchange Possible</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVDoubleGlass}">Double Glass</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVReceiveJobRe}">Receive Job Reserve</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVStopRecv}">Stop Receive</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVTransferStopReq}">Transfer Stop Req</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVGlassExist}">Glass Exist</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVInterlock}">Interlock</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVSpere}">Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVSlotNum1}">Slot number#01</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVSlotNum2}">Slot number#02</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVSlotNum3}">Slot number#03</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVSlotNum4}">Slot number#04</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVSlotNum5}">Slot number#05</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVSlotNum6}">Slot number#06</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVGlassCount1}">Glass Count#01</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVGlassCount2}">Glass Count#02</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVGlassCount3}">Glass Count#03</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVGlassCount4}">Glass Count#04</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVGlassCount5}">Glass Count#05</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVForceCompReq}">Force Complete Req.</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVForceCompAck}">Force Complete Ack.</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVLinkSpeSpere1}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVLinkSpeSpere2}">LinkSpecial Spare</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVNC1}">NC</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVNC2}">NC</My:MCheckBox>
                                <My:MCheckBox IsChecked="{Binding DownSUVNC3}">NC</My:MCheckBox>
                            </WrapPanel>
                        </GroupBox>
                    </StackPanel>
                </GroupBox>
            </StackPanel>
        </StackPanel>

    </Grid>

</Page>
