ParamPage.xaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <UserControl
  2. x:Class="LogoForceTestApp.Modules.MainModule.Views.ParamPage"
  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:ParamPageViewModel}"
  11. d:DesignHeight="650"
  12. d:DesignWidth="1200"
  13. mc:Ignorable="d">
  14. <Grid>
  15. <Grid>
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition />
  18. <ColumnDefinition />
  19. <ColumnDefinition />
  20. </Grid.ColumnDefinitions>
  21. <GroupBox Header="Trace参数">
  22. <StackPanel>
  23. <hc:TextBox
  24. Width="380"
  25. Margin="0,16,0,0"
  26. hc:InfoElement.Necessary="True"
  27. hc:InfoElement.Placeholder="station_id"
  28. hc:InfoElement.Title="StationId"
  29. hc:InfoElement.TitlePlacement="Left"
  30. hc:InfoElement.TitleWidth="140"
  31. Text="{Binding Param.station_id}" />
  32. <!--<hc:TextBox
  33. Width="380"
  34. Margin="0,16,0,0"
  35. hc:InfoElement.Necessary="True"
  36. hc:InfoElement.Placeholder="fixture_id"
  37. hc:InfoElement.Title="FixtureId"
  38. hc:InfoElement.TitlePlacement="Left"
  39. hc:InfoElement.TitleWidth="140"
  40. Text="{Binding Param.fixture_id}" />-->
  41. <hc:TextBox
  42. Width="380"
  43. Margin="0,16,0,0"
  44. hc:InfoElement.Necessary="True"
  45. hc:InfoElement.Placeholder="HeadId"
  46. hc:InfoElement.Title="Cavity_Id"
  47. hc:InfoElement.TitlePlacement="Left"
  48. hc:InfoElement.TitleWidth="140"
  49. Text="{Binding Param.cavity_id}" />
  50. <hc:TextBox
  51. Width="380"
  52. Margin="0,16,0,0"
  53. hc:InfoElement.Necessary="True"
  54. hc:InfoElement.Placeholder="line_id"
  55. hc:InfoElement.Title="LineId"
  56. hc:InfoElement.TitlePlacement="Left"
  57. hc:InfoElement.TitleWidth="140"
  58. Text="{Binding Param.line_id}" />
  59. <!--<hc:TextBox
  60. Width="380"
  61. Margin="0,16,0,0"
  62. hc:InfoElement.Necessary="True"
  63. hc:InfoElement.Placeholder="OpId"
  64. hc:InfoElement.Title="OpId"
  65. hc:InfoElement.TitlePlacement="Left"
  66. hc:InfoElement.TitleWidth="140"
  67. Text="{Binding Param.op_id}" />-->
  68. <hc:TextBox
  69. Width="380"
  70. Margin="0,16,0,0"
  71. hc:InfoElement.Necessary="True"
  72. hc:InfoElement.Placeholder="station_vendor"
  73. hc:InfoElement.Title="station_vendor"
  74. hc:InfoElement.TitlePlacement="Left"
  75. hc:InfoElement.TitleWidth="140"
  76. Text="{Binding Param.station_vendor}" />
  77. <hc:TextBox
  78. Width="380"
  79. Margin="0,16,0,0"
  80. hc:InfoElement.Necessary="True"
  81. hc:InfoElement.Placeholder="test"
  82. hc:InfoElement.Title="Test"
  83. hc:InfoElement.TitlePlacement="Left"
  84. hc:InfoElement.TitleWidth="140"
  85. Text="{Binding Param.test}" />
  86. <hc:TextBox
  87. Width="380"
  88. Margin="0,16,0,0"
  89. hc:InfoElement.Necessary="True"
  90. hc:InfoElement.Placeholder="OP_Id"
  91. hc:InfoElement.Title="OP_Id"
  92. hc:InfoElement.TitlePlacement="Left"
  93. hc:InfoElement.TitleWidth="140"
  94. Text="{Binding Param.OpId}" />
  95. <hc:TextBox
  96. Width="380"
  97. Margin="0,16,0,0"
  98. hc:InfoElement.Necessary="True"
  99. hc:InfoElement.Placeholder="上限值"
  100. hc:InfoElement.Title="上限值"
  101. hc:InfoElement.TitlePlacement="Left"
  102. hc:InfoElement.TitleWidth="140"
  103. Text="{Binding Param.UpperLimit}" />
  104. <hc:TextBox
  105. Width="380"
  106. Margin="0,16,0,0"
  107. hc:InfoElement.Necessary="True"
  108. hc:InfoElement.Placeholder="下限值"
  109. hc:InfoElement.Title="下限值"
  110. hc:InfoElement.TitlePlacement="Left"
  111. hc:InfoElement.TitleWidth="140"
  112. Text="{Binding Param.DownLimit}" />
  113. <Button
  114. Margin="0,16,0,0"
  115. Command="{Binding SaveTraceParamCommand}"
  116. Content="保存trace参数" />
  117. </StackPanel>
  118. </GroupBox>
  119. <GroupBox
  120. Grid.Column="1"
  121. hc:Growl.GrowlParent="True"
  122. Header="其他参数">
  123. <StackPanel>
  124. <hc:TextBox
  125. hc:InfoElement.Placeholder="Aim_Name"
  126. hc:InfoElement.Title="AIM_NAME"
  127. hc:InfoElement.TitlePlacement="Left"
  128. hc:InfoElement.TitleWidth="120"
  129. Text="{Binding AimName}" />
  130. <hc:TextBox
  131. hc:InfoElement.Placeholder="AIM_UNIQUE"
  132. hc:InfoElement.Title="AIM_UNIQUE"
  133. hc:InfoElement.TitlePlacement="Left"
  134. hc:InfoElement.TitleWidth="120"
  135. Text="{Binding AIM_UNIQUE}" />
  136. <hc:TextBox
  137. hc:InfoElement.Placeholder="INSPECTION_PROGRAM_NAME"
  138. hc:InfoElement.Title="PROGRAM_NAME"
  139. hc:InfoElement.TitlePlacement="Left"
  140. hc:InfoElement.TitleWidth="120"
  141. Text="{Binding INSPECTION_PROGRAM_NAME}" />
  142. <hc:TextBox
  143. hc:InfoElement.Placeholder="Project"
  144. hc:InfoElement.Title="Project"
  145. hc:InfoElement.TitlePlacement="Left"
  146. hc:InfoElement.TitleWidth="120"
  147. Text="{Binding Project}" />
  148. <hc:TextBox
  149. hc:InfoElement.Placeholder="Part"
  150. hc:InfoElement.Title="Part"
  151. hc:InfoElement.TitlePlacement="Left"
  152. hc:InfoElement.TitleWidth="120"
  153. Text="{Binding Part}" />
  154. <hc:TextBox
  155. hc:InfoElement.Placeholder="Process"
  156. hc:InfoElement.Title="Process"
  157. hc:InfoElement.TitlePlacement="Left"
  158. hc:InfoElement.TitleWidth="120"
  159. Text="{Binding Process}" />
  160. <hc:TextBox
  161. hc:InfoElement.Placeholder="Build"
  162. hc:InfoElement.Title="Build"
  163. hc:InfoElement.TitlePlacement="Left"
  164. hc:InfoElement.TitleWidth="120"
  165. Text="{Binding Build}" />
  166. <CheckBox
  167. Width="380"
  168. Margin="0,16,0,0"
  169. hc:InfoElement.Title=""
  170. hc:InfoElement.TitlePlacement="Left"
  171. hc:InfoElement.TitleWidth="140"
  172. Content="上传屏蔽"
  173. IsChecked="{Binding Selected}" />
  174. <CheckBox
  175. Width="380"
  176. Margin="0,16,0,0"
  177. hc:InfoElement.Title=""
  178. hc:InfoElement.TitlePlacement="Left"
  179. hc:InfoElement.TitleWidth="140"
  180. Content="卡关屏蔽"
  181. IsChecked="{Binding TraceDisable}" />
  182. <StackPanel Orientation="Horizontal">
  183. <hc:TextBox
  184. Width="380"
  185. Margin="0,16,0,0"
  186. hc:InfoElement.Title="CSV路径"
  187. hc:InfoElement.TitlePlacement="Left"
  188. hc:InfoElement.TitleWidth="120"
  189. IsEnabled="False"
  190. Text="{Binding CSVPath}" />
  191. <Button VerticalAlignment="Bottom" Command="{Binding SelectFolderCommand}">...</Button>
  192. </StackPanel>
  193. <StackPanel Orientation="Horizontal">
  194. <hc:TextBox
  195. Width="380"
  196. Margin="0,16,0,0"
  197. hc:InfoElement.Title="图片路径"
  198. hc:InfoElement.TitlePlacement="Left"
  199. hc:InfoElement.TitleWidth="120"
  200. IsEnabled="False"
  201. Text="{Binding ImageSavePath}" />
  202. <Button VerticalAlignment="Bottom" Command="{Binding SelectImageFolderCommand}">...</Button>
  203. </StackPanel>
  204. <Button
  205. Margin="0,16,0,0"
  206. Command="{Binding SaveOtherCommand}"
  207. Content="保存" />
  208. </StackPanel>
  209. </GroupBox>
  210. <GroupBox
  211. Grid.Column="2"
  212. hc:Growl.GrowlParent="True"
  213. Header="OEE配置">
  214. <StackPanel>
  215. <hc:TextBox
  216. hc:InfoElement.Placeholder="IP"
  217. hc:InfoElement.Title="OEE IP:"
  218. hc:InfoElement.TitlePlacement="Left"
  219. hc:InfoElement.TitleWidth="120"
  220. Text="{Binding OeeIp}" />
  221. <hc:TextBox
  222. hc:InfoElement.Placeholder="OEE Port"
  223. hc:InfoElement.Title="OEE Port:"
  224. hc:InfoElement.TitlePlacement="Left"
  225. hc:InfoElement.TitleWidth="120"
  226. Text="{Binding OeePort}" />
  227. <hc:TextBox
  228. hc:InfoElement.Placeholder="待料间隔时间"
  229. hc:InfoElement.Title="待料时间间隔(分钟)"
  230. hc:InfoElement.TitlePlacement="Left"
  231. hc:InfoElement.TitleWidth="120"
  232. Text="{Binding WaitPartDuration}" />
  233. <hc:TextBox
  234. hc:InfoElement.Placeholder="停机时间间隔"
  235. hc:InfoElement.Title="停机时间间隔(分钟)"
  236. hc:InfoElement.TitlePlacement="Left"
  237. hc:InfoElement.TitleWidth="120"
  238. Text="{Binding StopDuration}" />
  239. <hc:TextBox
  240. hc:InfoElement.Placeholder="site"
  241. hc:InfoElement.Title="site(站点区域)"
  242. hc:InfoElement.TitlePlacement="Left"
  243. hc:InfoElement.TitleWidth="120"
  244. Text="{Binding Site}" />
  245. <hc:TextBox
  246. hc:InfoElement.Placeholder="floor"
  247. hc:InfoElement.Title="floor(站点楼层)"
  248. hc:InfoElement.TitlePlacement="Left"
  249. hc:InfoElement.TitleWidth="120"
  250. Text="{Binding Floor}" />
  251. <hc:TextBox
  252. hc:InfoElement.Placeholder="Product"
  253. hc:InfoElement.Title="Product(机种名称)"
  254. hc:InfoElement.TitlePlacement="Left"
  255. hc:InfoElement.TitleWidth="120"
  256. Text="{Binding Product}" />
  257. <hc:TextBox
  258. hc:InfoElement.Placeholder="Line"
  259. hc:InfoElement.Title="Line(线体名称)"
  260. hc:InfoElement.TitlePlacement="Left"
  261. hc:InfoElement.TitleWidth="120"
  262. Text="{Binding Line}" />
  263. <hc:TextBox
  264. hc:InfoElement.Placeholder="组装制程"
  265. hc:InfoElement.Title="process(组装制程)"
  266. hc:InfoElement.TitlePlacement="Left"
  267. hc:InfoElement.TitleWidth="120"
  268. Text="{Binding ProcessOee}" />
  269. <hc:TextBox
  270. hc:InfoElement.Placeholder="具体站点"
  271. hc:InfoElement.Title="terminalid(具体站点)"
  272. hc:InfoElement.TitlePlacement="Left"
  273. hc:InfoElement.TitleWidth="120"
  274. Text="{Binding TerminalId}" />
  275. <hc:TextBox
  276. hc:InfoElement.Placeholder="机台编号"
  277. hc:InfoElement.Title="michineid(机台编号)"
  278. hc:InfoElement.TitlePlacement="Left"
  279. hc:InfoElement.TitleWidth="120"
  280. Text="{Binding MachineId}" />
  281. <hc:ComboBox
  282. hc:InfoElement.Placeholder="物理地址"
  283. hc:InfoElement.Title="macaddr(物理地址)"
  284. hc:InfoElement.TitlePlacement="Left"
  285. hc:InfoElement.TitleWidth="120"
  286. ItemsSource="{Binding AddressSource}"
  287. SelectedItem="{Binding MacAddr}" />
  288. <hc:TextBox
  289. hc:InfoElement.Placeholder="本地MES地址"
  290. hc:InfoElement.Title="ipaddr(本地MES地址)"
  291. hc:InfoElement.TitlePlacement="Left"
  292. hc:InfoElement.TitleWidth="120"
  293. Text="{Binding IpAddr}" />
  294. <CheckBox
  295. Width="380"
  296. Margin="0,16,0,0"
  297. Content="上传屏蔽"
  298. IsChecked="{Binding UnUseOee}" />
  299. <StackPanel Orientation="Horizontal">
  300. <hc:TextBox
  301. Width="380"
  302. Margin="0,16,0,0"
  303. hc:InfoElement.Title="保存路径"
  304. hc:InfoElement.TitlePlacement="Left"
  305. hc:InfoElement.TitleWidth="120"
  306. IsEnabled="False"
  307. Text="{Binding OeePath}" />
  308. <Button VerticalAlignment="Bottom" Command="{Binding SelectOeeFolderCommand}">...</Button>
  309. </StackPanel>
  310. <StackPanel
  311. Margin="0,16,0,0"
  312. HorizontalAlignment="Center"
  313. Orientation="Horizontal">
  314. <Button
  315. Margin="10"
  316. Command="{Binding SaveOeeCommand}"
  317. Content="保存配置" />
  318. <Button
  319. Margin="10"
  320. Command="{Binding DebugCommand}"
  321. Content="调试" />
  322. </StackPanel>
  323. </StackPanel>
  324. </GroupBox>
  325. </Grid>
  326. </Grid>
  327. </UserControl>