123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <UserControl x:Class="LogoForceTestApp.Modules.MainModule.Views.AccountPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:LogoForceTestApp.Modules.MainModule.Views"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- mc:Ignorable="d">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="80" />
- <RowDefinition />
- <RowDefinition Height="80" />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal"
- VerticalAlignment="Center"
- HorizontalAlignment="Center">
- <TextBlock Text="产品型号:"
- FontSize="16"
- Margin="10"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <TextBox FontSize="16"
- Margin="10"
- Width="200"
- Height="30"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Text="{Binding PTName}"/>
- <TextBlock Text="序号:"
- FontSize="16"
- Margin="10"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <TextBox FontSize="16"
- Margin="10"
- Width="100"
- Height="30"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Text="{Binding PTNameNumber}" />
- <Button Content="获取当前产品质量问题"
- Width="200"
- Height="40"
- FontSize="16"
- Margin="10"
- Command="{Binding AcquireCmm}"/>
- </StackPanel>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <StackPanel Orientation="Vertical"
- Margin="20">
- <TextBlock Text="生产问题"
- FontSize="16"
- Margin="5"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <ListBox Width="500"
- Height="550"
- Margin="5"
- Name="listBox1"
- ItemsSource="{Binding Question1}"
- SelectedIndex="{Binding Selected1}"/>
- <Button Content="删除"
- Width="60"
- Height="35"
- FontSize="16"
- Margin="5"
- Command="{Binding RemoveQuestion1Command}"/>
- <StackPanel Orientation="Horizontal"
- Margin="5">
- <TextBox Width="400"
- Height="30"
- Margin="10,0"
- Name="textBox1"
- Text="{Binding Text1}"/>
- <Button Content="添加"
- Width="60"
- Height="35"
- FontSize="16"
- Margin="10,0"
- Command="{Binding AddQuesetion1}"
- CommandParameter="{Binding ElementName=textBox1,Path=Text}" />
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Vertical"
- Margin="20"
- Grid.Column="1">
- <TextBlock Text="工艺问题"
- FontSize="16"
- Margin="5"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <ListBox Width="500"
- Height="550"
- Margin="5"
- Name="listBox2"
- ItemsSource="{Binding Question2}"
- SelectedIndex="{Binding Selected2}" />
- <Button Content="删除"
- Width="60"
- Height="35"
- FontSize="16"
- Margin="5"
- Command="{Binding RemoveQuestion2Command}" />
- <StackPanel Orientation="Horizontal"
- Margin="5">
- <TextBox Width="400"
- Height="30"
- Margin="10,0"
- Name="textBox2"
- Text="{Binding Text2}" />
- <Button Content="添加"
- Width="60"
- Height="35"
- FontSize="16"
- Margin="10,0"
- Command="{Binding AddQuesetion2}"
- CommandParameter="{Binding ElementName=textBox2,Path=Text}" />
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Vertical"
- Margin="20"
- Grid.Column="2">
- <TextBlock Text="物料问题"
- FontSize="16"
- Margin="5"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <ListBox Width="500"
- Height="550"
- Margin="5"
- Name="listBox3"
- ItemsSource="{Binding Question3}"
- SelectedIndex="{Binding Selected3}" />
- <Button Content="删除"
- Width="60"
- Height="35"
- FontSize="16"
- Margin="5"
- Command="{Binding RemoveQuestion3Command}"/>
- <StackPanel Orientation="Horizontal"
- Margin="5">
- <TextBox Width="400"
- Height="30"
- Margin="10,0"
- Name="textBox3"
- Text="{Binding Text3}" />
- <Button Content="添加"
- Width="60"
- Height="35"
- FontSize="16"
- Margin="10,0"
- Command="{Binding AddQuesetion3}"
- CommandParameter="{Binding ElementName=textBox3,Path=Text}" />
- </StackPanel>
- </StackPanel>
- </Grid>
- <StackPanel Grid.Row="2"
- Orientation="Horizontal"
- VerticalAlignment="Center"
- HorizontalAlignment="Center">
- <Button Content="修改"
- Width="80"
- Height="40"
- FontSize="16"
- Margin="10"
- Command="{Binding ModificationCmm}"/>
- <Button Content="添加"
- Width="80"
- Height="40"
- FontSize="16"
- Margin="10"
- Command="{Binding AddCmm}"/>
- </StackPanel>
- </Grid>
- </UserControl>
|