终端一体化运控平台
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.
 
 
 

113 rivejä
4.1 KiB

  1. <Window
  2. x:Class="BPASmartClient.MorkCL.View.ManualSetItemStorageView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:Behavior="http://schemas.microsoft.com/xaml/behaviors"
  6. xmlns:converter="clr-namespace:BPASmartClient.MorkCL.Converter"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:vm="clr-namespace:BPASmartClient.MorkCL.ViewModel"
  10. Title="EditFunctionView"
  11. Width="450"
  12. Height="350"
  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:ManualSetItemStorageViewModel />
  21. </Window.DataContext>
  22. <Window.Resources>
  23. <ResourceDictionary>
  24. <ResourceDictionary.MergedDictionaries>
  25. <ResourceDictionary Source="/BPASmartClient.MorkCL;component/CustomStyle/CustomStyle.xaml" />
  26. </ResourceDictionary.MergedDictionaries>
  27. </ResourceDictionary>
  28. </Window.Resources>
  29. <Border
  30. Name="br"
  31. BorderBrush="#0CADF5"
  32. BorderThickness="0">
  33. <Border.Background>
  34. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/弹框/biankuang_.png" />
  35. </Border.Background>
  36. <Grid>
  37. <Grid.RowDefinitions>
  38. <RowDefinition Height="50" />
  39. <RowDefinition Height="50" />
  40. <RowDefinition Height="1*" />
  41. <RowDefinition Height="50" />
  42. </Grid.RowDefinitions>
  43. <!--#region 标题栏-->
  44. <TextBlock
  45. HorizontalAlignment="Center"
  46. VerticalAlignment="Center"
  47. Foreground="DeepSkyBlue"
  48. Text="主料库仓位信息编辑" />
  49. <!--#endregion-->
  50. <!--#region 操作栏-->
  51. <!--<Border
  52. Grid.Row="1"
  53. BorderBrush="#3099E5"
  54. BorderThickness="1">
  55. <TextBlock
  56. HorizontalAlignment="Center"
  57. FontSize="18"
  58. Foreground="DeepSkyBlue"
  59. Text="{Binding FuncName, StringFormat={}{0} 参数设置}" />
  60. </Border>-->
  61. <!--#endregion-->
  62. <!--#region 内容-->
  63. <StackPanel Grid.Row="2" Orientation="Vertical">
  64. <StackPanel Orientation="Horizontal">
  65. <TextBlock Margin="10,15" Text="物料名称:" />
  66. <ComboBox
  67. Width="250"
  68. Height="40"
  69. d:Text="青椒"
  70. DisplayMemberPath="Name"
  71. FontSize="25"
  72. IsEditable="False"
  73. ItemsSource="{Binding Ingredients}"
  74. Text="{Binding Storage.Name}" />
  75. </StackPanel>
  76. <StackPanel Orientation="Horizontal">
  77. <TextBlock Margin="10,15" Text="重量(Kg):" />
  78. <TextBox
  79. Width="250"
  80. Height="40"
  81. d:Text="25"
  82. FontSize="25"
  83. Text="{Binding Storage.Weight}" />
  84. </StackPanel>
  85. </StackPanel>
  86. <!--#endregion-->
  87. <!--#region 底部按钮栏-->
  88. <Grid Grid.Row="3">
  89. <Button
  90. Width="100"
  91. Height="35"
  92. Margin="50,0"
  93. HorizontalAlignment="Left"
  94. Command="{Binding SaveCommand}"
  95. Content="保存设置" />
  96. <Button
  97. Width="100"
  98. Height="35"
  99. Margin="50,0"
  100. HorizontalAlignment="Right"
  101. Click="Button_Click"
  102. Content="取消并关闭" />
  103. </Grid>
  104. <!--#endregion-->
  105. </Grid>
  106. </Border>
  107. </Window>