| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- <Window x:Class="Muchinfo.MTPClient.Trade.Views.EntrustOrderView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:border="clr-namespace:Muchinfo.WPF.Controls.Border;assembly=Client.WPF.Controls"
- xmlns:controls="clr-namespace:Muchinfo.WPF.Controls;assembly=Client.WPF.Controls"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
- xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
- xmlns:resources="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:views="clr-namespace:Muchinfo.MTPClient.Trade.Views"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- xmlns:zoom="clr-namespace:Muchinfo.WPF.Controls.Zoom;assembly=Client.WPF.Controls"
- x:Name="openOrderWindow"
- Title="{Binding TradeViewModel.WinTitle,
- Mode=OneWay}"
- MinWidth="660"
- MinHeight="330"
- Closed="openOrderWindow_Closed"
- SizeToContent="Height"
- Style="{DynamicResource DialogWindowStyle}"
- WindowStartupLocation="CenterOwner">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SizeChanged">
- <i:InvokeCommandAction Command="{Binding SizeChangedCommand}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <Window.Resources>
- <converters:StringToVisibilityConverter x:Key="stringToVisibilityConverter" />
- <converters:RelationModeConverter x:Key="relationModeConverter" />
- <converters:RelationPModeConverter x:Key="relationPModeConverter" />
- <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
- <!-- 交割商品LIST -->
- <DataTemplate x:Key="deliveryGoodsInfoTemplate">
- <Grid Margin="2">
- <StackPanel Orientation="Horizontal">
- <StackPanel Margin="5,5">
- <StackPanel Height="25"
- Margin="0,5"
- Background="{DynamicResource AcountGridHeadBackground}">
- <TextBlock Margin="5,5,0,0"
- Foreground="{DynamicResource AcountGridHeadForeground}"
- TextWrapping="Wrap">
- <Run Text="{x:Static resources:Client_Resource.DeliveryOrderView_DeliveryGoods}" />
- <Run Text=":" />
- <Run Text="{Binding DeliveryGoodsNameDisplay, Mode=OneWay}" ToolTip="{Binding DeliveryGoodsNameCodeToolTip}" />
- </TextBlock>
- </StackPanel>
- <!-- 单位【仓单商品】 -->
- <TextBlock Margin="5,2" Foreground="{DynamicResource MainForegroundBrush}">
- <Run Text="{x:Static resources:Client_Resource.Moduel_Unit}" />
- <Run Text=":" />
- <Run Text="{Binding goodsUnitName}" />
- </TextBlock>
- <!-- 差价升贴水 -->
- <TextBlock Margin="5,2" Foreground="{DynamicResource MainForegroundBrush}">
- <Run Text="{x:Static resources:Client_Resource.DeliveryOrderView_DeliveryPriceMove}" />
- <Run Text=":" />
- <Run Text="{Binding Deliverypricemove}" />
- </TextBlock>
- <!--
- 品牌
- <TextBlock Margin="5,2" Foreground="{DynamicResource MainForegroundBrush}">
- <Run Text="{x:Static resources:Client_Resource.Moduel_Brand}"></Run>
- <Run Text=":"></Run>
- <Run Text="{Binding BrandList}"></Run>
- </TextBlock>
- -->
- <!--
- 等级
- <TextBlock Margin="5,2" Foreground="{DynamicResource MainForegroundBrush}">
- <Run Text="{x:Static resources:Client_Resource.Moduel_Level}"></Run>
- <Run Text=":"></Run>
- <Run Text="{Binding RankList}"></Run>
- </TextBlock>
- -->
- <!--
- 存储仓库
- <TextBlock Margin="5,2" Foreground="{DynamicResource MainForegroundBrush}">
- <Run Text="{x:Static resources:Client_Resource.DeliveryWarehouse_WareHouseId}"></Run>
- <Run Text=":"></Run>
- <Run Text="{Binding WarehouseList}"></Run>
- </TextBlock>
- -->
- <!-- 兑换系数 -->
- <TextBlock Margin="5,2" Foreground="{DynamicResource MainForegroundBrush}">
- <Run Text="{x:Static resources:Client_Resource.EntrustOrderView_Conversion}" />
- <Run Text=":" />
- <Run Text="{Binding Conversion}" />
- </TextBlock>
- <!-- 商品配比 -->
- <TextBlock Margin="5,2"
- Foreground="{DynamicResource MainForegroundBrush}"
- Visibility="{Binding RelationMode,
- Converter={StaticResource relationPModeConverter}}">
- <Run Text="{x:Static resources:Client_Resource.EntrustOrderView_GoodsScale}" />
- <Run Text=":" />
- <Run Text="{Binding GoodsScale}" />
- </TextBlock>
- <!--
- 合约单位
- <TextBlock Margin="5,2" Foreground="{DynamicResource MainForegroundBrush}">
- <Run Text="{x:Static resources:Client_Resource.Content_AgreeUnit}" />
- <Run Text=":" />
- <Run Text="{Binding AgreeUnit}" />
- <Run Text="{Binding goodsUnitName}" />
- </TextBlock>
- -->
- <!--
- 关联商品代号
- <TextBlock Margin="5,5"
- Foreground="{DynamicResource MainForegroundBrush}"
- Visibility="{Binding RelationGoodsCode,
- Converter={StaticResource stringToVisibilityConverter}}">
- <Run Text="{x:Static resources:Client_Resource.EntrustOrderView_RelationGoodsCode}" />
- <Run Text=":" />
- <Run Text="{Binding RelationGoodsCode}" />
- </TextBlock>
- -->
- <!-- 关联商品名称/代号 -->
- <TextBlock Margin="5,2"
- Foreground="{DynamicResource MainForegroundBrush}"
- Visibility="{Binding RelationGoodsName,
- Converter={StaticResource stringToVisibilityConverter}}">
- <Run Text="{x:Static resources:Client_Resource.EntrustOrderView_RelationGoodsName}" />
- <Run Text=":" />
- <Run Text="{Binding RelationGoodsNameCodeDisplay, Mode=OneWay}" ToolTip="{Binding RelationGoodsNameCodeDisplay}" />
- </TextBlock>
- </StackPanel>
- </StackPanel>
- </Grid>
- </DataTemplate>
- </Window.Resources>
- <!--
- <xctk:BusyIndicator BusyContent="{Binding BusyTips,
- Mode=OneWay}"
- Foreground="Black"
- IsBusy="{Binding IsBusy,
- Mode=OneWay}">
- -->
- <Grid x:Name="contentGrid">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition Width="30" />
- </Grid.ColumnDefinitions>
- <views:OrderContent Margin="35,24,0,0" Visibility="{Binding TradeViewModel.IsNormalModel, Converter={StaticResource BooleanToVisibilityConverter}}" />
- <views:SPSLView Margin="35,24,0,0"
- HorizontalAlignment="Center"
- Visibility="{Binding TradeViewModel.IsSPSLModel,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <CheckBox x:Name="IsPopupOpen"
- Grid.RowSpan="2"
- Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- IsChecked="{Binding IsChecked_IsPopupOpen}"
- Style="{DynamicResource OrderDeliveryCheckBoxStyle}"
- Visibility="{Binding IsVisibilityGoodsOfPAndX,
- Converter={StaticResource ToVisibilityConverter}}">
- <TextBlock Text="{x:Static resources:Client_Resource.EntrustOrderView_DeliveryGoodsInfo}" TextWrapping="Wrap" />
- </CheckBox>
- <Separator Grid.Row="1"
- Grid.ColumnSpan="2"
- Margin="20,5"
- VerticalAlignment="Top"
- BorderBrush="{DynamicResource DialogWindowSeparatorBottom}"
- Style="{DynamicResource ThinSeparatorStyle}"
- Visibility="{Binding ShowOkCancel,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <!-- 确定 -->
- <StackPanel Grid.Row="1"
- Grid.ColumnSpan="2"
- MinHeight="80"
- HorizontalAlignment="Center"
- Orientation="Horizontal"
- Visibility="{Binding ShowOkCancel,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <Button x:Name="btnOKCommand"
- Width="82"
- Height="26"
- Command="{Binding OKCommand}"
- CommandParameter="{Binding ElementName=openOrderWindow}"
- Content="{x:Static resources:Client_Resource.Button_Confirm}"
- IsEnabled="{Binding OKButtonEnabled}"
- Style="{DynamicResource CommonButtonStyle}"
- TabIndex="26" />
- <Button Width="82"
- Height="26"
- Margin="60,0,0,0"
- Command="{Binding CancelCommand}"
- CommandParameter="{Binding ElementName=openOrderWindow}"
- Content="{x:Static resources:Client_Resource.Button_Cancel}"
- Style="{DynamicResource CommonButtonStyle}"
- TabIndex="27" />
- </StackPanel>
- <Button Grid.Row="2"
- Grid.ColumnSpan="2"
- Margin="0,0,10,10"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Content="{x:Static resources:Client_Resource.EntrustOrderFrame_SetTrade}"
- Style="{DynamicResource TextButtonStyle}"
- Visibility="Collapsed" />
- <controls:PopubEx x:Name="DeliveryPopup"
- Width="270"
- AllowsTransparency="True"
- IsOpen="{Binding IsChecked_IsPopupOpen}"
- Placement="Custom"
- PlacementTarget="{Binding ElementName=openOrderWindow}">
- <Border BorderThickness="0">
- <Grid Background="{DynamicResource DialogWindowBackground}">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition MaxHeight="100" />
- <RowDefinition MaxHeight="120" />
- </Grid.RowDefinitions>
- <!--
- <TextBlock Margin="10,0,0,0"
- VerticalAlignment="Center"
- Foreground="{StaticResource TextBrush_Common}">
- <Run Text="{x:Static resources:Client_Resource.EntrustOrderView_DeliveryGoodsInfo_PropertyIs}" />
- <Run Text="{Binding PDeliveryGoodsName}" />
- <Run Text="{Binding BelowDeliveryInfoTips}" />
- </TextBlock>
- -->
- <ListBox x:Name="ListBox_DeliveryGoodsInfo"
- Grid.Row="1"
- Background="{DynamicResource DialogWindowBackground}"
- BorderThickness="0"
- ItemContainerStyle="{DynamicResource NoticeListBoxItemStyle}"
- ItemTemplate="{StaticResource deliveryGoodsInfoTemplate}"
- ItemsSource="{Binding GoodsOfPandXInfoList}"
- Visibility="{Binding PDeliveryGoodsName,
- Converter={StaticResource relationModeConverter}}" />
- <dataGrid:MuchinfoDataGrid x:Name="RelationPerformConfigDataGrid"
- Grid.Row="2"
- MaxHeight="100"
- Margin="12,5"
- HorizontalAlignment="Stretch"
- ItemsSource="{Binding RelationPerformConfigList,
- Mode=OneWay}"
- ScrollViewer.HorizontalScrollBarVisibility="Hidden"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- SelectionMode="Single"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <!-- N -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding Performday}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resources:Client_Resource.Content_N}" />
- <!-- 支付比例 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding PerformratioDisplay}"
- ElementStyle="{DynamicResource DataGridTextColumnStyle}"
- Header="{x:Static resources:Client_Resource.Content_PayPercent}" />
- </DataGrid.Columns>
- </dataGrid:MuchinfoDataGrid>
- <!-- 提示信息 -->
- <StackPanel Grid.Row="3"
- Margin="12,5"
- Orientation="Vertical">
- <Border BorderBrush="{DynamicResource AcountGridHeadForeground}" BorderThickness="0,1,0,0" />
- <TextBlock Margin="0,12,0,0"
- Foreground="{DynamicResource AcountGridHeadForeground}"
- Text="{x:Static resources:Client_Resource.EntrustOrderView_DeliveryRelationTips}"
- TextWrapping="Wrap" />
- <TextBlock Margin="0,12,0,0"
- Foreground="{DynamicResource AcountGridHeadForeground}"
- Text="{x:Static resources:Client_Resource.EntrustOrderView_DeliveryRelationGoodsScaleTips}"
- TextWrapping="Wrap"
- Visibility="{Binding IsVisibility_GoodsScale}" />
- </StackPanel>
- </Grid>
- </Border>
- </controls:PopubEx>
- </Grid>
- <!-- </xctk:BusyIndicator> -->
- </Window>
|