OeeDialogPage.xaml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <Border
  2. x:Class="LogoForceTestApp.Modules.MainModule.Views.OeeDialogPage"
  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:hc="https://handyorg.github.io/handycontrol"
  7. xmlns:local="clr-namespace:LogoForceTestApp.Modules.MainModule.Views"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:prism="http://prismlibrary.com/"
  10. xmlns:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
  11. Width="800"
  12. Height="494"
  13. d:DataContext="{d:DesignInstance Type=viewmodels:OeeDialogPageViewModel}"
  14. d:DesignHeight="450"
  15. d:DesignWidth="800"
  16. prism:ViewModelLocator.AutoWireViewModel="True"
  17. CornerRadius="10"
  18. mc:Ignorable="d">
  19. <Grid>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition />
  23. </Grid.RowDefinitions>
  24. <TextBlock
  25. HorizontalAlignment="Center"
  26. FontSize="24"
  27. Foreground="DeepSkyBlue"
  28. Text="设备异常处理" />
  29. <Grid Grid.Row="1">
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition />
  32. <ColumnDefinition />
  33. </Grid.ColumnDefinitions>
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="auto" />
  36. <RowDefinition Height="auto" />
  37. <RowDefinition Height="auto" />
  38. <RowDefinition Height="auto" />
  39. <RowDefinition Height="auto" />
  40. <RowDefinition Height="auto" />
  41. <RowDefinition Height="auto" />
  42. <RowDefinition Height="auto" />
  43. <RowDefinition />
  44. </Grid.RowDefinitions>
  45. <TextBlock Text="异常时间" />
  46. <TextBlock Grid.Column="1" Text="{Binding ExceptionTime}" />
  47. <TextBlock Grid.Row="1" Text="设备模式:" />
  48. <TextBlock
  49. Grid.Row="2"
  50. Grid.Column="1"
  51. Text="手动调试" />
  52. <TextBlock Grid.Row="3" Text="异常代码:" />
  53. <hc:ComboBox
  54. Grid.Row="3"
  55. Grid.Column="1"
  56. IsEditable="True"
  57. ItemsSource="{Binding ExeceptionLists}"
  58. Text="{Binding ExceptionCode}" />
  59. <TextBlock Grid.Row="4" Text="异常内容:" />
  60. <TextBox
  61. Grid.Row="4"
  62. Grid.Column="1"
  63. Height="60"
  64. Text="{Binding ExceptionContent, UpdateSourceTrigger=PropertyChanged}" />
  65. <TextBlock Grid.Row="5" Text="员工工号:" />
  66. <TextBox
  67. Grid.Row="5"
  68. Grid.Column="1"
  69. Text="{Binding OP_Id, UpdateSourceTrigger=PropertyChanged}" />
  70. <TextBlock Grid.Row="6" Text="异常原因:" />
  71. <TextBox
  72. Grid.Row="6"
  73. Grid.Column="1"
  74. Height="60"
  75. Text="{Binding ExceptionReason, UpdateSourceTrigger=PropertyChanged}" />
  76. <TextBlock Grid.Row="7" Text="待料时间(min):" />
  77. <TextBox
  78. Grid.Row="7"
  79. Grid.Column="1"
  80. Text="{Binding Duration, UpdateSourceTrigger=PropertyChanged}" />
  81. <Button
  82. Grid.Row="8"
  83. Grid.ColumnSpan="2"
  84. Width="120"
  85. Command="{Binding CloseCmd}"
  86. Content="确认"
  87. Style="{StaticResource ButtonPrimary}" />
  88. </Grid>
  89. </Grid>
  90. </Border>