| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- <UserControl x:Class="Muchinfo.MTPClient.Delivery.Views.DryHoldDetailView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:controls="clr-namespace:Muchinfo.WPF.Controls;assembly=Client.WPF.Controls"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
- xmlns:dataPager="clr-namespace:Muchinfo.DataPager;assembly=Client.DataPager"
- xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- x:Name="DryHoldDetailViewWindow"
- DataContext="{Binding DeliveryHolder,
- Source={StaticResource Locator}}"
- mc:Ignorable="d">
- <UserControl.Resources>
- <converters:eDoneDeliveryOrderStatusToVisibility x:Key="eDoneDeliveryOrderStatusConverter" />
- <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
- <converters:eDoneDeliveryOrderAppealToEnable x:Key="statusToAppealIsEnabled" />
- <converters:NumToGoodsIsEnabledConvert x:Key="countGoodsIsEnabledConvert" />
- <converters:NumToTicketIsEnabledConvert x:Key="countTicketIsEnabledConvert" />
- <converters:NumToButtonIsEnabledConvert x:Key="countButtonIsEnabledConvert" />
- </UserControl.Resources>
- <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Margin="0,4" Orientation="Horizontal">
- <TextBlock Margin="10,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource TextBlockForeground}"
- Text="{x:Static resource:Client_Resource.Content_Date}" />
- <DatePicker Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- SelectedDate="{Binding StartTime,
- Mode=TwoWay}"
- TabIndex="7">
- <DatePicker.Resources>
- <Style TargetType="DatePickerTextBox">
- <Setter Property="IsReadOnly" Value="True" />
- <Setter Property="IsEnabled" Value="False" />
- </Style>
- </DatePicker.Resources>
- </DatePicker>
- <TextBlock Margin="5,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource TextBlockForeground}"
- Text="{x:Static resource:Client_Resource.Content_To}" />
- <DatePicker Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- SelectedDate="{Binding EndTime,
- Mode=TwoWay}"
- TabIndex="7">
- <DatePicker.Resources>
- <Style TargetType="DatePickerTextBox">
- <Setter Property="IsReadOnly" Value="True" />
- <Setter Property="IsEnabled" Value="False" />
- </Style>
- </DatePicker.Resources>
- </DatePicker>
- <Button Width="70"
- Height="26"
- Margin="10,0"
- VerticalAlignment="Center"
- Command="{Binding RefreshCommand}"
- Content="{x:Static resource:Client_Resource.Button_Search}"
- Style="{DynamicResource CommonButtonStyle}" />
- <Button Width="70"
- Height="26"
- Margin="0,0"
- VerticalAlignment="Center"
- Command="{Binding ResetCommand}"
- Content="{x:Static resource:Client_Resource.InputTradePassWordView_Reset}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- <dataGrid:MuchinfoDataGrid x:Name="DeliveryDataGrid"
- Grid.Row="1"
- ItemsSource="{Binding ItemOrders}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- SelectedItem="{Binding SelectEntrustOrder}"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding AccountID}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Report_TaAccount}" />
- <!-- 交割单号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding DeliveryId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_holderNumber}" />
- <!-- 仓单商品 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding DeliveryGoodsNameDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.NDeliveryOrderView_WarehouseGoods}" />
- <!-- 交割数量 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="130"
- Binding="{Binding DeliveryQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_holderQty}" />
- <!--
- 交割均价
-
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryPrice}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_holderPrice}" />
- -->
- <!-- 交割总货款 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryTotalAmount}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_DeliveryTotalGoodsAmount}" />
- <!--
- 差价款
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding PriceMoveAmount}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryOrderView_FreezePriceMoveMoney}" />
- -->
- <!--
- 升贴水
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryPriceMoveAmount}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_PriceMove}" />
- -->
- <!--
- 交割总金额
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryTotalAmount}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_DeliveryTotalAmount}" />
- -->
- <!-- 交割税款 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding Tax}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DeliveryTax}" />
- -->
- <!--
- 手续费
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryCharge}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_Charge}" />
- -->
- <!-- 交割时间 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding DeliveryTime,
- StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_Time}" />
- <!--
- 交割结算盈亏=(最新价-持仓价)【交割算法:最新价-时才有此字段】
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryBalancePL}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_BalancePL}" />
- -->
- <!--
- 履约截止时间
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding ContractTimeDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_ContractTime}" />
- -->
- <!--
- 申报单号
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding BuyOrderId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_BuyOrderId}" />
- -->
- <!--
- 关联仓单号
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding WRCodeGroupDisplay}"
- CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_RelationWRCode}" />
- -->
- <!-- 状态 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryStatusDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_State}" />
- <!-- 操作 -->
- <DataGridTemplateColumn>
- <DataGridTemplateColumn.Header>
- <TextBlock Text="{x:Static resource:Client_Resource.Content_Operation}" />
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <!-- 查看详细 -->
- <Button Height="20"
- Margin="10,0,0,0"
- Command="{Binding Path=DataContext.SeeMoreDetailCommand,
- RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorLevel=3,
- AncestorType={x:Type Grid}}}"
- CommandParameter="{Binding Path=SelectedItem,
- ElementName=DeliveryDataGrid}"
- Content="{x:Static resource:Client_Resource.Content_SeeMoreDetail}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}" />
- <!-- 确认货票 (暂时屏蔽)MTP2.0
- <StackPanel Visibility="{Binding IsNeedComfrim, Converter={StaticResource BooleanToVisibilityConverter}}">
- <Button Height="20"
- Margin="10,0,0,0"
- Command="{Binding Path=DataContext.ComfirmGoodsTicketsCommand,
- RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorLevel=3,
- AncestorType={x:Type Grid}}}"
- CommandParameter="{Binding }"
- Content="{Binding ConfirmRemark}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}" />
- </StackPanel>-->
- <!-- 申诉 (暂时屏蔽) -->
- <!--
- <Button Margin="10,0,0,0"
- Command="{Binding Path=DataContext.AppealCommand,
- RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorLevel=3,
- AncestorType={x:Type Grid}}}"
- CommandParameter="{Binding Path=SelectedItem,ElementName=DeliveryDataGrid}"
- Padding="10,2"
- Height="20"
- IsEnabled="{Binding DeliveryStatus_ContractTime, Converter={StaticResource statusToAppealIsEnabled}}"
- Visibility="{Binding DeliveryStatus_ContractTime, Converter={StaticResource eDoneDeliveryOrderStatusConverter}}"
- Content="{x:Static resource:Client_Resource.Content_Appeal}"
- Style="{DynamicResource ButtonWithBorderStyle}" />
- -->
- <!--
- 确认货
- <CheckBox x:Name="cbXh_Goods" IsEnabled="{Binding pValue_hValue_countNum,Converter={StaticResource countGoodsIsEnabledConvert}}" Visibility="{Binding DeliveryStatus, Converter={StaticResource eDoneDeliveryOrderStatusConverter}}" VerticalAlignment="Center" Content="{x:Static resource:Client_Resource.DryHoldDetailView_Confirm_Goods}" IsChecked="{Binding IsGoodsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource mtpCheckBoxStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Checked">
- <i:InvokeCommandAction Command="{Binding DataContext.SelectGoodsCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding IsChecked, ElementName=cbXh_Goods}"/>
- </i:EventTrigger>
- <i:EventTrigger EventName="Unchecked">
- <i:InvokeCommandAction Command="{Binding DataContext.UnSelectGoodsCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding IsChecked, ElementName=cbXh_Goods}"/>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </CheckBox>
- -->
- <!--
- 确认票
- <CheckBox x:Name="cbXh_Ticket" IsEnabled="{Binding pValue_hValue_countNum,Converter={StaticResource countTicketIsEnabledConvert}}" Visibility="{Binding DeliveryStatus, Converter={StaticResource eDoneDeliveryOrderStatusConverter}}" Margin="10,0,0,0" VerticalAlignment="Center" Content="{x:Static resource:Client_Resource.DryHoldDetailView_Confirm_Ticket}" IsChecked="{Binding IsTicketSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource mtpCheckBoxStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Checked">
- <i:InvokeCommandAction Command="{Binding DataContext.SelectTicketCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding IsChecked, ElementName=cbXh_Ticket}"/>
- </i:EventTrigger>
- <i:EventTrigger EventName="Unchecked">
- <i:InvokeCommandAction Command="{Binding DataContext.UnSelectTicketCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding IsChecked, ElementName=cbXh_Ticket}"/>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </CheckBox>
- -->
- <!--
- <Button Margin="10,0,0,0" IsEnabled="{Binding pValue_hValue_countNum,Converter={StaticResource countButtonIsEnabledConvert}}" Visibility="{Binding DeliveryStatus, Converter={StaticResource eDoneDeliveryOrderStatusConverter}}"
- Command="{Binding Path=DataContext.ConfirmPayCommand,
- RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorLevel=3,
- AncestorType={x:Type Grid}}}"
- CommandParameter="{Binding Path=SelectedItem,ElementName=DeliveryDataGrid}"
- Padding="5,2,5,0"
- Content="{x:Static resource:Client_Resource.Content_ConfirmPay}"
- Style="{DynamicResource ButtonWithBorderStyle}" />
- -->
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding RefreshCommand}"
- Header="{x:Static resource:Client_Resource.Button_Refresh}"
- IsEnabled="True"
- Style="{DynamicResource CommonMenuItem}" />
- </ContextMenu>
- </DataGrid.ContextMenu>
- </dataGrid:MuchinfoDataGrid>
-
- </Grid>
- </xctk:BusyIndicator>
- </UserControl>
|