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

363 lines
14 KiB

  1. <Window
  2. x:Class="BPASmartClient.DosingSystem.View.NewMaterialDeviceParView"
  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.DosingSystem.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.DosingSystem.ViewModel"
  9. Title="NewMaterialDeviceParView"
  10. Width="550"
  11. Height="450"
  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:NewMaterialDeviceParViewModel />
  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
  52. Name="br"
  53. BorderBrush="#0CADF5"
  54. BorderThickness="2">
  55. <Border.Background>
  56. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/bg.png" />
  57. </Border.Background>
  58. <Grid>
  59. <Grid.RowDefinitions>
  60. <RowDefinition Height="5" />
  61. <RowDefinition />
  62. </Grid.RowDefinitions>
  63. <Grid Grid.Row="1">
  64. <Grid.RowDefinitions>
  65. <RowDefinition Height="40" />
  66. <RowDefinition />
  67. </Grid.RowDefinitions>
  68. <TextBlock
  69. Margin="0,0,10,0"
  70. HorizontalAlignment="Right"
  71. Background="Transparent"
  72. FontSize="16"
  73. Foreground="Red"
  74. Text="{Binding ErrorInfo}" />
  75. <Grid Grid.Row="1" Margin="5">
  76. <Grid.RowDefinitions>
  77. <RowDefinition />
  78. <RowDefinition />
  79. <RowDefinition />
  80. <RowDefinition />
  81. <RowDefinition />
  82. <RowDefinition />
  83. <RowDefinition />
  84. <RowDefinition />
  85. <RowDefinition />
  86. </Grid.RowDefinitions>
  87. <Grid.ColumnDefinitions>
  88. <ColumnDefinition />
  89. <ColumnDefinition />
  90. <ColumnDefinition />
  91. </Grid.ColumnDefinitions>
  92. <!--#region 请输入原料名称-->
  93. <TextBlock
  94. Grid.Column="0"
  95. HorizontalAlignment="Right"
  96. Background="Transparent"
  97. FontSize="20"
  98. Foreground="#FF2AB2E7"
  99. Text="请输入原料名称:" />
  100. <TextBox
  101. Grid.Column="1"
  102. Margin="3"
  103. Style="{StaticResource TextBoxStyle}"
  104. Text="{Binding RawMaterialName}" />
  105. <StackPanel Grid.Column="2" Orientation="Horizontal">
  106. <Button
  107. Width="80"
  108. Height="30"
  109. Command="{Binding SaveCommand}"
  110. Content="确认" />
  111. <Button
  112. Name="btClose"
  113. Width="80"
  114. Height="30"
  115. Margin="7,0,0,0"
  116. Content="取消" />
  117. </StackPanel>
  118. <!--#endregion-->
  119. <!--#region 慢加重量-->
  120. <TextBlock
  121. Grid.Row="1"
  122. Grid.Column="0"
  123. HorizontalAlignment="Right"
  124. Background="Transparent"
  125. FontSize="20"
  126. Foreground="#FF2AB2E7"
  127. Text="慢加重量:" />
  128. <TextBox
  129. Grid.Row="1"
  130. Grid.Column="1"
  131. Margin="3"
  132. Style="{StaticResource TextBoxStyle}"
  133. Text="{Binding RawMaterialName}" />
  134. <TextBlock
  135. Grid.Row="1"
  136. Grid.Column="2"
  137. Margin="5,0,0,0"
  138. HorizontalAlignment="Left"
  139. Background="Transparent"
  140. FontSize="20"
  141. Foreground="#FF2AB2E7"
  142. Text="单位" />
  143. <!--#endregion-->
  144. <!--#region 提前关阀重量-->
  145. <TextBlock
  146. Grid.Row="2"
  147. Grid.Column="0"
  148. HorizontalAlignment="Right"
  149. Background="Transparent"
  150. FontSize="20"
  151. Foreground="#FF2AB2E7"
  152. Text="提前关阀重量:" />
  153. <TextBox
  154. Grid.Row="2"
  155. Grid.Column="1"
  156. Margin="3"
  157. Style="{StaticResource TextBoxStyle}"
  158. Text="{Binding RawMaterialName}" />
  159. <TextBlock
  160. Grid.Row="2"
  161. Grid.Column="2"
  162. Margin="5,0,0,0"
  163. HorizontalAlignment="Left"
  164. Background="Transparent"
  165. FontSize="20"
  166. Foreground="#FF2AB2E7"
  167. Text="单位" />
  168. <!--#endregion-->
  169. <!--#region 快加速度-->
  170. <TextBlock
  171. Grid.Row="3"
  172. Grid.Column="0"
  173. HorizontalAlignment="Right"
  174. Background="Transparent"
  175. FontSize="20"
  176. Foreground="#FF2AB2E7"
  177. Text="快加速度:" />
  178. <TextBox
  179. Grid.Row="3"
  180. Grid.Column="1"
  181. Margin="3"
  182. Style="{StaticResource TextBoxStyle}"
  183. Text="{Binding RawMaterialName}" />
  184. <TextBlock
  185. Grid.Row="3"
  186. Grid.Column="2"
  187. Margin="5,0,0,0"
  188. HorizontalAlignment="Left"
  189. Background="Transparent"
  190. FontSize="20"
  191. Foreground="#FF2AB2E7"
  192. Text="单位" />
  193. <!--#endregion-->
  194. <!--#region 慢加速度-->
  195. <TextBlock
  196. Grid.Row="4"
  197. Grid.Column="0"
  198. HorizontalAlignment="Right"
  199. Background="Transparent"
  200. FontSize="20"
  201. Foreground="#FF2AB2E7"
  202. Text="慢加速度:" />
  203. <TextBox
  204. Grid.Row="4"
  205. Grid.Column="1"
  206. Margin="3"
  207. Style="{StaticResource TextBoxStyle}"
  208. Text="{Binding RawMaterialName}" />
  209. <TextBlock
  210. Grid.Row="4"
  211. Grid.Column="2"
  212. Margin="5,0,0,0"
  213. HorizontalAlignment="Left"
  214. Background="Transparent"
  215. FontSize="20"
  216. Foreground="#FF2AB2E7"
  217. Text="单位" />
  218. <!--#endregion-->
  219. <!--#region 伺服手动速度-->
  220. <TextBlock
  221. Grid.Row="5"
  222. Grid.Column="0"
  223. HorizontalAlignment="Right"
  224. Background="Transparent"
  225. FontSize="20"
  226. Foreground="#FF2AB2E7"
  227. Text="伺服手动速度:" />
  228. <TextBox
  229. Grid.Row="5"
  230. Grid.Column="1"
  231. Margin="3"
  232. Style="{StaticResource TextBoxStyle}"
  233. Text="{Binding RawMaterialName}" />
  234. <TextBlock
  235. Grid.Row="5"
  236. Grid.Column="2"
  237. Margin="5,0,0,0"
  238. HorizontalAlignment="Left"
  239. Background="Transparent"
  240. FontSize="20"
  241. Foreground="#FF2AB2E7"
  242. Text="单位" />
  243. <!--#endregion-->
  244. <!--#region 料仓上限重量-->
  245. <TextBlock
  246. Grid.Row="6"
  247. Grid.Column="0"
  248. HorizontalAlignment="Right"
  249. Background="Transparent"
  250. FontSize="20"
  251. Foreground="#FF2AB2E7"
  252. Text="料仓上限重量:" />
  253. <TextBox
  254. Grid.Row="6"
  255. Grid.Column="1"
  256. Margin="3"
  257. Style="{StaticResource TextBoxStyle}"
  258. Text="{Binding RawMaterialName}" />
  259. <TextBlock
  260. Grid.Row="6"
  261. Grid.Column="2"
  262. Margin="5,0,0,0"
  263. HorizontalAlignment="Left"
  264. Background="Transparent"
  265. FontSize="20"
  266. Foreground="#FF2AB2E7"
  267. Text="单位" />
  268. <!--#endregion-->
  269. <!--#region 料仓下限重量-->
  270. <TextBlock
  271. Grid.Row="7"
  272. Grid.Column="0"
  273. HorizontalAlignment="Right"
  274. Background="Transparent"
  275. FontSize="20"
  276. Foreground="#FF2AB2E7"
  277. Text="料仓下限重量:" />
  278. <TextBox
  279. Grid.Row="7"
  280. Grid.Column="1"
  281. Margin="3"
  282. Style="{StaticResource TextBoxStyle}"
  283. Text="{Binding RawMaterialName}" />
  284. <TextBlock
  285. Grid.Row="7"
  286. Grid.Column="2"
  287. Margin="5,0,0,0"
  288. HorizontalAlignment="Left"
  289. Background="Transparent"
  290. FontSize="20"
  291. Foreground="#FF2AB2E7"
  292. Text="单位" />
  293. <!--#endregion-->
  294. <!--#region 搅拌速度-->
  295. <TextBlock
  296. Grid.Row="8"
  297. Grid.Column="0"
  298. HorizontalAlignment="Right"
  299. Background="Transparent"
  300. FontSize="20"
  301. Foreground="#FF2AB2E7"
  302. Text="搅拌速度:" />
  303. <TextBox
  304. Grid.Row="8"
  305. Grid.Column="1"
  306. Margin="3"
  307. Style="{StaticResource TextBoxStyle}"
  308. Text="{Binding RawMaterialName}" />
  309. <TextBlock
  310. Grid.Row="8"
  311. Grid.Column="2"
  312. Margin="5,0,0,0"
  313. HorizontalAlignment="Left"
  314. Background="Transparent"
  315. FontSize="20"
  316. Foreground="#FF2AB2E7"
  317. Text="单位" />
  318. <!--#endregion-->
  319. </Grid>
  320. </Grid>
  321. </Grid>
  322. </Border>
  323. </Window>