OeeDebugPage.xaml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <UserControl
  2. x:Class="LogoForceTestApp.Modules.MainModule.Views.OeeDebugPage"
  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:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
  10. d:DataContext="{d:DesignInstance Type=viewmodels:OeeDebugPageViewModel}"
  11. d:DesignHeight="650"
  12. d:DesignWidth="800"
  13. mc:Ignorable="d">
  14. <Grid>
  15. <StackPanel HorizontalAlignment="Center">
  16. <Grid>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition />
  19. <ColumnDefinition />
  20. </Grid.ColumnDefinitions>
  21. <StackPanel>
  22. <hc:TextBox
  23. hc:InfoElement.Placeholder="IP"
  24. hc:InfoElement.Title="OEE IP:"
  25. hc:InfoElement.TitlePlacement="Left"
  26. hc:InfoElement.TitleWidth="120"
  27. Text="{Binding OeeIp, UpdateSourceTrigger=PropertyChanged}" />
  28. <hc:TextBox
  29. hc:InfoElement.Placeholder="OEE Port"
  30. hc:InfoElement.Title="OEE Port:"
  31. hc:InfoElement.TitlePlacement="Left"
  32. hc:InfoElement.TitleWidth="120"
  33. Text="{Binding OeePort, UpdateSourceTrigger=PropertyChanged}" />
  34. <hc:TextBox
  35. hc:InfoElement.Placeholder="待料间隔时间"
  36. hc:InfoElement.Title="待料时间间隔(分钟)"
  37. hc:InfoElement.TitlePlacement="Left"
  38. hc:InfoElement.TitleWidth="120"
  39. Text="{Binding WaitPartDuration, UpdateSourceTrigger=PropertyChanged}" />
  40. <hc:TextBox
  41. hc:InfoElement.Placeholder="停机时间间隔"
  42. hc:InfoElement.Title="停机时间间隔(分钟)"
  43. hc:InfoElement.TitlePlacement="Left"
  44. hc:InfoElement.TitleWidth="120"
  45. Text="{Binding StopDuration, UpdateSourceTrigger=PropertyChanged}" />
  46. <hc:TextBox
  47. hc:InfoElement.Placeholder="site"
  48. hc:InfoElement.Title="site(站点区域)"
  49. hc:InfoElement.TitlePlacement="Left"
  50. hc:InfoElement.TitleWidth="120"
  51. Text="{Binding Site, UpdateSourceTrigger=PropertyChanged}" />
  52. <hc:TextBox
  53. hc:InfoElement.Placeholder="floor"
  54. hc:InfoElement.Title="floor(站点楼层)"
  55. hc:InfoElement.TitlePlacement="Left"
  56. hc:InfoElement.TitleWidth="120"
  57. Text="{Binding Floor, UpdateSourceTrigger=PropertyChanged}" />
  58. <hc:TextBox
  59. hc:InfoElement.Placeholder="Product"
  60. hc:InfoElement.Title="Product(机种名称)"
  61. hc:InfoElement.TitlePlacement="Left"
  62. hc:InfoElement.TitleWidth="120"
  63. Text="{Binding Product, UpdateSourceTrigger=PropertyChanged}" />
  64. <hc:TextBox
  65. hc:InfoElement.Placeholder="Line"
  66. hc:InfoElement.Title="Line(线体名称)"
  67. hc:InfoElement.TitlePlacement="Left"
  68. hc:InfoElement.TitleWidth="120"
  69. Text="{Binding Line, UpdateSourceTrigger=PropertyChanged}" />
  70. <hc:TextBox
  71. hc:InfoElement.Placeholder="组装制程"
  72. hc:InfoElement.Title="process(组装制程)"
  73. hc:InfoElement.TitlePlacement="Left"
  74. hc:InfoElement.TitleWidth="120"
  75. Text="{Binding ProcessOee, UpdateSourceTrigger=PropertyChanged}" />
  76. <hc:TextBox
  77. hc:InfoElement.Placeholder="具体站点"
  78. hc:InfoElement.Title="terminalid(具体站点)"
  79. hc:InfoElement.TitlePlacement="Left"
  80. hc:InfoElement.TitleWidth="120"
  81. Text="{Binding TerminalId, UpdateSourceTrigger=PropertyChanged}" />
  82. <hc:TextBox
  83. hc:InfoElement.Placeholder="机台编号"
  84. hc:InfoElement.Title="michineid(机台编号)"
  85. hc:InfoElement.TitlePlacement="Left"
  86. hc:InfoElement.TitleWidth="120"
  87. Text="{Binding MachineId, UpdateSourceTrigger=PropertyChanged}" />
  88. <hc:TextBox
  89. hc:InfoElement.Placeholder="物理地址"
  90. hc:InfoElement.Title="macaddr(物理地址)"
  91. hc:InfoElement.TitlePlacement="Left"
  92. hc:InfoElement.TitleWidth="120"
  93. Text="{Binding MacAddr, UpdateSourceTrigger=PropertyChanged}" />
  94. <hc:TextBox
  95. hc:InfoElement.Placeholder="本地MES地址"
  96. hc:InfoElement.Title="ipaddr(本地MES地址)"
  97. hc:InfoElement.TitlePlacement="Left"
  98. hc:InfoElement.TitleWidth="120"
  99. Text="{Binding IpAddr, UpdateSourceTrigger=PropertyChanged}" />
  100. <hc:TextBox
  101. hc:InfoElement.Placeholder="OPID"
  102. hc:InfoElement.Title="OPID"
  103. hc:InfoElement.TitlePlacement="Left"
  104. hc:InfoElement.TitleWidth="120"
  105. Text="{Binding Op_Id, UpdateSourceTrigger=PropertyChanged}" />
  106. <hc:TextBox
  107. hc:InfoElement.Placeholder="Status"
  108. hc:InfoElement.Title="Status"
  109. hc:InfoElement.TitlePlacement="Left"
  110. hc:InfoElement.TitleWidth="120"
  111. Text="{Binding Status, UpdateSourceTrigger=PropertyChanged}" />
  112. <StackPanel Orientation="Horizontal">
  113. <hc:TextBox
  114. Width="380"
  115. Margin="0,16,0,0"
  116. hc:InfoElement.Title="保存路径"
  117. hc:InfoElement.TitlePlacement="Left"
  118. hc:InfoElement.TitleWidth="120"
  119. IsEnabled="False"
  120. Text="{Binding OeePath}" />
  121. <Button VerticalAlignment="Bottom" Command="{Binding SelectOeeFolderCommand}">...</Button>
  122. </StackPanel>
  123. <StackPanel
  124. Margin="0,16,0,0"
  125. HorizontalAlignment="Center"
  126. Orientation="Horizontal">
  127. <Button
  128. Margin="10"
  129. Command="{Binding UploadCommand}"
  130. Content="稼动率上传" />
  131. </StackPanel>
  132. </StackPanel>
  133. </Grid>
  134. </StackPanel>
  135. </Grid>
  136. </UserControl>