WinInsuerInfo.xaml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <fw:NChildWindow x:Class="Com.FirmLib.UI.Insuer.WinInsuerInfo"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:fw="http://schemas.FWind/xaml"
  7. xmlns:wpf="clr-namespace:FWindSoft.Wpf;assembly=FWindSoft.Wpf"
  8. xmlns:uc="clr-namespace:Com.FirmLib.UI.Common"
  9. xmlns:bllCommon="clr-namespace:Com.FirmLib.UI.BllCommon"
  10. mc:Ignorable="d" Title="保险商信息"
  11. d:DesignHeight="300" d:DesignWidth="500" Name="this" Height="{Binding Height,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UIElement}}"
  12. Width="{Binding ActualWidth,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ScrollContentPresenter}}" >
  13. <fw:NChildWindow.Resources>
  14. <wpf:BindingProxy x:Key="DATA" Data="{Binding}"></wpf:BindingProxy>
  15. </fw:NChildWindow.Resources>
  16. <fw:NChildWindow.AttachElement>
  17. <StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal" VerticalAlignment="Center">
  18. <Button Command="{Binding Data.Commands.SaveCommand,Source={StaticResource ResourceKey=DATA}}" Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.ButtonKey}}" BorderThickness="0" FontFamily="{DynamicResource ResourceKey={x:Static wpf:FontsUtil.AwesomeKey}}">
  19. <Button.Content>
  20. <StackPanel Orientation="Horizontal">
  21. <TextBlock Text="{wpf:FontIcon Icon=Save}" Width="30" FontSize="20"></TextBlock>
  22. <TextBlock Text="保存" VerticalAlignment="Center" Margin="-5,0,0,0"></TextBlock>
  23. </StackPanel>
  24. </Button.Content>
  25. </Button>
  26. </StackPanel>
  27. </fw:NChildWindow.AttachElement>
  28. <Grid Margin="5">
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="Auto"></RowDefinition>
  31. <RowDefinition></RowDefinition>
  32. </Grid.RowDefinitions>
  33. <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Vertical"
  34. VerticalAlignment="Center" HorizontalAlignment="Left" Width="200">
  35. <fw:TextBoxEditor Text="{Binding Name,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="5"
  36. Command="{x:Static bllCommon:EditCommands.SingleUpdate}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}" Tag="Name"></fw:TextBoxEditor>
  37. <fw:TextBoxEditor Text="{Binding Url,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="5"
  38. Command="{x:Static bllCommon:EditCommands.SingleUpdate}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}" Tag="Url" ></fw:TextBoxEditor>
  39. </StackPanel>
  40. <GroupBox Grid.Row="1" Grid.Column="0" Margin="0,10,0,10" Header="厂家提供保险服务的所有项目" Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.GroupBoxKey}}" >
  41. <Grid>
  42. <Grid.RowDefinitions>
  43. <RowDefinition Height="Auto"></RowDefinition>
  44. <RowDefinition ></RowDefinition>
  45. </Grid.RowDefinitions>
  46. <StackPanel HorizontalAlignment="Right">
  47. <Button Command="{Binding Commands.AddInsuracncePolicy}" Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.ButtonKey}}" Height="23" Margin="5" Content="新项目添加保单" />
  48. </StackPanel>
  49. <ListBox Grid.Row="1" ItemsSource="{Binding ProjectItems}" BorderThickness="0" Padding="-5,0,-5,0">
  50. <ListBox.ItemsPanel >
  51. <ItemsPanelTemplate>
  52. <WrapPanel Orientation="Horizontal" Width="{Binding Path=Width,RelativeSource={RelativeSource AncestorType=ListBox}}"/>
  53. </ItemsPanelTemplate>
  54. </ListBox.ItemsPanel>
  55. <ListBox.ItemContainerStyle>
  56. <Style TargetType="{x:Type ListBoxItem}">
  57. <Setter Property="Template">
  58. <Setter.Value>
  59. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  60. <Border BorderThickness="1" BorderBrush="Black" Margin="5" Padding="5" fw:MaskOptions.IsManualHide="true" fw:MaskOptions.IsShow="{Binding IsLoading}">
  61. <fw:MaskOptions.MaskTemplate>
  62. <ControlTemplate>
  63. <Border Background="Gray" Opacity="0.5">
  64. <ProgressBar VerticalAlignment="Center" Margin="5" IsIndeterminate="True"></ProgressBar>
  65. </Border>
  66. </ControlTemplate>
  67. </fw:MaskOptions.MaskTemplate>
  68. <Grid Width="150" Height="80" >
  69. <Grid.RowDefinitions>
  70. <RowDefinition></RowDefinition>
  71. <RowDefinition Height="Auto"></RowDefinition>
  72. </Grid.RowDefinitions>
  73. <StackPanel Orientation="Vertical" Grid.Row="0">
  74. <Grid>
  75. <TextBlock Margin="5,0,5,0" Name="TxtName" FontSize="20" Text="{Binding ProjectLocalName}"></TextBlock>
  76. <Button HorizontalAlignment="Right" VerticalAlignment="Center" Content="刷新" Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.LinkButtonKey}}" Command="{Binding Data.Commands.RefreshCommand,Source={StaticResource ResourceKey=DATA}}" CommandParameter="{Binding}" ></Button>
  77. </Grid>
  78. <StackPanel Orientation="Horizontal">
  79. <TextBlock Margin="5,0,5,0" Text="涉及的保单:" />
  80. <TextBlock Margin="5,0,5,0" x:Name="TXTN" Text="{Binding InsurancePolicyCount}" TextDecorations="Underline"/>
  81. <TextBlock Margin="5,0,5,0" Text="个" />
  82. </StackPanel>
  83. <StackPanel Orientation="Horizontal">
  84. <TextBlock Margin="5,0,5,0" Text="在保资产:" />
  85. <TextBlock Margin="5,0,5,0" Text="{Binding AssetCount}" TextDecorations="Underline"/>
  86. <TextBlock Margin="5,0,5,0" Text="个" />
  87. </StackPanel>
  88. </StackPanel>
  89. <Button Grid.Row="1" Grid.Column="0" x:Name="BTNU" HorizontalAlignment="Right" Content="进入项目" Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.LinkButtonKey}}" Command="{Binding Data.Commands.GoToProject,Source={StaticResource ResourceKey=DATA}}" CommandParameter="{Binding}" ></Button>
  90. </Grid>
  91. </Border>
  92. </ControlTemplate>
  93. </Setter.Value>
  94. </Setter>
  95. </Style>
  96. </ListBox.ItemContainerStyle>
  97. </ListBox>
  98. </Grid>
  99. </GroupBox>
  100. </Grid>
  101. </fw:NChildWindow>