AccountPage.xaml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <UserControl x:Class="LogoForceTestApp.Modules.MainModule.Views.AccountPage"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:LogoForceTestApp.Modules.MainModule.Views"
  7. xmlns:hc="https://handyorg.github.io/handycontrol"
  8. mc:Ignorable="d">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="80" />
  12. <RowDefinition />
  13. <RowDefinition Height="80" />
  14. </Grid.RowDefinitions>
  15. <StackPanel Orientation="Horizontal"
  16. VerticalAlignment="Center"
  17. HorizontalAlignment="Center">
  18. <TextBlock Text="产品型号:"
  19. FontSize="16"
  20. Margin="10"
  21. VerticalAlignment="Center"
  22. HorizontalAlignment="Center" />
  23. <TextBox FontSize="16"
  24. Margin="10"
  25. Width="200"
  26. Height="30"
  27. VerticalAlignment="Center"
  28. HorizontalAlignment="Center"
  29. Text="{Binding PTName}"/>
  30. <TextBlock Text="序号:"
  31. FontSize="16"
  32. Margin="10"
  33. VerticalAlignment="Center"
  34. HorizontalAlignment="Center" />
  35. <TextBox FontSize="16"
  36. Margin="10"
  37. Width="100"
  38. Height="30"
  39. VerticalAlignment="Center"
  40. HorizontalAlignment="Center"
  41. Text="{Binding PTNameNumber}" />
  42. <Button Content="获取当前产品质量问题"
  43. Width="200"
  44. Height="40"
  45. FontSize="16"
  46. Margin="10"
  47. Command="{Binding AcquireCmm}"/>
  48. </StackPanel>
  49. <Grid Grid.Row="1">
  50. <Grid.ColumnDefinitions>
  51. <ColumnDefinition />
  52. <ColumnDefinition />
  53. <ColumnDefinition />
  54. </Grid.ColumnDefinitions>
  55. <StackPanel Orientation="Vertical"
  56. Margin="20">
  57. <TextBlock Text="生产问题"
  58. FontSize="16"
  59. Margin="5"
  60. VerticalAlignment="Center"
  61. HorizontalAlignment="Center" />
  62. <ListBox Width="500"
  63. Height="550"
  64. Margin="5"
  65. Name="listBox1"
  66. ItemsSource="{Binding Question1}"
  67. SelectedIndex="{Binding Selected1}"/>
  68. <Button Content="删除"
  69. Width="60"
  70. Height="35"
  71. FontSize="16"
  72. Margin="5"
  73. Command="{Binding RemoveQuestion1Command}"/>
  74. <StackPanel Orientation="Horizontal"
  75. Margin="5">
  76. <TextBox Width="400"
  77. Height="30"
  78. Margin="10,0"
  79. Name="textBox1"
  80. Text="{Binding Text1}"/>
  81. <Button Content="添加"
  82. Width="60"
  83. Height="35"
  84. FontSize="16"
  85. Margin="10,0"
  86. Command="{Binding AddQuesetion1}"
  87. CommandParameter="{Binding ElementName=textBox1,Path=Text}" />
  88. </StackPanel>
  89. </StackPanel>
  90. <StackPanel Orientation="Vertical"
  91. Margin="20"
  92. Grid.Column="1">
  93. <TextBlock Text="工艺问题"
  94. FontSize="16"
  95. Margin="5"
  96. VerticalAlignment="Center"
  97. HorizontalAlignment="Center" />
  98. <ListBox Width="500"
  99. Height="550"
  100. Margin="5"
  101. Name="listBox2"
  102. ItemsSource="{Binding Question2}"
  103. SelectedIndex="{Binding Selected2}" />
  104. <Button Content="删除"
  105. Width="60"
  106. Height="35"
  107. FontSize="16"
  108. Margin="5"
  109. Command="{Binding RemoveQuestion2Command}" />
  110. <StackPanel Orientation="Horizontal"
  111. Margin="5">
  112. <TextBox Width="400"
  113. Height="30"
  114. Margin="10,0"
  115. Name="textBox2"
  116. Text="{Binding Text2}" />
  117. <Button Content="添加"
  118. Width="60"
  119. Height="35"
  120. FontSize="16"
  121. Margin="10,0"
  122. Command="{Binding AddQuesetion2}"
  123. CommandParameter="{Binding ElementName=textBox2,Path=Text}" />
  124. </StackPanel>
  125. </StackPanel>
  126. <StackPanel Orientation="Vertical"
  127. Margin="20"
  128. Grid.Column="2">
  129. <TextBlock Text="物料问题"
  130. FontSize="16"
  131. Margin="5"
  132. VerticalAlignment="Center"
  133. HorizontalAlignment="Center" />
  134. <ListBox Width="500"
  135. Height="550"
  136. Margin="5"
  137. Name="listBox3"
  138. ItemsSource="{Binding Question3}"
  139. SelectedIndex="{Binding Selected3}" />
  140. <Button Content="删除"
  141. Width="60"
  142. Height="35"
  143. FontSize="16"
  144. Margin="5"
  145. Command="{Binding RemoveQuestion3Command}"/>
  146. <StackPanel Orientation="Horizontal"
  147. Margin="5">
  148. <TextBox Width="400"
  149. Height="30"
  150. Margin="10,0"
  151. Name="textBox3"
  152. Text="{Binding Text3}" />
  153. <Button Content="添加"
  154. Width="60"
  155. Height="35"
  156. FontSize="16"
  157. Margin="10,0"
  158. Command="{Binding AddQuesetion3}"
  159. CommandParameter="{Binding ElementName=textBox3,Path=Text}" />
  160. </StackPanel>
  161. </StackPanel>
  162. </Grid>
  163. <StackPanel Grid.Row="2"
  164. Orientation="Horizontal"
  165. VerticalAlignment="Center"
  166. HorizontalAlignment="Center">
  167. <Button Content="修改"
  168. Width="80"
  169. Height="40"
  170. FontSize="16"
  171. Margin="10"
  172. Command="{Binding ModificationCmm}"/>
  173. <Button Content="添加"
  174. Width="80"
  175. Height="40"
  176. FontSize="16"
  177. Margin="10"
  178. Command="{Binding AddCmm}"/>
  179. </StackPanel>
  180. </Grid>
  181. </UserControl>