ComfirmGoodsTicketsView.xaml 6.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <Window x:Class="Muchinfo.MTPClient.Delivery.Views.ComfirmGoodsTicketsView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:ignore="http://www.galasoft.ch/ignore"
  7. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  8. mc:Ignorable="d ignore"
  9. xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  10. xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
  11. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  12. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  13. x:Name="ComfirmGoodsTicketsViewWindow"
  14. Height="200"
  15. Width="300"
  16. Title="确认货票"
  17. MouseLeftButtonDown="drag_MouseLeftButtonDown"
  18. ShowInTaskbar="False"
  19. Style="{DynamicResource DialogWindowStyle}"
  20. WindowStartupLocation="CenterOwner">
  21. <Window.Resources>
  22. <converters:eDoneDeliveryOrderStatusToVisibility x:Key="eDoneDeliveryOrderStatusConverter" />
  23. <converters:NumToGoodsIsEnabledConvert x:Key="countGoodsIsEnabledConvert" />
  24. <converters:NumToTicketIsEnabledConvert x:Key="countTicketIsEnabledConvert" />
  25. <converters:NumToGoodsIsCheckedConvert x:Key="countGoodsIsCheckedConvert" />
  26. <converters:NumToTicketIsCheckedConvert x:Key="countTicketIsCheckedConvert" />
  27. <converters:NumToButtonIsEnabledConvert x:Key="countButtonIsEnabledConvert" />
  28. <converters:pValue_hValue_countNumTicketsVsConverter x:Key="pValue_hValue_countNumTicketsVsConverter" />
  29. <converters:pValue_hValue_countNumGoodsVsConverter x:Key="pValue_hValue_countNumGoodsVsConverter" />
  30. </Window.Resources>
  31. <Grid>
  32. <Grid.RowDefinitions>
  33. <RowDefinition Height="10"></RowDefinition>
  34. <RowDefinition Height="Auto"></RowDefinition>
  35. <RowDefinition Height="Auto"></RowDefinition>
  36. <RowDefinition></RowDefinition>
  37. <RowDefinition Height="10"></RowDefinition>
  38. </Grid.RowDefinitions>
  39. <Grid.ColumnDefinitions>
  40. <ColumnDefinition Width="20"></ColumnDefinition>
  41. <ColumnDefinition></ColumnDefinition>
  42. <ColumnDefinition></ColumnDefinition>
  43. <ColumnDefinition Width="20"></ColumnDefinition>
  44. </Grid.ColumnDefinitions>
  45. <StackPanel Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" >
  46. <!--确认货-->
  47. <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}">
  48. <i:Interaction.Triggers>
  49. <i:EventTrigger EventName="Checked">
  50. <i:InvokeCommandAction Command="{Binding SelectGoodsCommand}"/>
  51. </i:EventTrigger>
  52. <i:EventTrigger EventName="Unchecked">
  53. <i:InvokeCommandAction Command="{Binding UnSelectGoodsCommand}"/>
  54. </i:EventTrigger>
  55. </i:Interaction.Triggers>
  56. </CheckBox>
  57. </StackPanel>
  58. <StackPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" >
  59. <!--确认票-->
  60. <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}">
  61. <i:Interaction.Triggers>
  62. <i:EventTrigger EventName="Checked">
  63. <i:InvokeCommandAction Command="{Binding SelectTicketCommand}"/>
  64. </i:EventTrigger>
  65. <i:EventTrigger EventName="Unchecked">
  66. <i:InvokeCommandAction Command="{Binding UnSelectTicketCommand}"/>
  67. </i:EventTrigger>
  68. </i:Interaction.Triggers>
  69. </CheckBox>
  70. </StackPanel>
  71. <StackPanel Grid.Row="3"
  72. Grid.ColumnSpan="3"
  73. HorizontalAlignment="Center"
  74. VerticalAlignment="Center"
  75. Orientation="Horizontal">
  76. <Button Width="82"
  77. Height="26"
  78. IsEnabled="{Binding countNum,Converter={StaticResource countTicketIsEnabledConvert}}"
  79. Command="{Binding ConfirmPayCommand}"
  80. CommandParameter="{Binding ElementName=ComfirmGoodsTicketsViewWindow}"
  81. Content="{x:Static resource:Client_Resource.Button_Confirm}"
  82. Style="{DynamicResource CommonButtonStyle}" />
  83. <Button Width="82"
  84. Height="26"
  85. Margin="60,0,0,0"
  86. Command="{Binding CancelCommand}"
  87. CommandParameter="{Binding ElementName=ComfirmGoodsTicketsViewWindow}"
  88. Content="{x:Static resource:Client_Resource.Button_Cancel}"
  89. Style="{DynamicResource CommonButtonStyle}" />
  90. </StackPanel>
  91. </Grid>
  92. </Window>