AddDishWindowView.xaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <Window x:Class="ivf_tl_Operate.View.AddDishWindowView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:ivf_tl_Operate.View"
  7. xmlns:customControl="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_Surface"
  8. mc:Ignorable="d"
  9. WindowStyle="None"
  10. WindowStartupLocation="CenterOwner"
  11. Background="Transparent"
  12. ShowInTaskbar="False"
  13. AllowsTransparency="True"
  14. Title="Window" Height="2500" Width="1422">
  15. <!-- G2-1:外层 Viewbox(Uniform) 把设计基准 1422×2500 等比缩放进窗口客户区;窗口尺寸由 code-behind 按屏幕工作区算,避免写死像素超出屏幕被裁。内部 Canvas 绝对坐标原样跟随缩放,不改。 -->
  16. <Viewbox Stretch="Uniform">
  17. <Grid Width="1422" Height="2500" Background="Transparent">
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="134"/>
  20. <RowDefinition Height="*"/>
  21. </Grid.RowDefinitions>
  22. <Border Grid.Row="0" Height="134" CornerRadius="15 15 0 0" Background="#4D75AC" HorizontalAlignment="Left" Width="1422">
  23. <Grid>
  24. <Grid.ColumnDefinitions>
  25. <ColumnDefinition Width="*"/>
  26. <ColumnDefinition Width="auto"/>
  27. </Grid.ColumnDefinitions>
  28. <StackPanel Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Center">
  29. <TextBlock x:Name="numbertext" Grid.Column="0" Text="" FontSize="44" Foreground="#FFFFFF" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  30. </StackPanel>
  31. <Image Grid.Column="1" Margin="0 30 30 0" Height="66" Width="64" VerticalAlignment="Top" Source="/ivf_tl_Operate;component/Resources/Image/whiteClose.png" MouseDown="Cancel_MouseUp"/>
  32. </Grid>
  33. </Border>
  34. <Border Grid.Row="1" CornerRadius="0 0 15 15 " Background="#f9f9f9">
  35. <Grid>
  36. <Grid.RowDefinitions>
  37. <RowDefinition Height="1229"/>
  38. <RowDefinition Height="4"/>
  39. <RowDefinition Height="*"/>
  40. <RowDefinition Height="4"/>
  41. <RowDefinition Height="auto"/>
  42. </Grid.RowDefinitions>
  43. <Canvas x:Name="_canvas" Grid.Row="0" Background="{StaticResource BorderMenuFill}" Width="1422" Height="1229">
  44. <Viewbox Height="50" Canvas.Left="50" Canvas.Top="50" Panel.ZIndex="11" FocusVisualStyle="{x:Null}">
  45. <CheckBox x:Name="_isVip" Content="{DynamicResource C0028}" FocusVisualStyle="{x:Null}"/>
  46. </Viewbox>
  47. <Image Panel.ZIndex="2" x:Name="_ellipse2" Source="/ivf_tl_Operate;component/Resources/Image/ellipse_big_out.png" Canvas.Left="136" Canvas.Top="39.5" Stretch="Fill" Width="1150" Height="1150"/>
  48. <!--<Image Panel.ZIndex="3" x:Name="_ellipse1" Source="/ivf_tl_Operate;component/Resources/Image/ellipse_big_in.png" Stretch="Fill" Canvas.Left="211" Canvas.Top="114.5" Width="1000" Height="1000"/>-->
  49. <Ellipse Panel.ZIndex="10" StrokeThickness="13" Stroke="#DDE3EA" Canvas.Left="361" Canvas.Top="264.5" Width="700" Height="700"></Ellipse>
  50. <TextBlock x:Name="TextBlock_HouseSn" Canvas.Left="652" Canvas.Top="555.5" Panel.ZIndex="20" IsHitTestVisible="False" Width="118" Height="118" Text="10" TextAlignment="Center" FontSize="100" FontWeight="Medium" Foreground="#808080"/>
  51. </Canvas>
  52. <StackPanel Grid.Row="1">
  53. <Rectangle Width="1422" Height="2" Fill="#FAFAFA"/>
  54. <Rectangle Width="1422" Height="2" Fill="#DDDEE0"/>
  55. </StackPanel>
  56. <StackPanel Grid.Row="2" Margin="0 30 0 0 " HorizontalAlignment="Left" Width="1200">
  57. <!--<StackPanel Orientation="Horizontal">
  58. <Image Margin="0 0 10 0" Width="30" Height="30" Source="/ivf_tl_Operate;component/Resources/Image/RedStarIcon.png" />
  59. <TextBlock Grid.Column="0" Grid.Row="0" Text="{DynamicResource C0133}" FontSize="44" Foreground="#0B1B31" VerticalAlignment="Center" HorizontalAlignment="Right" />
  60. --><!--<customControl:TextBoxCustom x:Name="_caseId_TextBox" FontSize="44" TextMargin="20 0 20 0" DefeatMargin="20 0 20 0" Text="" Width="768" Height="60" Margin="20" DefeatString="{DynamicResource C0148}" />--><!--
  61. </StackPanel>-->
  62. <Grid Margin="0,20,0,20">
  63. <Grid.ColumnDefinitions>
  64. <ColumnDefinition Width="410" />
  65. <ColumnDefinition />
  66. </Grid.ColumnDefinitions>
  67. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  68. <Image Width="30" Height="30" Source="/ivf_tl_Operate;component/Resources/Image/RedStarIcon.png" />
  69. <TextBlock Margin="10 0 0 0" Text="{DynamicResource C0133}" FontSize="44" Foreground="#0B1B31" VerticalAlignment="Center" HorizontalAlignment="Right" />
  70. </StackPanel>
  71. <customControl:TextBoxCustom Margin="20 0 0 0" Grid.Column="1" x:Name="_caseId_TextBox" FontSize="44" TextMargin="20 0 20 0" DefeatMargin="20 0 20 0" Text="" Height="60" DefeatString="{DynamicResource C0148}" />
  72. </Grid>
  73. <Grid Margin="0,20,0,20">
  74. <Grid.ColumnDefinitions>
  75. <ColumnDefinition Width="410" />
  76. <ColumnDefinition />
  77. </Grid.ColumnDefinitions>
  78. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  79. <Image Width="30" Height="30" Source="/ivf_tl_Operate;component/Resources/Image/RedStarIcon.png" />
  80. <TextBlock Margin="10 0 0 0" Text="{DynamicResource C0162}" FontSize="44" Foreground="#0B1B31" VerticalAlignment="Center" HorizontalAlignment="Right" />
  81. </StackPanel>
  82. <customControl:TextBoxCustom Margin="20 0 0 0" Grid.Column="1" x:Name="_cycle_TextBox" FontSize="44" TextMargin="20 0 20 0" DefeatMargin="20 0 20 0" Text="" Height="60" DefeatString="{DynamicResource C0248}" />
  83. </Grid>
  84. <Grid Margin="0,20,0,20">
  85. <Grid.ColumnDefinitions>
  86. <ColumnDefinition Width="410" />
  87. <ColumnDefinition />
  88. </Grid.ColumnDefinitions>
  89. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  90. <Image Width="30" Height="30" Source="/ivf_tl_Operate;component/Resources/Image/RedStarIcon.png" />
  91. <TextBlock Margin="10 0 0 0" Text="{DynamicResource C0022}" FontSize="44" Foreground="#0B1B31" VerticalAlignment="Center" HorizontalAlignment="Right" />
  92. </StackPanel>
  93. <customControl:TextBoxCustom Margin="20 0 0 0" Grid.Column="1" x:Name="_wife_TextBox" FontSize="44" TextMargin="20 0 20 0" DefeatMargin="20 0 20 0" Text="" Height="60" DefeatString="{DynamicResource C0149}" />
  94. </Grid>
  95. <StackPanel Orientation="Horizontal">
  96. <TextBlock Width="410" TextAlignment="Right" Text="{DynamicResource C0023}" FontSize="44" Foreground="#0B1B31" VerticalAlignment="Center" HorizontalAlignment="Right"/>
  97. <customControl:ComBoxCustom x:Name="_wifeYear" Margin="20 20 0 20" Width="169.5" Height="60" TipString="{DynamicResource C0151}" SelectionChanged="Wifi_SelectionChanged" DefeatImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownGrayIcon.png" OpenImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownBlueIcon.png"/>
  98. <customControl:ComBoxCustom x:Name="_wifeMonth" Margin="30 0 0 0" Width="169.5" Height="60" TipString="{DynamicResource C0152}" SelectionChanged="Wifi_SelectionChanged" DefeatImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownGrayIcon.png" OpenImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownBlueIcon.png"/>
  99. <customControl:ComBoxCustom x:Name="_wifeDay" Margin="30 0 0 0" Width="169.5" Height="60" TipString="{DynamicResource C0153}" SelectionChanged="Wifi_SelectionChanged" DefeatImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownGrayIcon.png" OpenImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownBlueIcon.png"/>
  100. <Border Margin="30 0 0 0" Width="169.5" Height="60" Background="#E4E4E4" CornerRadius="6" BorderBrush="#D1D1D1" BorderThickness="1">
  101. <TextBlock x:Name="_wifeAge" FontSize="44" Text="" Foreground="#A4A4A4" />
  102. </Border>
  103. <!--<Border Margin="20" Grid.Column="1" Grid.Row="4" Width="768" Height="60"
  104. MouseUp="WifeBirth_MouseUp"
  105. BorderThickness="1" BorderBrush="#707070" Background="White">
  106. <TextBlock Width="768" FontSize="44" x:Name="_wifeBirth_TextBox" Text="" HorizontalAlignment="Left"/>
  107. </Border>-->
  108. </StackPanel>
  109. <Grid Margin="0,20,0,20">
  110. <Grid.ColumnDefinitions>
  111. <ColumnDefinition Width="410" />
  112. <ColumnDefinition />
  113. </Grid.ColumnDefinitions>
  114. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  115. <Image Width="30" Height="30" Source="/ivf_tl_Operate;component/Resources/Image/RedStarIcon.png" />
  116. <TextBlock Margin="10 0 0 0" Text="{DynamicResource C0024}" FontSize="44" Foreground="#0B1B31" VerticalAlignment="Center" HorizontalAlignment="Right" />
  117. </StackPanel>
  118. <customControl:TextBoxCustom Margin="20 0 0 0" Grid.Column="1" x:Name="_husband_TextBox" FontSize="44" TextMargin="20 0 20 0" DefeatMargin="20 0 20 0" Text="" Height="60" DefeatString="{DynamicResource C0150}" />
  119. </Grid>
  120. <StackPanel Orientation="Horizontal">
  121. <TextBlock Width="410" TextAlignment="Right" Grid.Column="0" Grid.Row="4" Text="{DynamicResource C0025}" FontSize="44" Foreground="#0B1B31" VerticalAlignment="Center" HorizontalAlignment="Right"/>
  122. <customControl:ComBoxCustom x:Name="_husbandYear" Margin="20 20 0 20" Width="169.5" Height="60" TipString="{DynamicResource C0151}" SelectionChanged="HusBand_SelectionChanged" DefeatImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownGrayIcon.png" OpenImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownBlueIcon.png"/>
  123. <customControl:ComBoxCustom x:Name="_husbandMonth" Margin="30 0 0 0" Width="169.5" Height="60" TipString="{DynamicResource C0152}" SelectionChanged="HusBand_SelectionChanged" DefeatImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownGrayIcon.png" OpenImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownBlueIcon.png"/>
  124. <customControl:ComBoxCustom x:Name="_husbandDay" Margin="30 0 0 0" Width="169.5" Height="60" TipString="{DynamicResource C0153}" SelectionChanged="HusBand_SelectionChanged" DefeatImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownGrayIcon.png" OpenImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownBlueIcon.png"/>
  125. <Border Margin="30 0 0 0" Width="169.5" Height="60" Background="#E4E4E4" CornerRadius="6" BorderBrush="#D1D1D1" BorderThickness="1">
  126. <TextBlock x:Name="_husbandAge" FontSize="44" Text="" Foreground="#A4A4A4" />
  127. </Border>
  128. <!--<Border Margin="20" Grid.Column="1" Grid.Row="2" Width="768" Height="60"
  129. MouseUp="HusbandBirth_MouseUp"
  130. BorderThickness="1" BorderBrush="#707070" Background="White">
  131. <TextBlock Width="768" FontSize="44" x:Name="_husbandBirth_TextBox" Text="" HorizontalAlignment="Left"/>
  132. </Border>-->
  133. </StackPanel>
  134. <Grid Margin="0,20,0,20">
  135. <Grid.ColumnDefinitions>
  136. <ColumnDefinition Width="410" />
  137. <ColumnDefinition />
  138. </Grid.ColumnDefinitions>
  139. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  140. <Image Width="30" Height="30" Source="/ivf_tl_Operate;component/Resources/Image/RedStarIcon.png" />
  141. <TextBlock Margin="10 0 0 0" Text="{DynamicResource C0026}" FontSize="44" Foreground="#0B1B31" VerticalAlignment="Center" HorizontalAlignment="Right" />
  142. </StackPanel>
  143. <Border Margin="20 0 0 0" CornerRadius="6" x:Name="_Border_TextBox" Grid.Column="1" Grid.Row="6" Height="60" MouseUp="StartTime_MouseUp" BorderThickness="1" BorderBrush="#707070" Background="White">
  144. <TextBlock Padding="20 0 0 0" FontSize="44" Foreground="#C9C9C9" x:Name="_startTime_TextBox" Text="{DynamicResource C0154}" HorizontalAlignment="Left"/>
  145. </Border>
  146. </Grid>
  147. <Grid Margin="0,20,0,20">
  148. <Grid.ColumnDefinitions>
  149. <ColumnDefinition Width="410" />
  150. <ColumnDefinition />
  151. </Grid.ColumnDefinitions>
  152. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  153. <Image Width="30" Height="30" Source="/ivf_tl_Operate;component/Resources/Image/RedStarIcon.png" />
  154. <TextBlock Margin="10 0 0 0" Text="{DynamicResource C0027}" FontSize="44" Foreground="#0B1B31" VerticalAlignment="Center" HorizontalAlignment="Right" />
  155. </StackPanel>
  156. <customControl:ComBoxCustom ItemPlacementMode="Top" Grid.Column="1" TipString="{DynamicResource C0155}" Margin="20 0 0 0"
  157. x:Name="_freType_ComboBox" Height="60" DisplayMemberPath="dictName"
  158. DefeatImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownGrayIcon.png"
  159. OpenImageSource="pack://application:,,,/ivf_tl_Operate;component/Resources/Image/PullDownBlueIcon.png"/>
  160. </Grid>
  161. <TextBlock x:Name="_errorInfo_TextBlock" Margin="400 0 0 0" Text="" FontSize="22" Foreground="Red" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  162. </StackPanel>
  163. <StackPanel Grid.Row="3">
  164. <Rectangle Width="1422" Height="2" Fill="#FAFAFA"/>
  165. <Rectangle Width="1422" Height="2" Fill="#DDDEE0"/>
  166. </StackPanel>
  167. <!--按钮-->
  168. <StackPanel x:Name="_addDishButton" Visibility="Hidden" Grid.Row="4" HorizontalAlignment="Center" Orientation="Horizontal" Height="250">
  169. <customControl:ButtonCornerRadius x:Name="_balance_Button" Click="StartBalance_Click" Width="366" Height="120" CornerRadius="60" Background="#d2ac7e" BorderThickness="0" Content="{DynamicResource C0261}" FontSize="46" FontWeight="Bold" Foreground="#0D0604" Margin="20 20 0 20"/>
  170. <customControl:ButtonCornerRadius Click="StartDish_Click" Width="366" Height="120" CornerRadius="60" Background="#2e9ad2" BorderThickness="0" Content="{DynamicResource C0030}" FontSize="46" FontWeight="Bold" Foreground="#0D0604" Margin="142 20 20 20"/>
  171. <!--<customControl:ButtonCornerRadius Click="Cancel_Click" Width="366" Height="120" CornerRadius="60" Background="#B0B4B9" BorderThickness="0" Content="取消" FontSize="46" FontWeight="Bold" Foreground="White" Margin="142 20 0 20"/>-->
  172. </StackPanel>
  173. <StackPanel x:Name="_editDishButton" HorizontalAlignment="Center" Visibility="Hidden" Grid.Row="4" Orientation="Horizontal" Height="250">
  174. <customControl:ButtonCornerRadius Click="EditDishSave_Click" Width="366" Height="120" CornerRadius="60" Background="#2e9ad2" BorderThickness="0" Content="{DynamicResource C0030}" FontSize="46" FontWeight="Bold" Foreground="#0D0604" />
  175. <!--<customControl:ButtonCornerRadius Click="Cancel_Click" Width="366" Height="120" CornerRadius="60" Background="#B0B4B9" BorderThickness="0" Content="取消" FontSize="46" FontWeight="Bold" Foreground="White" Margin="491 20 100 20"/>-->
  176. </StackPanel>
  177. </Grid>
  178. </Border>
  179. <Grid x:Name="_mask" Grid.Row="0" Grid.RowSpan="2" Opacity="0.8" Background="Black" Visibility="Hidden" />
  180. </Grid>
  181. </Viewbox>
  182. </Window>