You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
12 KiB

<Window x:Class="SchedulingSystemClient.SYWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="排班展示" Height="900" Width="1440"
ResizeMode ="CanResize"
WindowState="Maximized" Loaded="Window_Loaded"
WindowStyle="None"
MaxWidth="{StaticResource {x:Static SystemParameters.MaximizedPrimaryScreenWidthKey}}"
MaxHeight="{StaticResource {x:Static SystemParameters.MaximizedPrimaryScreenHeightKey}}">
<Window.Resources>
<!--下拉框-->
<ControlTemplate x:Key="CusComboBox" TargetType="{x:Type ComboBox}" >
<Border BorderThickness="2" BorderBrush="#E4E4E4">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="9*"></ColumnDefinition>
<ColumnDefinition Width="1*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!--文本框-->
<TextBox x:Name="myTxt" Grid.Column="0"
Text="{TemplateBinding Text}"
Background="White"
BorderThickness="0"
VerticalContentAlignment="Center"
HorizontalContentAlignment="Center"
FontSize="18"
IsReadOnly="True"
Foreground="Black"/>
<!--下拉按钮-->
<ToggleButton Grid.Column="1" Content="∨" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
ClickMode="Press" Background="White" BorderThickness="0"/>
<Popup Name="MyPopup"
IsOpen="{TemplateBinding IsDropDownOpen}"
Placement="Bottom">
<Border MinWidth="{TemplateBinding ActualWidth}"
MaxHeight="{TemplateBinding MaxDropDownHeight}">
<ScrollViewer MaxHeight="{TemplateBinding MaxDropDownHeight}"
HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto">
<StackPanel Background="White"
IsItemsHost="True"/>
</ScrollViewer>
</Border>
</Popup>
</Grid>
</Border>
</ControlTemplate>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1*"></RowDefinition>
<RowDefinition Height="1*"></RowDefinition>
<RowDefinition Height="16*"></RowDefinition>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderThickness="0,0,0,1" BorderBrush="White">
<Grid Background="#356FD0">
<Label FontSize="28" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="华文行楷" Foreground="White" FontWeight="Bold" >排班展示</Label>
<Button x:Name="btn_gb" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="16" Background="#0000" BorderThickness="0" Foreground="White" Margin="0,0,10,0" Content="退出" Click="btn_gb_Click" Style="{StaticResource an}">
</Button>
</Grid>
</Border>
<Border Grid.Row="1" BorderBrush="#DDDDDD" BorderThickness="2" Margin="10,5" >
<DockPanel LastChildFill="False" Background="White">
<Label HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" Margin="10,0,0,0">手术室:</Label>
<!--<ComboBox x:Name="sss" Height="35" Width="150" HorizontalAlignment="Center" FontSize="16" ></ComboBox>-->
<ComboBox x:Name="sss" Height="35" Width="150" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" Background="White" Template="{StaticResource CusComboBox}"></ComboBox>
<Button x:Name="btn_sx" FontSize="18" Height="35" Width="60" Margin="20,0,0,0" Click="btn_sx_Click" Content="刷新" Background="#558BE3" Foreground="White" VerticalContentAlignment="Center">
<Button.Template >
<ControlTemplate TargetType="{x:Type Button}" >
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3">
<Border.Background>#558BE3</Border.Background>
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
</Border>
</ControlTemplate>
</Button.Template>
</Button>
<Button x:Name="btn_xz" FontSize="18" Height="35" Width="60" Margin="20,0,0,0" Click="btn_xz_Click" Content="新增" Background="#558BE3" Foreground="White" VerticalContentAlignment="Center">
<Button.Template >
<ControlTemplate TargetType="{x:Type Button}" >
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3">
<Border.Background>#558BE3</Border.Background>
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
</Border>
</ControlTemplate>
</Button.Template>
</Button>
<Label x:Name="labela" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" Margin="20,0,0,0"></Label>
<Label x:Name="labelb" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" Margin="20,0,0,0"></Label>
<Label x:Name="labelc" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" Margin="20,0,0,0"></Label>
<Label x:Name="labeld" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" Margin="20,0,0,0"></Label>
</DockPanel>
</Border>
<Grid Grid.Row="2" >
<Grid.RowDefinitions>
<RowDefinition Height="1*"></RowDefinition>
<RowDefinition Height="18*"></RowDefinition>
</Grid.RowDefinitions>
<Grid Grid.Row="0" x:Name="SJ">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label x:Name="label0" Grid.Column="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="20" BorderThickness="1" BorderBrush="#DDDDDD"></Label>
<Label x:Name="label1" Grid.Column="1" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="20" BorderThickness="1" BorderBrush="#DDDDDD"></Label>
<Label x:Name="label2" Grid.Column="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="20" BorderThickness="1" BorderBrush="#DDDDDD"></Label>
<Label x:Name="label3" Grid.Column="3" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="20" BorderThickness="1" BorderBrush="#DDDDDD"></Label>
<Label x:Name="label4" Grid.Column="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="20" BorderThickness="1" BorderBrush="#DDDDDD"></Label>
<Label x:Name="label5" Grid.Column="5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="20" BorderThickness="1" BorderBrush="#DDDDDD"></Label>
<Label x:Name="label6" Grid.Column="6" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="20" BorderThickness="1" BorderBrush="#DDDDDD"></Label>
</Grid>
<Grid Grid.Row="1" x:Name="PBLB" ShowGridLines="False">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<ScrollViewer Grid.Column="0" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
<Border BorderBrush="#DDDDDD" BorderThickness="1,1,1,1">
<DockPanel x:Name="date0" LastChildFill="False" ></DockPanel>
</Border>
</ScrollViewer>
<ScrollViewer Grid.Column="1" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" >
<Border BorderBrush="#DDDDDD" BorderThickness="1,1,1,1">
<DockPanel x:Name="date1" LastChildFill="False" ></DockPanel>
</Border>
</ScrollViewer>
<ScrollViewer Grid.Column="2" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
<Border BorderBrush="#DDDDDD" BorderThickness="1,1,1,1">
<DockPanel x:Name="date2" LastChildFill="False" ></DockPanel>
</Border>
</ScrollViewer>
<ScrollViewer Grid.Column="3" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
<Border BorderBrush="#DDDDDD" BorderThickness="1,1,1,1">
<DockPanel x:Name="date3" LastChildFill="False" ></DockPanel>
</Border>
</ScrollViewer>
<ScrollViewer Grid.Column="4" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
<Border BorderBrush="#DDDDDD" BorderThickness="1,1,1,1">
<DockPanel x:Name="date4" LastChildFill="False" ></DockPanel>
</Border>
</ScrollViewer>
<ScrollViewer Grid.Column="5" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
<Border BorderBrush="#DDDDDD" BorderThickness="1,1,1,1">
<DockPanel x:Name="date5" LastChildFill="False" ></DockPanel>
</Border>
</ScrollViewer>
<ScrollViewer Grid.Column="6" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
<Border BorderBrush="#DDDDDD" BorderThickness="1,1,1,1">
<DockPanel x:Name="date6" LastChildFill="False" ></DockPanel>
</Border>
</ScrollViewer>
</Grid>
</Grid>
</Grid>
</Window>