| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <UserControl x:Class="ivf_tl_Manage.Views.AlarmSettingViewNew"
- 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:ivf_tl_Manage.Views"
- mc:Ignorable="d"
- xmlns:customControl="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
- xmlns:userControl="clr-namespace:ivf_tl_Manage.UserControls"
- Width="1830" Height="1015"
- FontFamily="{StaticResource sourceHan}">
- <Canvas Width="1830" Height="1015" >
- <TextBlock Canvas.Left="40" Canvas.Top="32" FontWeight="Bold" FontSize="32" Text="{DynamicResource 0005}"/>
- <Border CornerRadius="15" Canvas.Left="40" Canvas.Top="103" Width="600" Height="882" Background="#f6f6f6">
- <Border.Effect>
- <DropShadowEffect Opacity="0.15" BlurRadius="10" ShadowDepth="2" Direction="270" Color="Black"/>
- </Border.Effect>
- <Canvas Width="600" Height="862">
- <TextBlock Canvas.Left="30" Canvas.Top="15" FontWeight="Medium" FontSize="22" Text="{DynamicResource 0549}"/>
- <customControl:ButtonCornerRadius Canvas.Left="320" Canvas.Top="10" Width="122" Height="42" Content="{DynamicResource 0368}" FontSize="18" Click="AlarmSetting_Click"/>
- <customControl:ButtonCornerRadius Canvas.Left="465" Canvas.Top="10" Width="103" Height="42" Click="AddPersonne_Click">
- <customControl:ButtonCornerRadius.Content>
- <StackPanel Orientation="Horizontal">
- <Image VerticalAlignment="Center" Width="22" Height="22" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkAddIcon1.png"/>
- <TextBlock Margin="5 0 0 0" VerticalAlignment="Center" TextAlignment="Center" Text="{DynamicResource 0076}" FontSize="18" Foreground="White" FontWeight="Medium"/>
- </StackPanel>
- </customControl:ButtonCornerRadius.Content>
- </customControl:ButtonCornerRadius>
-
- <Border Canvas.Left="30" Canvas.Top="72" Width="540" Height="59" VerticalAlignment="Top" CornerRadius="14 14 0 0" Background="#E2E7ED">
- <Canvas Width="540" Height="59">
- <TextBlock Canvas.Left="30" Canvas.Top="15" Text="{DynamicResource 0033}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <TextBlock Canvas.Left="120" Canvas.Top="15" Text="{DynamicResource 0550}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <TextBlock Canvas.Left="250" Canvas.Top="15" Text="{DynamicResource 0082}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <TextBlock Canvas.Left="445" Canvas.Top="15" Text="{DynamicResource 0080}" Width="82" TextAlignment="Center" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <Rectangle Canvas.Top="57" Height="2" Width="540" Fill="#D8DFE8"/>
- </Canvas>
- </Border>
- <ListBox Canvas.Left="30" Canvas.Top="131" Width="540" ItemsSource="{Binding AlarmPersonneList}" Tag="{Binding AlarmTypeList}"
- MaxHeight="680" AlternationCount="2" ScrollViewer.CanContentScroll="False" ManipulationBoundaryFeedback="ListBox_ManipulationBoundaryFeedback" BorderThickness="0" Padding="0" Background="Transparent"
- Style="{StaticResource ListBoxStyleAlarmSetting}">
- <ListBox.ItemContainerStyle>
- <Style TargetType="{x:Type ListBoxItem}">
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="Padding" Value="0"/>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <Canvas x:Name="itemCanvas" Width="540" Height="56" Background="#f6f6f6">
- <Rectangle x:Name="RectangleBorder" Visibility="Collapsed" Width="540" Height="56" Stroke="#6DA5FF" StrokeThickness="2" Fill="Transparent" />
- <TextBlock Canvas.Left="30" Padding="0 15 0 0" Text="{Binding Num}" Width="145" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"/>
- <TextBlock Canvas.Left="120" Padding="0 15 0 0" Text="{Binding name}" Width="145" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"/>
- <TextBlock Canvas.Left="250" Padding="0 15 0 0" Text="{Binding phone}" Width="145" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"/>
- <customControl:ButtonImage Canvas.Left="440" Canvas.Top="15" Width="26" Height="26" Tag="{Binding}"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/EditIcon.png" Click="Edit_Click"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/EditMouseOverIcon.png "/>
- <customControl:ButtonImage Canvas.Left="490" Canvas.Top="15" Width="26" Height="26" Click="Del_Click"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkTypeDel.png" Tag="{Binding}"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkTypeDelMouseOver.png "/>
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="ItemsControl.AlternationIndex" Value="1">
- <Setter Property="Background" Value="#eceef2" TargetName="itemCanvas"/>
- <!--<Setter Property="RectangleFill" Value="#DCE2EB" TargetName="_alarmItem"/>-->
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Visibility" Value="Visible" TargetName="RectangleBorder"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ListBox.ItemContainerStyle>
- </ListBox>
- </Canvas>
- </Border>
- <Border CornerRadius="15" Canvas.Left="660" Canvas.Top="103" Width="1130" Height="882" Background="#f6f6f6">
- <Border.Effect>
- <DropShadowEffect Opacity="0.15" BlurRadius="10" ShadowDepth="2" Direction="270" Color="Black"/>
- </Border.Effect>
- <Canvas Width="1130" Height="862">
- <TextBlock Canvas.Left="30" Canvas.Top="15" FontWeight="Medium" FontSize="22" Text="{DynamicResource 0065}"/>
- <Border Canvas.Left="30" Canvas.Top="72" Width="1070" Height="59" VerticalAlignment="Top" CornerRadius="14 14 0 0" Background="#E2E7ED">
- <Canvas Width="1070" Height="59">
- <TextBlock Canvas.Left="25" Canvas.Top="15" Text="{DynamicResource 0033}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <TextBlock Canvas.Left="80" Canvas.Top="15" Text="{DynamicResource 0551}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <TextBlock Canvas.Left="200" Canvas.Top="15" Text="{DynamicResource 0185}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <TextBlock Canvas.Left="320" Canvas.Top="15" Text="{DynamicResource 0552}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <TextBlock Canvas.Left="450" Canvas.Top="15" Text="{DynamicResource 0180}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <TextBlock Canvas.Left="650" Canvas.Top="15" Text="{DynamicResource 0181}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <TextBlock Canvas.Left="840" Canvas.Top="15" Text="{DynamicResource 0273}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <TextBlock Canvas.Left="980" Canvas.Top="15" Text="{DynamicResource 0079}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="20"/>
- <Rectangle Canvas.Top="57" Height="2" Width="1070" Fill="#D8DFE8"/>
- </Canvas>
- </Border>
- <ListBox Canvas.Left="30" Canvas.Top="131" Width="1070" ItemsSource="{Binding AlarmTypeList}" Tag="{Binding AlarmTypeList}"
- MaxHeight="680" AlternationCount="2" ScrollViewer.CanContentScroll="False" ManipulationBoundaryFeedback="ListBox_ManipulationBoundaryFeedback" BorderThickness="0" Padding="0" Background="Transparent"
- Style="{StaticResource ListBoxStyleAlarmSetting}">
- <ListBox.ItemContainerStyle>
- <Style TargetType="{x:Type ListBoxItem}">
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="Padding" Value="0"/>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <Canvas x:Name="itemCanvas" Width="1070" Height="56" Background="#f6f6f6">
- <Rectangle x:Name="RectangleBorder" Visibility="Collapsed" Width="1070" Height="56" Stroke="#6DA5FF" StrokeThickness="2" Fill="Transparent" />
- <TextBlock Canvas.Left="30" Padding="0 15 0 0" Text="{Binding Num}" Width="145" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"/>
- <!--<TextBlock Canvas.Left="100" Padding="0 15 0 0" Text="{Binding alarmLevel}" Width="145" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"/>-->
- <customControl:ComBoxCustom1 Canvas.Left="70" Width="105" Height="56" SelectedItem="{Binding SelectedLevel}" DisplayMemberPath="Value" ItemsSource="{Binding LevelSource}" Tag="{Binding}"
- TipString="{DynamicResource 0551}" PopupWidth="121" BorderThickness="0" Background="Transparent" PopupPadding="20 5 20 10" PopupHorizontalOffset="-10" SelectionChanged="AlarmLevel_SelectionChanged"
- VerticalContentAlignment="Center" HorizontalContentAlignment="Left" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"
- DefeatImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownGrayIcon.png"
- OpenImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownBlueIcon.png"/>
- <TextBlock Canvas.Left="190" Padding="0 15 0 0" Text="{Binding alarmTitle}" Width="145" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"/>
- <CheckBox Unchecked="Mute_Unchecked" Checked="Mute_Checked" Canvas.Left="350" Style="{StaticResource CheckBoxStyle1}" Width="26" Height="56" Tag="{Binding}" IsChecked="{Binding mute,Converter={StaticResource Int0ToBoolConvert}}"/>
- <customControl:ComBoxCustom1 Canvas.Left="450" Width="184" Height="56" SelectedIndex="0" DisplayMemberPath="templateCode" ItemsSource="{Binding smsTemplates}"
- TipString="{DynamicResource 0180}" BorderThickness="0" Background="Transparent"
- PopupWidth="184" PopupPadding="20 5 20 10" PopupMaxHeight="200" PopupHorizontalOffset="0"
- VerticalContentAlignment="Center" HorizontalContentAlignment="Left" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"
- DefeatImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownGrayIcon.png"
- OpenImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownBlueIcon.png"/>
- <customControl:ComBoxCustom1 Canvas.Left="650" Width="184" Height="56" SelectedIndex="0" DisplayMemberPath="templateCode" ItemsSource="{Binding callTemplates}"
- TipString="{DynamicResource 0181}" BorderThickness="0" Background="Transparent"
- PopupWidth="184" PopupPadding="20 5 20 10" PopupMaxHeight="200" PopupHorizontalOffset="0"
- VerticalContentAlignment="Center" HorizontalContentAlignment="Left" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"
- DefeatImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownGrayIcon.png"
- OpenImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownBlueIcon.png"/>
- <!--<TextBlock Canvas.Left="450" Padding="0 15 0 0" Text="{Binding smsTemplates}" Width="145" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"/>-->
- <!--<TextBlock Canvas.Left="650" Padding="0 15 0 0" Text="{Binding callTemplates}" Width="145" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"/>-->
- <customControl:ComBoxCustom1 Canvas.Left="860" Width="96" Height="56" SelectedItem="{Binding SelectedTime}" DisplayMemberPath="Value" ItemsSource="{Binding TimeSource}" Tag="{Binding}"
- TipString="{DynamicResource 0273}" PopupWidth="96" BorderThickness="0" Background="Transparent" PopupPadding="20 5 20 10" PopupHorizontalOffset="0" SelectionChanged="IntervalTime_SelectionChanged"
- VerticalContentAlignment="Center" HorizontalContentAlignment="Left" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"
- DefeatImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownGrayIcon.png"
- OpenImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownBlueIcon.png"/>
- <!--<TextBlock Canvas.Left="850" Padding="0 15 0 0" Text="{Binding intervalTime}" Width="145" FontWeight="Medium" Foreground="#4D4D4D" FontSize="18"/>-->
- <Image Canvas.Left="980" Canvas.Top="15" Width="26" Height="26" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/AlarmSmsIcon.png" />
- <Image Visibility="{Binding SelectedLevel.Key,Converter={StaticResource Int1ToVisibilityConvert}}" Canvas.Left="1020" Canvas.Top="15" Width="26" Height="26" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/AlarmCallIcon.png"/>
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="ItemsControl.AlternationIndex" Value="1">
- <Setter Property="Background" Value="#eceef2" TargetName="itemCanvas"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Visibility" Value="Visible" TargetName="RectangleBorder"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ListBox.ItemContainerStyle>
- </ListBox>
- </Canvas>
- </Border>
- </Canvas>
- </UserControl>
|