终端一体化运控平台
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

589 líneas
34 KiB

  1. <Window
  2. x:Class="BPASmartClient.JXJFoodBigStation.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.JXJFoodBigStation.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.JXJFoodBigStation.ViewModel"
  9. Title="RecipeInfosView"
  10. Width="1000"
  11. Height="620"
  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 Name="br" BorderThickness="1" >
  52. <Border.Background>
  53. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/bg.png" />
  54. </Border.Background>
  55. <Grid>
  56. <Grid.RowDefinitions>
  57. <RowDefinition />
  58. </Grid.RowDefinitions>
  59. <Grid Grid.Row="1">
  60. <Grid.RowDefinitions>
  61. <RowDefinition Height="30" />
  62. <RowDefinition Height="30" />
  63. <RowDefinition Height="30" />
  64. <RowDefinition />
  65. <RowDefinition Height="40" />
  66. </Grid.RowDefinitions>
  67. <WrapPanel>
  68. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="配方名称:" />
  69. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RecipeName}" />
  70. </WrapPanel>
  71. <WrapPanel Grid.Row="1">
  72. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="配方编号:" />
  73. <TextBlock Grid.Row="1" Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RecipeCode}" />
  74. </WrapPanel>
  75. <WrapPanel Grid.Row="2">
  76. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="托盘编号:" />
  77. <TextBlock Grid.Row="1" Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding TrayCode}" />
  78. </WrapPanel>
  79. <Grid Grid.Row="3">
  80. <Grid.RowDefinitions>
  81. <RowDefinition></RowDefinition>
  82. </Grid.RowDefinitions>
  83. <Grid.ColumnDefinitions>
  84. <ColumnDefinition Width="2*"/>
  85. <ColumnDefinition Width="9*"/>
  86. </Grid.ColumnDefinitions>
  87. <TextBlock Grid.Row="0" HorizontalAlignment="Center">大料站</TextBlock>
  88. <Grid Grid.Column="1">
  89. <Grid.RowDefinitions>
  90. <RowDefinition Height="20"></RowDefinition>
  91. <RowDefinition Height="9*"></RowDefinition>
  92. </Grid.RowDefinitions>
  93. <Grid Grid.Row="0" >
  94. <Grid.ColumnDefinitions>
  95. <ColumnDefinition Width="2*"/>
  96. <ColumnDefinition Width="2*"/>
  97. <ColumnDefinition Width="2*"/>
  98. </Grid.ColumnDefinitions>
  99. <TextBlock FontSize="16" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top">原料桶号</TextBlock>
  100. <TextBlock FontSize="16" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top">原料位置</TextBlock>
  101. <TextBlock FontSize="16" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Top">原料重量</TextBlock>
  102. </Grid>
  103. <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Auto" >
  104. <ItemsControl ItemsSource="{Binding RawMaterialsInfo}" >
  105. <ItemsControl.ItemTemplate>
  106. <DataTemplate>
  107. <Grid x:Name="grb" Height="25" >
  108. <Grid.ColumnDefinitions>
  109. <ColumnDefinition Width="2*"/>
  110. <ColumnDefinition Width="2*"/>
  111. <ColumnDefinition Width="2*"/>
  112. </Grid.ColumnDefinitions>
  113. <TextBlock Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RawMaterialBarrelNum}"></TextBlock>
  114. <TextBlock Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RawMaterialLocation}"></TextBlock>
  115. <TextBlock Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RawMaterialWeight}"></TextBlock>
  116. </Grid>
  117. <DataTemplate.Triggers>
  118. <Trigger Property="IsMouseOver" Value="true">
  119. <Setter TargetName="grb" Property="Background" Value="#112AB2E7" />
  120. </Trigger>
  121. </DataTemplate.Triggers>
  122. </DataTemplate>
  123. </ItemsControl.ItemTemplate>
  124. </ItemsControl>
  125. </ScrollViewer>
  126. </Grid>
  127. </Grid>
  128. <Grid Grid.Row="4">
  129. <Button Command="{Binding ReturnPage}" Width="200" >返回</Button>
  130. </Grid>
  131. </Grid>
  132. </Grid>
  133. </Border>-->
  134. <!--<Border Name="br">
  135. <Border.Background>
  136. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/bg.png" />
  137. </Border.Background>
  138. <Grid >
  139. <Grid.RowDefinitions>
  140. <RowDefinition Height="50"></RowDefinition>
  141. <RowDefinition Height="88"></RowDefinition>
  142. <RowDefinition Height="40"></RowDefinition>
  143. <RowDefinition></RowDefinition>
  144. </Grid.RowDefinitions>
  145. <TextBlock Text="大料站配方信息" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="22" Margin="0,10"></TextBlock>
  146. <UniformGrid Grid.Row="1" Columns="2" Margin="0,0,0,8">
  147. <StackPanel Orientation="Vertical" Margin="0,0,-13,0">
  148. <StackPanel Orientation="Horizontal" Margin="0,8">
  149. <TextBlock Text="请输入配方名称:" Foreground="#FF2AB2E7" FontSize="16" Margin="5,0,5,0" VerticalAlignment="Center"></TextBlock>
  150. <TextBox Text="{Binding RecipeName}" Width="150" Height="30" BorderThickness="1" Background="Transparent" Foreground="Orange"
  151. VerticalContentAlignment="Center"
  152. BorderBrush="#FF2AB2E7" VerticalAlignment="Center" FontSize="16" ></TextBox>
  153. </StackPanel>
  154. <StackPanel Orientation="Horizontal">
  155. <TextBlock Text="请输入托盘编号:" Foreground="#FF2AB2E7" FontSize="16" Margin="5,0,5,0" VerticalAlignment="Center"></TextBlock>
  156. <TextBox Text="{Binding TrayCode}" InputMethod.IsInputMethodEnabled="False" Width="150" Height="30" BorderThickness="1" Background="Transparent" Foreground="Orange"
  157. VerticalContentAlignment="Center"
  158. BorderBrush="#FF2AB2E7" VerticalAlignment="Center" FontSize="16" ></TextBox>
  159. </StackPanel>
  160. </StackPanel>
  161. <Grid Width="260" HorizontalAlignment="Right">
  162. <Grid.RowDefinitions>
  163. <RowDefinition/>
  164. <RowDefinition/>
  165. </Grid.RowDefinitions>
  166. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,5,0">
  167. <Button Content="添加原料" Width="120" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" Command="{Binding AddRecipe}" ></Button>
  168. <Button Content="确认更新" Height="30" Width="120" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Command="{Binding Comfirm}"></Button>
  169. </StackPanel>
  170. <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" Margin="0,3,5,0">
  171. <Button Content="另存为" Height="30" Width="120" Margin="0,0,10,0" Command="{Binding SaveAs}" Cursor="Hand"/>
  172. <Button Click="Button_Click" Content="取消" Height="30" FontSize="20" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Width="120" Cursor="Hand"></Button>
  173. </StackPanel>
  174. </Grid>
  175. </UniformGrid>
  176. <Grid Grid.Row="2" Background="#FF2AB2E7" Margin="0,0,0,10">
  177. <Grid.ColumnDefinitions>
  178. <ColumnDefinition Width="130"/>
  179. <ColumnDefinition Width="145"/>
  180. <ColumnDefinition Width="145"/>
  181. <ColumnDefinition/>
  182. </Grid.ColumnDefinitions>
  183. <TextBlock Text="原料桶号" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontSize="14"/>
  184. <GridSplitter></GridSplitter>
  185. <TextBlock Grid.Column="1" Text="原料位置" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontSize="14"/>
  186. <GridSplitter Grid.Column="1"></GridSplitter>
  187. <TextBlock Grid.Column="2" Text="原料重量" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="White" FontSize="14"></TextBlock>
  188. <GridSplitter Grid.Column="2"></GridSplitter>
  189. <TextBlock Grid.Column="3" Text="操作" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="White" FontSize="14"/>
  190. </Grid>
  191. <ScrollViewer Grid.Row="3" VerticalScrollBarVisibility="Hidden">
  192. <ItemsControl ItemsSource="{Binding RawMaterialsInfo}">
  193. <ItemsControl.ItemsPanel>
  194. <ItemsPanelTemplate>
  195. <StackPanel></StackPanel>
  196. </ItemsPanelTemplate>
  197. </ItemsControl.ItemsPanel>
  198. <ItemsControl.ItemTemplate>
  199. <DataTemplate>
  200. <RadioButton>
  201. <RadioButton.Template>
  202. <ControlTemplate>
  203. <Grid>
  204. <Grid.ColumnDefinitions>
  205. <ColumnDefinition Width="130"/>
  206. <ColumnDefinition Width="145"></ColumnDefinition>
  207. <ColumnDefinition Width="145"></ColumnDefinition>
  208. <ColumnDefinition></ColumnDefinition>
  209. </Grid.ColumnDefinitions>
  210. <ComboBox ItemsSource="{Binding DataContext.materialNames,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ItemsControl}}" Text="{Binding RawMaterialBarrelNum}" Margin="5,0,0,5" Width="120" FontSize="14" KeyUp="ComboBox_KeyUp" LostFocus="ComboBox_LostFocus" >
  211. <ComboBox.ItemContainerStyle>
  212. <Style TargetType="{x:Type ComboBoxItem}">
  213. <Setter Property="Background" Value="White" />
  214. <Setter Property="Foreground" Value="#e69519"/>
  215. </Style>
  216. </ComboBox.ItemContainerStyle>
  217. </ComboBox>
  218. <StackPanel Grid.Column="1" Orientation="Horizontal" >
  219. <TextBox Text="{Binding RawMaterialLocation}" Background="Transparent" FontSize="14"
  220. BorderBrush="#e69519" Foreground="LightGray" Width="135" Margin="5,0,0,5" ></TextBox>
  221. </StackPanel>
  222. <StackPanel Orientation="Horizontal" Grid.Column="2">
  223. <TextBox Text="{Binding RawMaterialWeight}" Background="Transparent" FontSize="14"
  224. BorderBrush="#e69519" Foreground="LightGray" Width="125" Margin="5,0,0,5" ></TextBox>
  225. <TextBlock VerticalAlignment="Center" Margin="4,0,0,5" Text="g" Foreground="#e69519" ></TextBlock>
  226. </StackPanel>
  227. <Button Grid.Column="3"
  228. Content="删除"
  229. Width="94"
  230. FontSize="14"
  231. Margin="10,0,20,5"
  232. Background="Transparent"
  233. BorderBrush="#e69519" Foreground="LightGray" HorizontalAlignment="Right"
  234. Command="{Binding DataContext.RemoveRecipe,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ItemsControl}}"
  235. CommandParameter="{Binding MaterialCode}"></Button>
  236. </Grid>
  237. </ControlTemplate>
  238. </RadioButton.Template>
  239. </RadioButton>
  240. </DataTemplate>
  241. </ItemsControl.ItemTemplate>
  242. </ItemsControl>
  243. </ScrollViewer>
  244. </Grid>
  245. </Border>-->
  246. <Border
  247. Name="br"
  248. BorderBrush="#0CADF5"
  249. BorderThickness="2">
  250. <Border.Background>
  251. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/bg.png" />
  252. </Border.Background>
  253. <Grid>
  254. <Grid.RowDefinitions>
  255. <RowDefinition Height="50" />
  256. <RowDefinition Height="85" />
  257. <RowDefinition Height="40" />
  258. <RowDefinition />
  259. </Grid.RowDefinitions>
  260. <TextBlock
  261. Margin="0,10"
  262. HorizontalAlignment="Center"
  263. VerticalAlignment="Center"
  264. FontSize="25"
  265. Foreground="#FF2AB2E7"
  266. Text="大配料站配方信息" />
  267. <UniformGrid
  268. Grid.Row="1"
  269. Margin="0,0,0,5"
  270. Columns="3">
  271. <StackPanel Orientation="Vertical">
  272. <StackPanel Margin="0,8" Orientation="Horizontal">
  273. <TextBlock
  274. Margin="10,0,5,0"
  275. VerticalAlignment="Center"
  276. FontSize="18"
  277. Foreground="#FF2AB2E7"
  278. Text="请输入配方名称:" />
  279. <TextBox
  280. Width="170"
  281. Height="30"
  282. VerticalAlignment="Center"
  283. VerticalContentAlignment="Center"
  284. Background="Transparent"
  285. BorderBrush="#FF2AB2E7"
  286. BorderThickness="1"
  287. FontSize="16"
  288. Foreground="Orange"
  289. Text="{Binding RecipeName}" />
  290. </StackPanel>
  291. <StackPanel Orientation="Horizontal">
  292. <TextBlock
  293. Margin="10,0,5,0"
  294. VerticalAlignment="Center"
  295. FontSize="18"
  296. Foreground="#FF2AB2E7"
  297. Text="请输入托盘编号:" />
  298. <TextBox
  299. Width="170"
  300. Height="30"
  301. VerticalAlignment="Center"
  302. VerticalContentAlignment="Center"
  303. Background="Transparent"
  304. BorderBrush="#FF2AB2E7"
  305. BorderThickness="1"
  306. FontSize="16"
  307. Foreground="Orange"
  308. InputMethod.IsInputMethodEnabled="False"
  309. Text="{Binding TrayCode}" />
  310. </StackPanel>
  311. </StackPanel>
  312. <!--#region 后续修改不需要进行分类筛选了-->
  313. <StackPanel
  314. Margin="0,8"
  315. Orientation="Horizontal"
  316. Visibility="Hidden">
  317. <TextBlock
  318. Margin="10,0,5,0"
  319. VerticalAlignment="Center"
  320. FontSize="18"
  321. Foreground="#FF2AB2E7"
  322. Text="请选择配方类别:" />
  323. <ComboBox
  324. Width="170"
  325. Height="30"
  326. VerticalAlignment="Center"
  327. VerticalContentAlignment="Center"
  328. Background="Transparent"
  329. BorderBrush="#FF2AB2E7"
  330. BorderThickness="1"
  331. FontSize="16"
  332. Foreground="Orange"
  333. IsReadOnly="False"
  334. ItemsSource="{Binding Categorys}"
  335. Text="{Binding RecipeCategory}" />
  336. </StackPanel>
  337. <!--#endregion-->
  338. <Grid>
  339. <Grid.RowDefinitions>
  340. <RowDefinition />
  341. <RowDefinition />
  342. </Grid.RowDefinitions>
  343. <StackPanel
  344. Margin="0,4,0,0"
  345. HorizontalAlignment="Center"
  346. Orientation="Horizontal">
  347. <CheckBox
  348. Width="140"
  349. Height="30"
  350. Margin="0,0,10,0"
  351. Padding="10,0"
  352. HorizontalContentAlignment="Center"
  353. Content="是否洗桶"
  354. FontSize="16"
  355. Foreground="#FF2AB2E7"
  356. IsChecked="{Binding IsWashingBarrel}" />
  357. <Button
  358. Width="140"
  359. Height="30"
  360. Margin="0,0,10,0"
  361. Background="Transparent"
  362. BorderBrush="#FF2AB2E7"
  363. Command="{Binding AddRecipe}"
  364. Content="添加原料"
  365. Cursor="Hand"
  366. Foreground="#FF2AB2E7" />
  367. </StackPanel>
  368. <StackPanel
  369. Grid.Row="1"
  370. Margin="0,4,0,0"
  371. HorizontalAlignment="Center"
  372. Orientation="Horizontal">
  373. <Button
  374. Width="140"
  375. Height="30"
  376. Margin="0,0,10,0"
  377. Background="Transparent"
  378. BorderBrush="#FF2AB2E7"
  379. Command="{Binding Comfirm}"
  380. Content="确认"
  381. Foreground="#FF2AB2E7" />
  382. <Button
  383. Width="140"
  384. Height="30"
  385. Margin="0,0,10,0"
  386. Background="Transparent"
  387. BorderBrush="#FF2AB2E7"
  388. Click="Button_Click"
  389. Content="取消"
  390. Cursor="Hand"
  391. FontSize="20"
  392. Foreground="#FF2AB2E7" />
  393. </StackPanel>
  394. </Grid>
  395. </UniformGrid>
  396. <Grid
  397. Grid.Row="2"
  398. Margin="0,0,0,10"
  399. Background="#FF2AB2E7">
  400. <Grid.ColumnDefinitions>
  401. <ColumnDefinition />
  402. <ColumnDefinition />
  403. <ColumnDefinition />
  404. <ColumnDefinition />
  405. <ColumnDefinition />
  406. <ColumnDefinition Width="120" />
  407. </Grid.ColumnDefinitions>
  408. <TextBlock
  409. Grid.Column="0"
  410. HorizontalAlignment="Center"
  411. VerticalAlignment="Center"
  412. Foreground="White"
  413. Text="原料位置" />
  414. <GridSplitter />
  415. <TextBlock
  416. Grid.Column="1"
  417. HorizontalAlignment="Center"
  418. VerticalAlignment="Center"
  419. Foreground="White"
  420. Text="原料名称" />
  421. <GridSplitter Grid.Column="1" />
  422. <TextBlock
  423. Grid.Column="2"
  424. HorizontalAlignment="Center"
  425. VerticalAlignment="Center"
  426. Foreground="White"
  427. Text="原料中文名" />
  428. <GridSplitter Grid.Column="1" />
  429. <TextBlock
  430. Grid.Column="3"
  431. HorizontalAlignment="Center"
  432. VerticalAlignment="Center"
  433. Foreground="White"
  434. Text="托盘桶号" />
  435. <GridSplitter Grid.Column="2" />
  436. <TextBlock
  437. Grid.Column="4"
  438. HorizontalAlignment="Center"
  439. VerticalAlignment="Center"
  440. Foreground="White"
  441. Text="原料重量" />
  442. <GridSplitter Grid.Column="3" />
  443. <TextBlock
  444. Grid.Column="5"
  445. HorizontalAlignment="Center"
  446. VerticalAlignment="Center"
  447. Foreground="White"
  448. Text="操作" />
  449. </Grid>
  450. <ScrollViewer Grid.Row="3" VerticalScrollBarVisibility="Hidden">
  451. <ItemsControl ItemsSource="{Binding RawMaterialsInfo}">
  452. <ItemsControl.ItemsPanel>
  453. <ItemsPanelTemplate>
  454. <StackPanel />
  455. </ItemsPanelTemplate>
  456. </ItemsControl.ItemsPanel>
  457. <ItemsControl.ItemTemplate>
  458. <DataTemplate>
  459. <RadioButton>
  460. <RadioButton.Template>
  461. <ControlTemplate>
  462. <Grid>
  463. <Grid.ColumnDefinitions>
  464. <ColumnDefinition />
  465. <ColumnDefinition />
  466. <ColumnDefinition />
  467. <ColumnDefinition />
  468. <ColumnDefinition />
  469. <ColumnDefinition Width="120" />
  470. </Grid.ColumnDefinitions>
  471. <!--<ComboBox ItemsSource="{Binding DataContext.materialNames,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ItemsControl}}" Text="{Binding RawMaterialLocation}" Margin="10,0,0,10" Width="190" FontSize="14" KeyUp="ComboBox_KeyUp" LostFocus="ComboBox_LostFocus">
  472. <ComboBox.ItemContainerStyle>
  473. <Style TargetType="{x:Type ComboBoxItem}">
  474. <Setter Property="Background" Value="White" />
  475. <Setter Property="Foreground" Value="#e69519"/>
  476. </Style>
  477. </ComboBox.ItemContainerStyle>-->
  478. <!--</ComboBox>-->
  479. <ComboBox
  480. Margin="3"
  481. VerticalAlignment="Center"
  482. BorderBrush="#FF074B92"
  483. BorderThickness="1"
  484. FontFamily="楷体"
  485. FontSize="14"
  486. Foreground="LightGray"
  487. IsEditable="False"
  488. ItemsSource="{Binding DataContext.RawMaterialLocation, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  489. MouseLeave="ComboBox_MouseLeave"
  490. SelectedValue="{Binding RawMaterialLocation}"
  491. Style="{StaticResource ComboBoxStyle}"
  492. Text="{Binding RawMaterialLocation}" />
  493. <StackPanel
  494. Grid.Column="1"
  495. HorizontalAlignment="Center"
  496. VerticalAlignment="Center"
  497. Orientation="Horizontal">
  498. <TextBlock
  499. Grid.Column="1"
  500. Background="Transparent"
  501. FontSize="14"
  502. Foreground="LightGray"
  503. Text="{Binding RawMaterialName}" />
  504. </StackPanel>
  505. <StackPanel
  506. Grid.Column="2"
  507. HorizontalAlignment="Center"
  508. VerticalAlignment="Center"
  509. Orientation="Horizontal">
  510. <TextBlock
  511. Grid.Column="1"
  512. Background="Transparent"
  513. FontSize="14"
  514. Foreground="LightGray"
  515. Text="{Binding RawMaterialChineseName}" />
  516. </StackPanel>
  517. <!--<TextBox Text="{Binding RawMaterialName}" Background="Transparent" FontSize="14"
  518. BorderBrush="#e69519" Foreground="LightGray" Width="190" Margin="10,0,0,10" ></TextBox>-->
  519. <StackPanel
  520. Grid.Column="3"
  521. Margin="3"
  522. HorizontalAlignment="Center"
  523. Orientation="Horizontal">
  524. <TextBox
  525. Width="120"
  526. Background="Transparent"
  527. BorderBrush="#e69519"
  528. FontSize="14"
  529. Foreground="LightGray"
  530. Text="{Binding RawMaterialBarrelNum}" />
  531. </StackPanel>
  532. <StackPanel
  533. Grid.Column="4"
  534. Margin="3"
  535. HorizontalAlignment="Center"
  536. Orientation="Horizontal">
  537. <TextBox
  538. Width="120"
  539. Background="Transparent"
  540. BorderBrush="#e69519"
  541. FontSize="14"
  542. Foreground="LightGray"
  543. Text="{Binding RawMaterialWeight}" />
  544. <TextBlock
  545. Margin="4,0,0,0"
  546. VerticalAlignment="Center"
  547. FontSize="14"
  548. Foreground="#e69519"
  549. Text="Kg" />
  550. </StackPanel>
  551. <Button
  552. Grid.Column="5"
  553. Width="94"
  554. HorizontalAlignment="Center"
  555. Background="Transparent"
  556. BorderBrush="#e69519"
  557. Command="{Binding DataContext.RemoveRecipe, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ItemsControl}}"
  558. CommandParameter="{Binding RawMaterialLocation}"
  559. Content="删除"
  560. FontSize="14"
  561. Foreground="LightGray" />
  562. </Grid>
  563. </ControlTemplate>
  564. </RadioButton.Template>
  565. </RadioButton>
  566. </DataTemplate>
  567. </ItemsControl.ItemTemplate>
  568. </ItemsControl>
  569. </ScrollViewer>
  570. </Grid>
  571. </Border>
  572. </Window>