You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
232 lines
18 KiB
232 lines
18 KiB
2 years ago
|
<c:BWindow x:Class="BBWY.Client.Views.PackTask.ServiceWindow"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
xmlns:local="clr-namespace:BBWY.Client.Views.PackTask"
|
||
|
mc:Ignorable="d"
|
||
|
Title="TipsWindow" Height="769" Width="350"
|
||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters"
|
||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
|
||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||
|
CloseButtonVisibility="Visible"
|
||
|
WindowStartupLocation="CenterScreen"
|
||
|
CloseButtonColor="{StaticResource WindowButtonColor}"
|
||
|
MinButtonVisibility="Collapsed"
|
||
|
MaxButtonVisibility="Collapsed"
|
||
|
RightButtonGroupMargin="0,5,5,0">
|
||
|
<!--DataContext="{Binding PackServiceList,Source={StaticResource Locator}}"-->
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="40"/>
|
||
|
<RowDefinition/>
|
||
|
<RowDefinition Height="40"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}"
|
||
|
Background="{StaticResource Border.Background}">
|
||
|
<TextBlock Text="服务、 耗材、 参与人" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||
|
|
||
|
</Border>
|
||
|
<Grid Grid.Row="1">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition/>
|
||
|
<RowDefinition/>
|
||
|
<RowDefinition Height="250"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid Grid.Row="0">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="87"/>
|
||
|
<RowDefinition Height="auto"/>
|
||
|
<RowDefinition Height="10"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<TextBlock Text="增值服务" Margin="19,33,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
|
||
|
<Border Background="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Width="217" Margin="77,40,0,0" Height="1"/>
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="322" Margin="19,56,0,0" Height="1"/>
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="322" Margin="19,86,0,0" Height="1"/>
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="19,56,0,0" Height="30" />
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="135,56,0,0" Height="30" />
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="219,56,0,0" Height="30" />
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="300,56,0,0" Height="30" />
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="340,56,0,0" Height="30" />
|
||
|
<Label Content="增值服务项目" Width="116" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="19,56,0,0" />
|
||
|
<Label Content="成员" Width="84" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="135,56,0,0" />
|
||
|
<Label Content="数量" Width="80" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="219,56,0,0" />
|
||
|
<Label Content="操作" Width="40" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="303,56,0,0" />
|
||
|
|
||
|
<StackPanel Grid.Row="1" Orientation="Vertical" MaxHeight="140" Width="322" Margin="19,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Background="Transparent">
|
||
|
<ListBox ItemsSource="{Binding IncreateList}" ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
|
||
|
BorderBrush="{StaticResource Border.Brush}"
|
||
|
BorderThickness="1,1,1,0" MaxHeight="100"
|
||
|
Foreground="{StaticResource Text.Color}"
|
||
|
ScrollViewer.VerticalScrollBarVisibility="Auto" >
|
||
|
<ListBox.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="116"/>
|
||
|
<ColumnDefinition Width="84"/>
|
||
|
<ColumnDefinition Width="84"/>
|
||
|
<ColumnDefinition Width="40"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<ComboBox VerticalContentAlignment="Center" Grid.Column="0" ItemsSource="{Binding IncreateServiceList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="ServiceName" SelectedValuePath="Id" SelectedValue="{Binding SelectId}" Text="{Binding ItemName}" Width="116" Height="30"/>
|
||
|
<ComboBox VerticalContentAlignment="Center" Grid.Column="1" ItemsSource="{Binding MemberList}" DisplayMemberPath="UserName" SelectedValuePath="Id" SelectedValue="{Binding SelectUserId}" Width="84" Height="30"/>
|
||
|
<TextBox VerticalContentAlignment="Center" Grid.Column="2" Height="30" Text="{Binding ItemCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="84"/>
|
||
|
<c:BButton Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
||
|
Command="{Binding DeleteServiceCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListBox}, Path=ItemsSource}" Content="删除" Grid.Column="3"/>
|
||
|
</Grid>
|
||
|
</DataTemplate>
|
||
|
</ListBox.ItemTemplate>
|
||
|
</ListBox>
|
||
|
<c:BButton Content="添加" Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
||
|
Command="{Binding AddIncreateServiceCommand}"
|
||
|
>
|
||
|
<Button.Triggers>
|
||
|
|
||
|
</Button.Triggers>
|
||
|
</c:BButton>
|
||
|
</StackPanel>
|
||
|
|
||
|
|
||
|
</Grid>
|
||
|
|
||
|
<Grid Grid.Row="1">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="87"/>
|
||
|
<RowDefinition Height="auto"/>
|
||
|
<RowDefinition Height="10"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<TextBlock Text="打包服务" Margin="19,33,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
|
||
|
<Border Background="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Width="217" Margin="77,40,0,0" Height="1"/>
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="322" Margin="19,56,0,0" Height="1"/>
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="322" Margin="19,86,0,0" Height="1"/>
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="19,56,0,0" Height="30" />
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="135,56,0,0" Height="30" />
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="219,56,0,0" Height="30" />
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="300,56,0,0" Height="30" />
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="340,56,0,0" Height="30" />
|
||
|
<Label Content="打包服务项目" Width="116" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="19,56,0,0" />
|
||
|
<Label Content="成员" Width="84" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="135,56,0,0" />
|
||
|
<Label Content="数量" Width="80" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="219,56,0,0" />
|
||
|
<Label Content="操作" Width="40" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="303,56,0,0" />
|
||
|
|
||
|
|
||
|
<StackPanel Grid.Row="1" Orientation="Vertical" MaxHeight="140" Width="322" Margin="19,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Background="Transparent">
|
||
|
<ListBox
|
||
|
ItemsSource="{Binding PackList}" MaxHeight="100"
|
||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
|
||
|
BorderBrush="{StaticResource Border.Brush}"
|
||
|
BorderThickness="1,1,1,0"
|
||
|
Foreground="{StaticResource Text.Color}"
|
||
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
||
|
>
|
||
|
|
||
|
<ListBox.ItemTemplate >
|
||
|
<DataTemplate>
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="116"/>
|
||
|
<ColumnDefinition Width="84"/>
|
||
|
<ColumnDefinition Width="84"/>
|
||
|
<ColumnDefinition Width="40"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<ComboBox VerticalContentAlignment="Center" Grid.Column="0" DisplayMemberPath="ProcessName" ItemsSource="{Binding PackServiceList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedValuePath="Id" SelectedValue="{Binding SelectId}" Text="{Binding ItemName}" Width="116" Height="30"/>
|
||
|
<ComboBox VerticalContentAlignment="Center" Grid.Column="1" ItemsSource="{Binding MemberList}" DisplayMemberPath="UserName" SelectedValuePath="Id" SelectedValue="{Binding SelectUserId}" Width="84" Height="30"/>
|
||
|
<TextBox VerticalContentAlignment="Center" Grid.Column="2" Height="30" Text="{Binding ItemCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="84"/>
|
||
|
<c:BButton Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
||
|
Command="{Binding DeleteServiceCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListBox}, Path=ItemsSource}" Content="删除" Grid.Column="3"/>
|
||
|
</Grid>
|
||
|
</DataTemplate>
|
||
|
</ListBox.ItemTemplate>
|
||
|
</ListBox>
|
||
|
<c:BButton Content="添加" Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
||
|
Command="{Binding AddPackServiceCommand}"
|
||
|
/>
|
||
|
</StackPanel>
|
||
|
|
||
|
|
||
|
</Grid>
|
||
|
|
||
|
<Grid Grid.Row="2">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="87"/>
|
||
|
<RowDefinition MaxHeight="200"/>
|
||
|
<RowDefinition Height="10"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<TextBlock Text="耗材项目" Margin="19,20,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
|
||
|
<Border Background="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Width="217" Margin="77,27,0,0" Height="1"/>
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="240" Margin="19,56,0,0" Height="1"/>
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="240" Margin="19,86,0,0" Height="1"/>
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="19,56,0,0" Height="30" />
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="135,56,0,0" Height="30" />
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="239,56,0,0" Height="30" />
|
||
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="279,56,0,0" Height="30" />
|
||
|
|
||
|
<Label Content="任务耗材" Width="116" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="19,56,0,0" />
|
||
|
<StackPanel Orientation="Horizontal" Width="104" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="135,56,0,0">
|
||
|
<Label Content="数量" Width="44" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
|
||
|
<c:BButton Content="批量设置" Width="60" Background="Transparent" Foreground="Blue"
|
||
|
Command="{Binding SetAllCountCommand}"
|
||
|
CommandParameter="{Binding ElementName=consumable_listBox}"
|
||
|
/>
|
||
|
</StackPanel>
|
||
|
|
||
|
<Label Content="操作" Width="40" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="239,56,0,0" />
|
||
|
|
||
|
|
||
|
<StackPanel Grid.Row="1" Orientation="Vertical" MaxHeight="160" Width="260" Margin="19,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Background="Transparent">
|
||
|
<ListBox MaxHeight="120" Name="consumable_listBox"
|
||
|
ItemsSource="{Binding ConsumableServiceList}"
|
||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
|
||
|
BorderBrush="{StaticResource Border.Brush}"
|
||
|
BorderThickness="1,1,1,0"
|
||
|
Foreground="{StaticResource Text.Color}"
|
||
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
||
|
>
|
||
|
|
||
|
<ListBox.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="116"/>
|
||
|
<ColumnDefinition Width="104"/>
|
||
|
<ColumnDefinition Width="40"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<ComboBox VerticalContentAlignment="Center" Text="{Binding ItemName}" Grid.Column="0" ItemsSource="{Binding ConsumableList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="Name" SelectedValue="{Binding SelectId}" SelectedValuePath="Id" Width="116" Height="30"/>
|
||
|
<TextBox VerticalContentAlignment="Center" Grid.Column="1" Height="30" Text="{Binding ItemCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="104"/>
|
||
|
<c:BButton Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
||
|
Command="{Binding DeleteServiceCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListBox}, Path=ItemsSource}" Content="删除" Grid.Column="2"/>
|
||
|
</Grid>
|
||
|
</DataTemplate>
|
||
|
</ListBox.ItemTemplate>
|
||
|
</ListBox>
|
||
|
<c:BButton Content="添加" Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
||
|
Command="{Binding AddConsumableCommand}"
|
||
|
/>
|
||
|
</StackPanel>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<c:BButton Grid.Row="2" Content="确定" HorizontalAlignment="Right" Width="100" VerticalAlignment="Stretch"
|
||
|
Command="{Binding UpLoadPackCommand}"
|
||
|
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
|
||
|
/>
|
||
|
</Grid>
|
||
|
</c:BWindow>
|