MarkDetail.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <UserControl x:Class="ivf_tl_Manage.Views.MarkDetail"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ivf_tl_Manage.Views" xmlns:usercontrols="clr-namespace:ivf_tl_Manage.UserControls"
  7. xmlns:customControl="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
  8. mc:Ignorable="d"
  9. FontFamily="{StaticResource sourceHan}"
  10. Width="1830" Height="1015" Opacity="25">
  11. <UserControl.Background>
  12. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/markdetail_BigbgImg.png" ></ImageBrush>
  13. </UserControl.Background>
  14. <Canvas x:Name="Canvas_Root">
  15. <!--<StackPanel Canvas.Left="40" Canvas.Top="36" Background="Transparent" Orientation="Horizontal"
  16. Visibility="{Binding IsDishRecord,Converter={StaticResource BoolToVisibilityConvert}}">
  17. <Button Style="{StaticResource ButtonStyle1}" BorderThickness="0" Background="Transparent" FontSize="28" Margin="0,0,0,0" Content="{DynamicResource 0001}" Click="Button_Click" FontWeight="Bold" ></Button>
  18. <TextBlock VerticalAlignment="Center" FontSize="28" Margin="8,0,0,0" Foreground="#9B9B9B" Text=">" FontWeight="Bold" ></TextBlock>
  19. <Button Style="{StaticResource ButtonStyle1}" BorderThickness="0" Background="Transparent" FontSize="28" Margin="8,0,0,0" Content="{DynamicResource 0149}" Click="Button_Click_patient" FontWeight="Bold" ></Button>
  20. <TextBlock VerticalAlignment="Center" FontSize="28" Margin="8,0,0,0" Foreground="#9B9B9B" Text=">" FontWeight="Bold" ></TextBlock>
  21. <Button Style="{StaticResource ButtonStyle1}" BorderThickness="0" Background="Transparent" FontSize="28" Margin="8,0,0,0" Content="{Binding Title}" Click="Button_Click_Detail" FontWeight="Bold" ></Button>
  22. <TextBlock VerticalAlignment="Center" FontSize="28" Margin="8,0,0,0" Foreground="#9B9B9B" Text=">" FontWeight="Bold" ></TextBlock>
  23. <TextBlock Margin="8 0 0 0" FontWeight="Bold" Foreground="Black" FontSize="32" Text="{DynamicResource 0162}"/>
  24. </StackPanel>
  25. <StackPanel Canvas.Left="40" Canvas.Top="36" Background="Transparent" Orientation="Horizontal"
  26. Visibility="{Binding IsDishRecord,Converter={StaticResource BooleanToVisibilityConverter}}">
  27. <Button Style="{StaticResource ButtonStyle1}" BorderThickness="0" Background="Transparent" FontSize="28" Content="{DynamicResource 0002}" Click="RecordButton_Click_patient" FontWeight="Bold" ></Button>
  28. <TextBlock VerticalAlignment="Center" FontSize="28" Margin="8,0,0,0" Foreground="#9B9B9B" Text=">" FontWeight="Bold" ></TextBlock>
  29. <Button Style="{StaticResource ButtonStyle1}" BorderThickness="0" Background="Transparent" FontSize="28" Margin="8,0,0,0" Content="{Binding Title}" Click="RecordButton_Click_Detail" FontWeight="Bold" ></Button>
  30. <TextBlock VerticalAlignment="Center" FontSize="28" Margin="8,0,0,0" Foreground="#9B9B9B" Text=">" FontWeight="Bold" ></TextBlock>
  31. <TextBlock Margin="8 0 0 0" FontWeight="Bold" Foreground="Black" FontSize="32" Text="{DynamicResource 0162}"/>
  32. </StackPanel>-->
  33. <StackPanel x:Name="_nav_StackPanel" Canvas.Left="40" Canvas.Top="36" Orientation="Horizontal"/>
  34. <StackPanel Canvas.Left="40" Canvas.Top="83" Width="1790" Height="106" Orientation="Horizontal">
  35. <StackPanel.Background>
  36. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/markDetail_backgroud.png"></ImageBrush>
  37. </StackPanel.Background>
  38. <TextBlock Margin="40,35,0,0" Foreground="#707070" FontSize="22" FontWeight="Medium">
  39. <Run Text="{DynamicResource 0034}"/><Run Text=":"/>
  40. </TextBlock>
  41. <TextBlock Margin="15,35,0,0" Foreground="#4D4D4D" Text="{Binding Dish.wife}" FontSize="22" FontWeight="Medium"></TextBlock>
  42. <TextBlock Margin="40,35,0,0" Foreground="#707070" FontSize="22" FontWeight="Medium">
  43. <Run Text="{DynamicResource 0035}"/><Run Text=":"/>
  44. </TextBlock>
  45. <TextBlock Margin="15,35,0,0" Foreground="#4D4D4D" Text="{Binding Dish.husband}" FontSize="22" FontWeight="Medium"></TextBlock>
  46. <TextBlock Margin="40,35,0,0" Foreground="#707070" FontSize="22" FontWeight="Medium">
  47. <Run Text="{DynamicResource 0032}"/><Run Text=":"/>
  48. </TextBlock>
  49. <TextBlock Margin="15,35,0,0" Foreground="#4D4D4D" Text="{Binding Time}" FontSize="22" FontWeight="Medium"></TextBlock>
  50. <TextBlock Margin="40,35,0,0" Foreground="#707070" FontSize="22" FontWeight="Medium">
  51. <Run Text="{DynamicResource 0157}"/><Run Text=":"/>
  52. </TextBlock>
  53. <TextBlock Margin="15,35,0,0" Foreground="#4D4D4D" Text="{Binding Dish.fertilizationType}" FontSize="22" FontWeight="Medium"></TextBlock>
  54. </StackPanel>
  55. <StackPanel Orientation="Horizontal" Canvas.Left="1704" Canvas.Top="100" Background="Transparent" Height="70">
  56. <Rectangle Width="2" Height="30" Fill="#C1C1C1" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,22,0,0" ></Rectangle>
  57. <customControl:ButtonLeftImage Margin="7 0 0 0" IconWidth="32" IconHeight="32" IconMargin="0 0 5 0"
  58. Content="{DynamicResource 0062}" FontWeight="Medium" FontSize="16" Click="Export_Click"
  59. IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/markdetail_card.png"
  60. MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/markdetail_cardM.png"
  61. MouseOverForeground="#4D75AC"
  62. Foreground="#9B9B9B"/>
  63. <!--<Image Width="32" Height="32" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/markdetail_card.png" Margin="7,0,0,0" ></Image>
  64. <TextBlock Text="导出详情" FontSize="18" Foreground="#9B9B9B" VerticalAlignment="Center" FontWeight="Medium" Margin="4,0,0,0"></TextBlock>-->
  65. </StackPanel>
  66. <StackPanel Panel.ZIndex="2" Canvas.Left="670" Canvas.Top="422" Visibility="{Binding ElementName=ListView_Embryos,Path=HasItems,Converter={StaticResource BoolToVisibilityConvert}}">
  67. <Image Width="490" Height="360" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/NoDataBackground.png" />
  68. <TextBlock TextAlignment="Center" Canvas.Left="185" Canvas.Top="360" FontWeight="Medium" Foreground="#9B9B9B" FontSize="30" Text="{DynamicResource 0205}"/>
  69. </StackPanel>
  70. <!--markdetail_bgImg MarkSettingContentBackground-->
  71. <Grid Width="1790" Height="846" Margin="0,10,0,0" Canvas.Left="40" Canvas.Top="169" >
  72. <Grid.Background>
  73. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/markdetail_bgImg.png" ></ImageBrush>
  74. </Grid.Background>
  75. <Grid.RowDefinitions>
  76. <RowDefinition Height="86"></RowDefinition>
  77. <RowDefinition Height="*"></RowDefinition>
  78. </Grid.RowDefinitions>
  79. <StackPanel Background="Transparent" Orientation="Horizontal" Grid.Row="0" Margin=" 0 ,12, 0, 0">
  80. <usercontrols:OrderControl x:Name="order_one" Margin="40,0,0,0" MouseLeftButtonDown="order_one_MouseLeftButtonDown" Text="{DynamicResource 0243}" ></usercontrols:OrderControl>
  81. <usercontrols:OrderControl Width="143" x:Name="order_two" Margin="80,0,0,0" MouseLeftButtonDown="order_two_MouseLeftButtonDown" Text="{DynamicResource 0165}" ></usercontrols:OrderControl>
  82. <usercontrols:OrderControl Visibility="Collapsed" Width="143" x:Name="order_three" Margin="39,0,0,0" MouseLeftButtonDown="order_three_MouseLeftButtonDown" Text="{DynamicResource 0166}"></usercontrols:OrderControl>
  83. </StackPanel>
  84. <TextBlock x:Name="tb_dishId" Visibility="Collapsed" Text="{Binding DishId}"/>
  85. <ScrollViewer x:Name="_scrollview" Margin="13,0,0,0" Width="1762" Grid.Row="1" Background="Transparent" BorderThickness="0" PreviewMouseWheel="ScrollViewer_PreviewMouseWheel">
  86. <ListView x:Name="ListView_Embryos" ItemsSource="{Binding Embryos}" AlternationCount="2" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Background="Transparent">
  87. <ListView.ItemContainerStyle>
  88. <Style TargetType="{x:Type ListViewItem}">
  89. <Setter Property="HorizontalAlignment" Value="Center"/>
  90. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  91. <EventSetter Event="MouseUp" Handler="ListViewItem_MouseUp"/>
  92. <Setter Property="Template">
  93. <Setter.Value >
  94. <ControlTemplate TargetType="{x:Type ListViewItem}">
  95. <Border x:Name="ItemBorder" Background="Transparent" BorderThickness="2" BorderBrush="Transparent">
  96. <!--ImageSource="{Binding pictureUrl}"-->
  97. <!--<TextBlock x:Name="_markBox" FontSize="40" Text="{Binding startTime}"/>-->
  98. <usercontrols:MarkDetailItem MouseDown="_markDetailItem_MouseDown" MarkDetailEvent="_markDetailItem_MarkDetailEvent" x:Name="_markDetailItem" EmbryoData="{Binding}" DishIdString="{Binding ElementName=tb_dishId,Path=Text}" FaYuTime="{Binding startTime}" State="{Binding state}" Background="#ECEEF2" Level="{Binding blastocystLevel}" Number="{Binding wellSn}" Score="{Binding score}" StateTime="{Binding stateTime}"/>
  99. </Border>
  100. <ControlTemplate.Triggers>
  101. <!--<Trigger Property="ItemsControl.AlternationIndex" Value="1">
  102. <Setter Property="Background" Value="#F6F6F6" TargetName="_markDetailItem"/>
  103. </Trigger>-->
  104. <Trigger Property="IsMouseOver" Value="True">
  105. <Setter Property="BorderBrush" Value="#6DA5FF" TargetName="ItemBorder"/>
  106. </Trigger>
  107. </ControlTemplate.Triggers>
  108. </ControlTemplate>
  109. </Setter.Value>
  110. </Setter>
  111. </Style>
  112. </ListView.ItemContainerStyle>
  113. </ListView>
  114. </ScrollViewer>
  115. </Grid>
  116. </Canvas>
  117. </UserControl>