终端一体化运控平台
Você não pode selecionar mais de 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.
 
 
 

219 linhas
9.5 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.JXJFoodSmallStation.View.WindSendParView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:con="clr-namespace:BPASmartClient.JXJFoodSmallStation.Converter"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.JXJFoodSmallStation.View"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  10. xmlns:vm="clr-namespace:BPASmartClient.JXJFoodSmallStation.ViewModel"
  11. d:DesignHeight="1080"
  12. d:DesignWidth="1920"
  13. mc:Ignorable="d">
  14. <UserControl.DataContext>
  15. <vm:WindSendParViewModel />
  16. </UserControl.DataContext>
  17. <UserControl.Resources>
  18. <ResourceDictionary>
  19. <ResourceDictionary.MergedDictionaries>
  20. <ResourceDictionary Source="/BPASmartClient.JXJFoodSmallStation;component/Resource/MyStyle.xaml" />
  21. </ResourceDictionary.MergedDictionaries>
  22. </ResourceDictionary>
  23. </UserControl.Resources>
  24. <Grid Margin="10">
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="60" />
  27. <RowDefinition Height="40" />
  28. <RowDefinition />
  29. </Grid.RowDefinitions>
  30. <!--#region 表格标题栏设置-->
  31. <Grid>
  32. <StackPanel
  33. HorizontalAlignment="Right"
  34. VerticalAlignment="Center"
  35. Orientation="Horizontal">
  36. <!--<pry:IcoButton
  37. Margin="10"
  38. Command="{Binding UpdateRawMaterial}"
  39. Content="新增数据"
  40. FontSize="28"
  41. Foreground="Aqua"
  42. Style="{StaticResource IcoButtonStyle}" />-->
  43. <Button
  44. Width="150"
  45. Height="50"
  46. Margin="5"
  47. Command="{Binding SaveRawMaterialPara}"
  48. Content="保存参数"
  49. FontSize="28"
  50. Foreground="DeepSkyBlue"
  51. Style="{StaticResource ImageButtonStyle}" />
  52. <!--<pry:IcoButton
  53. Margin="10"
  54. Command="{Binding SaveRawMaterialPara}"
  55. Content="保存参数"
  56. FontSize="28"
  57. Foreground="Aqua"
  58. Style="{StaticResource IcoButtonStyle}" />-->
  59. </StackPanel>
  60. </Grid>
  61. <Grid
  62. Grid.Row="1"
  63. Margin="0,10,0,0"
  64. Background="#ff0C255F">
  65. <Grid.ColumnDefinitions>
  66. <ColumnDefinition />
  67. <ColumnDefinition />
  68. <ColumnDefinition />
  69. <ColumnDefinition />
  70. </Grid.ColumnDefinitions>
  71. <TextBlock
  72. Grid.Column="0"
  73. FontSize="24"
  74. Style="{StaticResource TitleTextblockStyle}"
  75. Text="序号" />
  76. <TextBlock
  77. Grid.Column="1"
  78. FontSize="24"
  79. Style="{StaticResource TitleTextblockStyle}"
  80. Text="料仓位置" />
  81. <TextBlock
  82. Grid.Column="2"
  83. FontSize="24"
  84. Style="{StaticResource TitleTextblockStyle}"
  85. Text="原料编号" />
  86. <TextBlock
  87. Grid.Column="3"
  88. FontSize="24"
  89. Style="{StaticResource TitleTextblockStyle}"
  90. Text="原料名称" />
  91. <Border
  92. Grid.Column="0"
  93. Grid.ColumnSpan="4"
  94. BorderBrush="{StaticResource bordColor}"
  95. BorderThickness="1,1,1,1" />
  96. <Border
  97. Grid.Column="1"
  98. BorderBrush="{StaticResource bordColor}"
  99. BorderThickness="1,0,1,0" />
  100. <Border
  101. Grid.Column="3"
  102. BorderBrush="{StaticResource bordColor}"
  103. BorderThickness="1,0,1,0" />
  104. </Grid>
  105. <Grid Grid.Row="2">
  106. <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  107. <ItemsControl Foreground="DeepSkyBlue" ItemsSource="{Binding WindSendRawMaterial}">
  108. <ItemsControl.ItemTemplate>
  109. <DataTemplate>
  110. <Grid Name="gr">
  111. <Grid.ColumnDefinitions>
  112. <ColumnDefinition />
  113. <ColumnDefinition />
  114. <ColumnDefinition />
  115. <ColumnDefinition />
  116. </Grid.ColumnDefinitions>
  117. <TextBlock
  118. Grid.Column="0"
  119. HorizontalAlignment="Center"
  120. VerticalAlignment="Center"
  121. FontSize="16"
  122. Text="{Binding Location}" />
  123. <TextBlock
  124. Grid.Column="1"
  125. HorizontalAlignment="Center"
  126. VerticalAlignment="Center"
  127. FontSize="16"
  128. Text="{Binding Location}" />
  129. <TextBox
  130. Grid.Column="2"
  131. Style="{StaticResource InputTextboxStyle}"
  132. Text="{Binding RawMaterialName}" />
  133. <TextBlock
  134. Grid.Column="3"
  135. HorizontalAlignment="Center"
  136. VerticalAlignment="Center"
  137. FontSize="16"
  138. Text="{Binding RawMaterialChineseName}" />
  139. <Border
  140. Grid.Column="0"
  141. Grid.ColumnSpan="4"
  142. BorderBrush="{StaticResource bordColor}"
  143. BorderThickness="1,0,1,1" />
  144. <Border
  145. Grid.Column="1"
  146. BorderBrush="{StaticResource bordColor}"
  147. BorderThickness="1,0,1,0" />
  148. <Border
  149. Grid.Column="3"
  150. BorderBrush="{StaticResource bordColor}"
  151. BorderThickness="1,0,1,0" />
  152. <!--<Grid Grid.Column="0" Margin="5">
  153. <TextBlock
  154. HorizontalAlignment="Center"
  155. VerticalAlignment="Center"
  156. FontSize="16"
  157. Text="{Binding Location}" />
  158. <Border BorderThickness="1,0,1,0" Cursor="SizeWE" />
  159. </Grid>
  160. <Grid Grid.Column="1" Margin="5">
  161. <TextBlock
  162. Width="50"
  163. HorizontalAlignment="Center"
  164. VerticalAlignment="Center"
  165. FontSize="16"
  166. Text="{Binding Location}"
  167. TextAlignment="Center" />
  168. <Border BorderThickness="1,0,1,0" Cursor="SizeWE" />
  169. </Grid>
  170. <Grid Grid.Column="2" Margin="5">
  171. <TextBox
  172. Name="name"
  173. Width="50"
  174. HorizontalAlignment="Center"
  175. VerticalAlignment="Center"
  176. FontSize="16"
  177. Text="{Binding RawMaterialName}" />
  178. <Border BorderThickness="1,0,1,0" Cursor="SizeWE" />
  179. </Grid>
  180. <Grid Grid.Column="3" Margin="5">
  181. <TextBlock
  182. HorizontalAlignment="Center"
  183. VerticalAlignment="Center"
  184. FontSize="16"
  185. Text="{Binding RawMaterialChineseName}" />
  186. <Border BorderThickness="1,0,1,0" Cursor="SizeWE" />
  187. </Grid>-->
  188. </Grid>
  189. <DataTemplate.Triggers>
  190. <Trigger Property="IsMouseOver" Value="true">
  191. <Setter TargetName="gr" Property="Background" Value="#112AB2E7" />
  192. </Trigger>
  193. </DataTemplate.Triggers>
  194. </DataTemplate>
  195. </ItemsControl.ItemTemplate>
  196. </ItemsControl>
  197. </ScrollViewer>
  198. </Grid>
  199. </Grid>
  200. </UserControl>