终端一体化运控平台
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

249 linhas
12 KiB

  1. <Window
  2. x:Class="BPASmartClient.FoodStationTest.View.RecipeInfosView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.FoodStationTest.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.FoodStationTest.ViewModel"
  9. Title="RecipeInfosView"
  10. Width="550"
  11. Height="450"
  12. AllowsTransparency="True"
  13. Background="{x:Null}"
  14. Topmost="True"
  15. WindowStartupLocation="CenterScreen"
  16. WindowStyle="None"
  17. mc:Ignorable="d">
  18. <Window.DataContext>
  19. <vm:RecipeInfosViewModel />
  20. </Window.DataContext>
  21. <Window.Resources>
  22. <ResourceDictionary>
  23. <ResourceDictionary.MergedDictionaries>
  24. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  25. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  26. <ResourceDictionary>
  27. <!--#region ListBox样式-->
  28. <!--<Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}">
  29. <Setter Property="OverridesDefaultStyle" Value="True" />
  30. <Setter Property="SnapsToDevicePixels" Value="True" />
  31. <Setter Property="BorderBrush" Value="{x:Null}" />
  32. <Setter Property="Foreground" Value="White" />
  33. <Setter Property="FontSize" Value="20" />
  34. <Setter Property="HorizontalContentAlignment" Value="Center" />
  35. <Setter Property="VerticalContentAlignment" Value="Center" />
  36. <Setter Property="Template">
  37. <Setter.Value>
  38. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  39. <Border x:Name="border" CornerRadius="8">
  40. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  41. </Border>
  42. </ControlTemplate>
  43. </Setter.Value>
  44. </Setter>
  45. </Style>-->
  46. <!--#endregion-->
  47. </ResourceDictionary>
  48. </ResourceDictionary.MergedDictionaries>
  49. </ResourceDictionary>
  50. </Window.Resources>
  51. <Border
  52. Name="br"
  53. BorderBrush="#0CADF5"
  54. BorderThickness="1">
  55. <Border.Background>
  56. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/bg.png" />
  57. </Border.Background>
  58. <Grid>
  59. <Grid.RowDefinitions>
  60. <RowDefinition />
  61. </Grid.RowDefinitions>
  62. <Grid Grid.Row="1">
  63. <Grid.RowDefinitions>
  64. <RowDefinition Height="80" />
  65. <RowDefinition />
  66. </Grid.RowDefinitions>
  67. <Grid>
  68. <Grid.ColumnDefinitions>
  69. <ColumnDefinition />
  70. <ColumnDefinition />
  71. </Grid.ColumnDefinitions>
  72. <Grid.RowDefinitions>
  73. <RowDefinition />
  74. <RowDefinition />
  75. </Grid.RowDefinitions>
  76. <WrapPanel>
  77. <TextBlock
  78. Margin="10,10"
  79. Background="Transparent"
  80. FontSize="16"
  81. Foreground="#FF2AB2E7"
  82. Text="配方名称:" />
  83. <TextBlock
  84. Margin="10,10"
  85. Background="Transparent"
  86. FontSize="16"
  87. Foreground="#FF2AB2E7"
  88. Text="{Binding RecipeName}" />
  89. </WrapPanel>
  90. <WrapPanel Grid.Column="1">
  91. <TextBlock
  92. Margin="10,10"
  93. Background="Transparent"
  94. FontSize="16"
  95. Foreground="#FF2AB2E7"
  96. Text="配方编号:" />
  97. <TextBlock
  98. Margin="10,10"
  99. Background="Transparent"
  100. FontSize="16"
  101. Foreground="#FF2AB2E7"
  102. Text="{Binding RecipeCode}" />
  103. </WrapPanel>
  104. <WrapPanel Grid.Row="1">
  105. <TextBlock
  106. Margin="10,0,0,0"
  107. Background="Transparent"
  108. FontSize="16"
  109. Foreground="#FF2AB2E7"
  110. Text="托盘编号:" />
  111. <TextBlock
  112. Grid.Row="1"
  113. Margin="10,10"
  114. Background="Transparent"
  115. FontSize="16"
  116. Foreground="#FF2AB2E7"
  117. Text="{Binding TrayCode}" />
  118. </WrapPanel>
  119. <Button
  120. Grid.Row="1"
  121. Grid.Column="1"
  122. Width="100"
  123. Margin="10,0,0,0"
  124. HorizontalAlignment="Left"
  125. Command="{Binding ReturnPage}">
  126. 返回
  127. </Button>
  128. </Grid>
  129. <Grid Grid.Row="3">
  130. <Grid Grid.Column="1">
  131. <Grid.RowDefinitions>
  132. <RowDefinition Height="20" />
  133. <RowDefinition />
  134. </Grid.RowDefinitions>
  135. <Grid Grid.Row="0">
  136. <Grid.ColumnDefinitions>
  137. <ColumnDefinition Width="2.5*" />
  138. <ColumnDefinition Width="2*" />
  139. <ColumnDefinition Width="2*" />
  140. <ColumnDefinition Width="2*" />
  141. <ColumnDefinition Width="2*" />
  142. </Grid.ColumnDefinitions>
  143. <TextBlock
  144. Grid.Column="0"
  145. HorizontalAlignment="Center"
  146. VerticalAlignment="Top"
  147. FontSize="16">
  148. 原料名称
  149. </TextBlock>
  150. <TextBlock
  151. Grid.Column="1"
  152. HorizontalAlignment="Center"
  153. VerticalAlignment="Top"
  154. FontSize="16">
  155. 原料位置
  156. </TextBlock>
  157. <TextBlock
  158. Grid.Column="2"
  159. HorizontalAlignment="Center"
  160. VerticalAlignment="Top"
  161. FontSize="16">
  162. 原料桶号
  163. </TextBlock>
  164. <TextBlock
  165. Grid.Column="3"
  166. HorizontalAlignment="Center"
  167. VerticalAlignment="Top"
  168. FontSize="16">
  169. 原料重量
  170. </TextBlock>
  171. <TextBlock
  172. Grid.Column="4"
  173. HorizontalAlignment="Center"
  174. VerticalAlignment="Top"
  175. FontSize="16">
  176. 原料类型
  177. </TextBlock>
  178. </Grid>
  179. <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Hidden">
  180. <ItemsControl Width="548" ItemsSource="{Binding RawMaterialsInfo}">
  181. <ItemsControl.ItemTemplate>
  182. <DataTemplate>
  183. <Grid x:Name="grb" Height="25">
  184. <Grid.ColumnDefinitions>
  185. <ColumnDefinition Width="2.5*" />
  186. <ColumnDefinition Width="2*" />
  187. <ColumnDefinition Width="2*" />
  188. <ColumnDefinition Width="2*" />
  189. <ColumnDefinition Width="2*" />
  190. </Grid.ColumnDefinitions>
  191. <TextBlock
  192. Grid.Column="0"
  193. HorizontalAlignment="Center"
  194. VerticalAlignment="Top"
  195. FontSize="16"
  196. Foreground="#FF2AB2E7"
  197. Text="{Binding RawMaterialName}" />
  198. <TextBlock
  199. Grid.Column="1"
  200. HorizontalAlignment="Center"
  201. VerticalAlignment="Top"
  202. FontSize="16"
  203. Foreground="#FF2AB2E7"
  204. Text="{Binding RawMaterialLocation}" />
  205. <TextBlock
  206. Grid.Column="2"
  207. HorizontalAlignment="Center"
  208. VerticalAlignment="Top"
  209. FontSize="16"
  210. Foreground="#FF2AB2E7"
  211. Text="{Binding RawMaterialBarrelNum}" />
  212. <TextBlock
  213. Grid.Column="3"
  214. HorizontalAlignment="Center"
  215. VerticalAlignment="Top"
  216. FontSize="16"
  217. Foreground="#FF2AB2E7"
  218. Text="{Binding RawMaterialWeight}" />
  219. <TextBlock
  220. Grid.Column="4"
  221. HorizontalAlignment="Center"
  222. VerticalAlignment="Top"
  223. FontSize="16"
  224. Foreground="#FF2AB2E7"
  225. Text="{Binding RawMaterialType}" />
  226. </Grid>
  227. <DataTemplate.Triggers>
  228. <Trigger Property="IsMouseOver" Value="true">
  229. <Setter TargetName="grb" Property="Background" Value="#112AB2E7" />
  230. </Trigger>
  231. </DataTemplate.Triggers>
  232. </DataTemplate>
  233. </ItemsControl.ItemTemplate>
  234. </ItemsControl>
  235. </ScrollViewer>
  236. </Grid>
  237. </Grid>
  238. </Grid>
  239. </Grid>
  240. </Border>
  241. </Window>