| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <Window x:Class="Muchinfo.MTPClient.Delivery.Views.ComfirmGoodsTicketsView"
- 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:ignore="http://www.galasoft.ch/ignore"
- xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
- mc:Ignorable="d ignore"
- xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- x:Name="ComfirmGoodsTicketsViewWindow"
- Height="200"
- Width="300"
- Title="确认货票"
- MouseLeftButtonDown="drag_MouseLeftButtonDown"
- ShowInTaskbar="False"
- Style="{DynamicResource DialogWindowStyle}"
- WindowStartupLocation="CenterOwner">
- <Window.Resources>
- <converters:eDoneDeliveryOrderStatusToVisibility x:Key="eDoneDeliveryOrderStatusConverter" />
- <converters:NumToGoodsIsEnabledConvert x:Key="countGoodsIsEnabledConvert" />
- <converters:NumToTicketIsEnabledConvert x:Key="countTicketIsEnabledConvert" />
- <converters:NumToGoodsIsCheckedConvert x:Key="countGoodsIsCheckedConvert" />
- <converters:NumToTicketIsCheckedConvert x:Key="countTicketIsCheckedConvert" />
- <converters:NumToButtonIsEnabledConvert x:Key="countButtonIsEnabledConvert" />
- <converters:pValue_hValue_countNumTicketsVsConverter x:Key="pValue_hValue_countNumTicketsVsConverter" />
- <converters:pValue_hValue_countNumGoodsVsConverter x:Key="pValue_hValue_countNumGoodsVsConverter" />
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="10"></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition Height="10"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="20"></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition Width="20"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" >
- <!--确认货-->
- <CheckBox x:Name="cbXh_Goods" Margin="0,10,0,0" IsChecked="{Binding countNum,Converter={StaticResource countGoodsIsCheckedConvert},Mode=OneWay}" HorizontalAlignment="Center" IsEnabled="{Binding countNum,Converter={StaticResource countGoodsIsEnabledConvert}}" VerticalAlignment="Center" Visibility="{Binding pValue_hValue_countNum, Converter={StaticResource pValue_hValue_countNumGoodsVsConverter}}" Content="{x:Static resource:Client_Resource.DryHoldDetailView_Confirm_Goods}" Style="{DynamicResource mtpCheckBoxStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Checked">
- <i:InvokeCommandAction Command="{Binding SelectGoodsCommand}"/>
- </i:EventTrigger>
- <i:EventTrigger EventName="Unchecked">
- <i:InvokeCommandAction Command="{Binding UnSelectGoodsCommand}"/>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </CheckBox>
- </StackPanel>
- <StackPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" >
- <!--确认票-->
- <CheckBox x:Name="cbXh_Ticket" Margin="0,20,0,0" IsChecked="{Binding countNum,Converter={StaticResource countTicketIsCheckedConvert},Mode=OneWay}" IsEnabled="{Binding countNum,Converter={StaticResource countTicketIsEnabledConvert}}" Visibility="{Binding pValue_hValue_countNum, Converter={StaticResource pValue_hValue_countNumTicketsVsConverter}}" VerticalAlignment="Center" Content="{x:Static resource:Client_Resource.DryHoldDetailView_Confirm_Ticket}" Style="{DynamicResource mtpCheckBoxStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Checked">
- <i:InvokeCommandAction Command="{Binding SelectTicketCommand}"/>
- </i:EventTrigger>
- <i:EventTrigger EventName="Unchecked">
- <i:InvokeCommandAction Command="{Binding UnSelectTicketCommand}"/>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </CheckBox>
- </StackPanel>
- <StackPanel Grid.Row="3"
- Grid.ColumnSpan="3"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button Width="82"
- Height="26"
- IsEnabled="{Binding countNum,Converter={StaticResource countTicketIsEnabledConvert}}"
- Command="{Binding ConfirmPayCommand}"
- CommandParameter="{Binding ElementName=ComfirmGoodsTicketsViewWindow}"
- Content="{x:Static resource:Client_Resource.Button_Confirm}"
- Style="{DynamicResource CommonButtonStyle}" />
- <Button Width="82"
- Height="26"
- Margin="60,0,0,0"
- Command="{Binding CancelCommand}"
- CommandParameter="{Binding ElementName=ComfirmGoodsTicketsViewWindow}"
- Content="{x:Static resource:Client_Resource.Button_Cancel}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- </Grid>
- </Window>
|