AddScrewView.xaml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <UserControl x:Class="TeamAAS_VP.Views.AddScrewView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  8. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  9. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  10. xmlns:enums="clr-namespace:TeamAAS_VP.Enums"
  11. xmlns:valRules="clr-namespace:TeamAAS_VP.Identity"
  12. xmlns:ext="clr-namespace:TeamAAS_VP.Extension"
  13. xmlns:c="clr-namespace:TeamAAS_VP.ValueConverter"
  14. xmlns:lex="http://wpflocalizeextension.codeplex.com"
  15. xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels"
  16. lex:LocalizeDictionary.DesignCulture="zh-CN"
  17. lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
  18. lex:ResxLocalizationProvider.DefaultDictionary="Lang"
  19. mc:Ignorable="d"
  20. d:Background="White"
  21. d:Height="560"
  22. d:Width="800"
  23. prism:ViewModelLocator.AutoWireViewModel="True"
  24. FontFamily="{DynamicResource DefaultFont}">
  25. <Grid Margin="20">
  26. <Grid.RowDefinitions>
  27. <RowDefinition Height="Auto"/>
  28. <RowDefinition Height="Auto"/>
  29. <RowDefinition Height="Auto"/>
  30. <RowDefinition Height="Auto"/>
  31. <RowDefinition Height="Auto"/>
  32. <RowDefinition Height="Auto"/>
  33. <RowDefinition Height="Auto"/>
  34. </Grid.RowDefinitions>
  35. <!-- 供料器选择 -->
  36. <TextBlock Grid.Row="0"
  37. Text="请选择供料器:"
  38. FontSize="14"
  39. Margin="0,0,0,10"/>
  40. <ComboBox Grid.Row="1"
  41. Height="30"
  42. FontSize="14"
  43. ItemsSource="{Binding Feeders}"
  44. SelectedItem="{Binding SelectedFeeder}"
  45. DisplayMemberPath="FeederName"
  46. Margin="0,0,0,20"/>
  47. <TextBlock Grid.Row="2"
  48. Text="请扫描螺丝条码:"
  49. FontSize="14"
  50. Margin="0,0,0,10"/>
  51. <!-- 输入框会自动接收并显示扫码枪的结果 -->
  52. <TextBox x:Name="BarcodeTextBox"
  53. Grid.Row="3"
  54. Height="30"
  55. FontSize="14"
  56. Text="{Binding ScrewsizeCode, Mode=TwoWay}"
  57. Margin="0,0,0,20"/>
  58. <TextBlock Grid.Row="4"
  59. Text="请扫描员工工号:"
  60. FontSize="14"
  61. Margin="0,0,0,10"/>
  62. <!-- 输入框会自动接收并显示扫码枪的结果 -->
  63. <TextBox x:Name="BarcodeTextBox1"
  64. Grid.Row="5"
  65. Height="30"
  66. FontSize="14"
  67. Text="{Binding UserID, Mode=TwoWay}"
  68. Margin="0,0,0,20"/>
  69. <StackPanel Grid.Row="6"
  70. Orientation="Horizontal"
  71. HorizontalAlignment="Right">
  72. <Button x:Name="OkButton"
  73. Content="确定"
  74. Width="80"
  75. Height="30"
  76. Margin="0,0,10,0"
  77. Command="{Binding OkCommand}"/>
  78. <Button x:Name="CancelButton"
  79. Content="取消"
  80. Width="80"
  81. Height="30"
  82. Command="{Binding CancelCommand}"/>
  83. </StackPanel>
  84. </Grid>
  85. </UserControl>