终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

116 řádky
3.6 KiB

  1. <Window
  2. x:Class="BPASmartClient.SmallBatchingSystem.Views.NewSiloView"
  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.SmallBatchingSystem.Views"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.SmallBatchingSystem.ViewModels"
  9. Title="NewSiloView"
  10. Width="500"
  11. Height="300"
  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:NewSiloViewModel />
  20. </Window.DataContext>
  21. <Grid>
  22. <Grid.Background>
  23. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/容器边框.png" />
  24. </Grid.Background>
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="0.18*" />
  27. <RowDefinition />
  28. </Grid.RowDefinitions>
  29. <TextBlock
  30. HorizontalAlignment="Center"
  31. VerticalAlignment="Center"
  32. FontSize="20"
  33. Foreground="{StaticResource FontColor}"
  34. Text="新建料仓" />
  35. <Grid Grid.Row="1">
  36. <Grid.RowDefinitions>
  37. <RowDefinition />
  38. <RowDefinition />
  39. <RowDefinition Height="0.5*" />
  40. <RowDefinition />
  41. </Grid.RowDefinitions>
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition Width="0.8*" />
  44. <ColumnDefinition />
  45. </Grid.ColumnDefinitions>
  46. <TextBlock Style="{StaticResource TextBlockStyle}" Text="料仓原料名称:" />
  47. <TextBlock
  48. Grid.Row="1"
  49. Style="{StaticResource TextBlockStyle}"
  50. Text="料仓原料位置:" />
  51. <TextBox
  52. Name="SiloName"
  53. Grid.Column="1"
  54. Width="250"
  55. Height="40"
  56. Margin="0,0,5,0"
  57. FontSize="20"
  58. Style="{StaticResource TextBoxStyle}"
  59. Text="{Binding SiloInfoModelObj.SiloName}" />
  60. <TextBox
  61. Name="SiloLoc"
  62. Grid.Row="1"
  63. Grid.Column="1"
  64. Width="250"
  65. Height="40"
  66. Margin="0,0,5,0"
  67. FontSize="20"
  68. Style="{StaticResource TextBoxStyle}"
  69. Text="{Binding SiloInfoModelObj.SiloLoc}" />
  70. <TextBlock
  71. Grid.Row="2"
  72. Grid.ColumnSpan="2"
  73. HorizontalAlignment="Center"
  74. VerticalAlignment="Top"
  75. FontSize="20"
  76. Foreground="#FFF53F62"
  77. Text="{Binding ErrorInfo}" />
  78. <Button
  79. Grid.Row="3"
  80. Width="150"
  81. Height="40"
  82. Margin="5,0,5,0"
  83. Command="{Binding CancelCommand}"
  84. Content="取消"
  85. FontSize="20"
  86. Style="{StaticResource ImageButtonStyle}" />
  87. <Button
  88. Grid.Row="3"
  89. Grid.Column="1"
  90. Width="150"
  91. Height="40"
  92. Margin="5,0,5,0"
  93. Command="{Binding SaveCommand}"
  94. Content="保存"
  95. FontSize="20"
  96. Style="{StaticResource ImageButtonStyle}" />
  97. </Grid>
  98. </Grid>
  99. </Window>