终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

135 行
5.0 KiB

  1. <Window
  2. x:Class="BPASmartClient.MorkCL.View.EditRawMaterialView"
  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.MorkCL.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.MorkCL.ViewModel"
  9. Title="EditFunctionView"
  10. Width="450"
  11. Height="350"
  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:EditRawMaterialViewModel />
  20. </Window.DataContext>
  21. <Window.Resources>
  22. <ResourceDictionary>
  23. <ResourceDictionary.MergedDictionaries>
  24. <ResourceDictionary Source="/BPASmartClient.MorkCL;component/CustomStyle/CustomStyle.xaml" />
  25. </ResourceDictionary.MergedDictionaries>
  26. </ResourceDictionary>
  27. </Window.Resources>
  28. <Border
  29. Name="br"
  30. BorderBrush="#0CADF5"
  31. BorderThickness="0">
  32. <Border.Background>
  33. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/弹框/biankuang_.png" />
  34. </Border.Background>
  35. <Grid>
  36. <Grid.RowDefinitions>
  37. <RowDefinition Height="50" />
  38. <RowDefinition Height="50" />
  39. <RowDefinition Height="1*" />
  40. <RowDefinition Height="50" />
  41. </Grid.RowDefinitions>
  42. <!--#region 标题栏-->
  43. <TextBlock
  44. HorizontalAlignment="Center"
  45. VerticalAlignment="Center"
  46. Foreground="DeepSkyBlue"
  47. Text="物料信息编辑" />
  48. <!--#endregion-->
  49. <!--#region 操作栏-->
  50. <Border
  51. Grid.Row="1"
  52. BorderBrush="#3099E5"
  53. BorderThickness="1">
  54. <TextBlock
  55. HorizontalAlignment="Center"
  56. FontSize="18"
  57. Foreground="DeepSkyBlue"
  58. Text="{Binding CurrentMaterialType, StringFormat={}{0} 参数设置}" />
  59. </Border>
  60. <!--#endregion-->
  61. <!--#region 正文-->
  62. <StackPanel
  63. Grid.Row="2"
  64. Margin="5"
  65. HorizontalAlignment="Center"
  66. VerticalAlignment="Center"
  67. Orientation="Vertical">
  68. <StackPanel
  69. Margin="0,5"
  70. Orientation="Horizontal"
  71. Visibility="{Binding MaterialTypeVis}">
  72. <TextBlock Text="物料类型:" />
  73. <ComboBox
  74. Width="200"
  75. Height="40"
  76. FontSize="18"
  77. IsEditable="False"
  78. ItemsSource="{Binding MaterialType}"
  79. SelectedItem="{Binding CurrentMaterialType}" />
  80. </StackPanel>
  81. <StackPanel Margin="0,5" Orientation="Horizontal">
  82. <TextBlock Text="物料名称:" />
  83. <TextBox
  84. Width="200"
  85. Height="40"
  86. FontSize="18"
  87. Text="{Binding MaterialName}" />
  88. </StackPanel>
  89. <StackPanel
  90. Margin="0,5"
  91. Orientation="Horizontal"
  92. Visibility="{Binding LocationVis}">
  93. <TextBlock Text="物料位置:" />
  94. <TextBox
  95. Width="200"
  96. Height="40"
  97. FontSize="18"
  98. Text="{Binding MaterialLoc}" />
  99. </StackPanel>
  100. <StackPanel Margin="0,5" Orientation="Horizontal">
  101. <TextBlock Text="物料描述:" />
  102. <TextBox
  103. Width="200"
  104. Height="40"
  105. FontSize="18"
  106. Text="{Binding MaterialDescription}" />
  107. </StackPanel>
  108. </StackPanel>
  109. <!--#endregion-->
  110. <!--#region 底部按钮栏-->
  111. <Grid Grid.Row="3">
  112. <Button
  113. Width="100"
  114. Height="35"
  115. Margin="50,0"
  116. HorizontalAlignment="Left"
  117. Command="{Binding SaveParamCommand}"
  118. Content="保存信息" />
  119. <Button
  120. Width="100"
  121. Height="35"
  122. Margin="50,0"
  123. HorizontalAlignment="Right"
  124. Command="{Binding CancelCommand}"
  125. Content="取消并关闭" />
  126. </Grid>
  127. <!--#endregion-->
  128. </Grid>
  129. </Border>
  130. </Window>