终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

240 rivejä
9.3 KiB

  1. <Window
  2. x:Class="BPASmartClient.SmallBatchingSystem.Views.NewOutletView"
  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.SmallBatchingSystem.Converter"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.SmallBatchingSystem.Views"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:vm="clr-namespace:BPASmartClient.SmallBatchingSystem.ViewModels"
  10. Title="NewOutletView"
  11. Width="600"
  12. Height="400"
  13. AllowsTransparency="True"
  14. Background="{x:Null}"
  15. Topmost="True"
  16. WindowStartupLocation="CenterScreen"
  17. WindowStyle="None"
  18. mc:Ignorable="d">
  19. <Window.DataContext>
  20. <vm:NewOutletViewModel />
  21. </Window.DataContext>
  22. <Grid>
  23. <Grid.Background>
  24. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/容器边框.png" />
  25. </Grid.Background>
  26. <Grid.RowDefinitions>
  27. <RowDefinition Height="0.18*" />
  28. <RowDefinition />
  29. </Grid.RowDefinitions>
  30. <TextBlock
  31. HorizontalAlignment="Center"
  32. VerticalAlignment="Center"
  33. FontSize="20"
  34. Foreground="{StaticResource FontColor}"
  35. Text="新建出料口" />
  36. <Grid Grid.Row="1">
  37. <Grid.RowDefinitions>
  38. <RowDefinition Height="0.2*" />
  39. <RowDefinition Height="0.2*" />
  40. <RowDefinition />
  41. </Grid.RowDefinitions>
  42. <StackPanel Orientation="Horizontal">
  43. <TextBlock
  44. Margin="15,0,0,0"
  45. HorizontalAlignment="Left"
  46. FontSize="16"
  47. Style="{StaticResource TextBlockStyle}"
  48. Text="出料口名称:" />
  49. <TextBox
  50. Name="outName"
  51. Width="180"
  52. Height="35"
  53. Padding="3,0,0,0"
  54. FontSize="20"
  55. Style="{StaticResource TextBoxStyle}"
  56. Text="{Binding OutletName}" />
  57. <TextBlock
  58. Margin="15,0,0,0"
  59. HorizontalAlignment="Left"
  60. FontSize="16"
  61. Style="{StaticResource TextBlockStyle}"
  62. Text="出料口位置:" />
  63. <TextBox
  64. Name="outLoc"
  65. Width="180"
  66. Height="35"
  67. Margin="5,0,0,0"
  68. FontSize="20"
  69. Style="{StaticResource TextBoxStyle}"
  70. Text="{Binding OutletLoc}" />
  71. </StackPanel>
  72. <StackPanel
  73. Grid.Row="1"
  74. Margin="10,0,0,0"
  75. HorizontalAlignment="Right"
  76. Orientation="Horizontal">
  77. <!--<TextBox
  78. Name="outName"
  79. Width="180"
  80. Height="35"
  81. Margin="5,0,0,0"
  82. FontSize="20"
  83. Style="{StaticResource TextBoxStyle}" />-->
  84. <TextBlock
  85. Margin="0,0,5,0"
  86. HorizontalAlignment="Center"
  87. VerticalAlignment="Center"
  88. FontSize="20"
  89. Foreground="#FFF53F62"
  90. Text="{Binding ErrorInfo}" />
  91. <Button
  92. Width="120"
  93. Height="30"
  94. Margin="5,0,5,0"
  95. Command="{Binding AddCommand}"
  96. Content="添加原料"
  97. FontSize="20"
  98. Style="{StaticResource ImageButtonStyle}" />
  99. <Button
  100. Width="120"
  101. Height="30"
  102. Margin="5,0,5,0"
  103. Command="{Binding CancelCommand}"
  104. Content="取消"
  105. FontSize="20"
  106. Style="{StaticResource ImageButtonStyle}" />
  107. <Button
  108. Grid.Column="1"
  109. Width="120"
  110. Height="30"
  111. Margin="5,0,5,0"
  112. Command="{Binding SaveCommand}"
  113. Content="保存"
  114. FontSize="20"
  115. Style="{StaticResource ImageButtonStyle}" />
  116. </StackPanel>
  117. <Grid Grid.Row="2" Margin="15,0,10,10">
  118. <Grid.RowDefinitions>
  119. <RowDefinition Height="35" />
  120. <RowDefinition />
  121. </Grid.RowDefinitions>
  122. <!--#region 表格标题栏设置-->
  123. <Grid Margin="0,10,0,0" Background="#ff0C255F">
  124. <Grid.ColumnDefinitions>
  125. <ColumnDefinition />
  126. <ColumnDefinition Width="0.68*" />
  127. </Grid.ColumnDefinitions>
  128. <TextBlock
  129. Grid.Column="0"
  130. Style="{StaticResource TitleTextblockStyle}"
  131. Text="原料" />
  132. <Grid Grid.Column="1">
  133. <TextBlock Style="{StaticResource TitleTextblockStyle}" Text="功能操作" />
  134. <Border
  135. BorderBrush="{StaticResource bordColor}"
  136. BorderThickness="1,0,1,0"
  137. Cursor="SizeWE" />
  138. </Grid>
  139. <Border
  140. Grid.ColumnSpan="2"
  141. BorderBrush="{StaticResource bordColor}"
  142. BorderThickness="1,0,1,0" />
  143. </Grid>
  144. <!--#endregion-->
  145. <ScrollViewer
  146. Grid.Row="1"
  147. HorizontalScrollBarVisibility="Hidden"
  148. VerticalScrollBarVisibility="Hidden">
  149. <ItemsControl ItemsSource="{Binding SiloInfos}">
  150. <ItemsControl.ItemTemplate>
  151. <DataTemplate>
  152. <!--<RadioButton Content="{Binding RawMaterialName}" Name="rb" GroupName="all">
  153. <RadioButton.Template>
  154. <ControlTemplate TargetType="RadioButton">-->
  155. <Grid Name="gr" Height="30">
  156. <Grid.ColumnDefinitions>
  157. <ColumnDefinition />
  158. <ColumnDefinition Width="0.68*" />
  159. </Grid.ColumnDefinitions>
  160. <ComboBox
  161. Name="cb"
  162. Grid.Column="0"
  163. Height="{Binding ElementName=gr, Path=ActualHeight}"
  164. VerticalAlignment="Center"
  165. HorizontalContentAlignment="Left"
  166. BorderBrush="#FF074B92"
  167. BorderThickness="1"
  168. FontFamily="楷体"
  169. FontSize="20"
  170. Foreground="#FF2AB2E7"
  171. IsEditable="False"
  172. ItemsSource="{Binding DataContext.SileName, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  173. SelectedIndex="{Binding SelectIndex}"
  174. Style="{StaticResource ComboBoxStyle}"
  175. Text="{Binding RawMaterialName}" />
  176. <Button
  177. Grid.Column="1"
  178. Command="{Binding DataContext.RemoveCommand, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  179. CommandParameter="{Binding RawMaterialName}"
  180. Content="删除"
  181. FontSize="16"
  182. Style="{StaticResource ControlButtonStyle}" />
  183. <!--<Button
  184. Grid.Column="1"
  185. Width="80"
  186. Command="{Binding DataContext.RemoveCommand, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  187. CommandParameter="{Binding RawMaterialName}"
  188. Content="删除" />-->
  189. </Grid>
  190. <!--</ControlTemplate>
  191. </RadioButton.Template>
  192. </RadioButton>-->
  193. </DataTemplate>
  194. </ItemsControl.ItemTemplate>
  195. </ItemsControl>
  196. </ScrollViewer>
  197. </Grid>
  198. </Grid>
  199. </Grid>
  200. </Window>