WinInsuerContractInfo.xaml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <windows:WinBase
  2. x:Class="SAGA.MBI.WinView.ModeInfoMaintenance.WinInsuerContractInfo"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:userControl="clr-namespace:SAGA.DotNetUtils.WPF.UserControl;assembly=SAGA.DotNetUtils"
  8. xmlns:converter="clr-namespace:SAGA.DotNetUtils.WPF.Converter;assembly=SAGA.DotNetUtils"
  9. xmlns:windows="clr-namespace:SAGA.RevitUtils.Windows;assembly=SAGA.RevitUtils"
  10. xmlns:controls="http://schemas.FWind/xaml"
  11. WindowStartupLocation="CenterScreen"
  12. mc:Ignorable="d" Title="维护保险公司保单相关信息"
  13. Height="460" Width="350">
  14. <Window.Resources>
  15. <converter:StringToImageConverter x:Key="StringToImageConverter"/>
  16. </Window.Resources>
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="60"></RowDefinition>
  20. <RowDefinition Height="*"></RowDefinition>
  21. <RowDefinition Height="60"></RowDefinition>
  22. </Grid.RowDefinitions>
  23. <Grid Grid.Row="0">
  24. <Grid.RowDefinitions>
  25. <RowDefinition Height="*"></RowDefinition>
  26. <RowDefinition Height="2"></RowDefinition>
  27. </Grid.RowDefinitions>
  28. <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
  29. Text="{Binding InsurerInfo}" TextWrapping="WrapWithOverflow"></TextBlock>
  30. <Border Grid.Row="1" VerticalAlignment="Top" BorderThickness="1" BorderBrush="Silver" Height="1" Margin="5,0"></Border>
  31. </Grid>
  32. <Grid Grid.Row="1">
  33. <Grid.RowDefinitions>
  34. <RowDefinition Height="60"></RowDefinition>
  35. <RowDefinition Height="*"></RowDefinition>
  36. <RowDefinition Height="60"></RowDefinition>
  37. </Grid.RowDefinitions>
  38. <StackPanel Grid.Row="0" HorizontalAlignment="Left" Margin="20,0,20,10" VerticalAlignment="Bottom">
  39. <Label Content="保单号:"></Label>
  40. <TextBox Width="290" Height="24" VerticalContentAlignment="Center" controls:TextWatermark.UseWatermark="True" controls:TextWatermark.ShowInfo="输入保单号"
  41. Text="{Binding Path=ContractNO,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
  42. </StackPanel>
  43. <GroupBox Grid.Row="1" Header="从已有保单号中选择" Margin="20,0">
  44. <ListBox ItemsSource="{Binding Path=Contracts}"
  45. SelectedItem="{Binding Path=CurrentContract}"
  46. DisplayMemberPath="ContractNO">
  47. </ListBox>
  48. </GroupBox>
  49. <StackPanel Grid.Row="2" HorizontalAlignment="Left" Margin="20,0,20,10" VerticalAlignment="Bottom">
  50. <Label Content="保险文件:"></Label>
  51. <userControl:SelectFile_Hyperlink Width="290" Height="26"
  52. VerticalContentAlignment="Center" HorizontalAlignment="Left"
  53. Text="{Binding Path=File,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  54. BtnImage="{Binding Path=BtnImagePath,Converter={StaticResource StringToImageConverter}}"
  55. Tag="{Binding FilePath,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></userControl:SelectFile_Hyperlink>
  56. </StackPanel>
  57. </Grid>
  58. <Grid Grid.Row="2">
  59. <Button Width="100" Height="24" Content="确定" IsDefault="True"
  60. Command="{Binding Path=Commands.Save}"
  61. CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}}"></Button>
  62. </Grid>
  63. </Grid>
  64. </windows:WinBase>