프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM / Views / BiddersView.xaml @ 37bd9e47

이력 | 보기 | 이력해설 | 다운로드 (12.6 KB)

1
<UserControl x:Name="userControl" x:Class="KCOM.Views.BiddersView"
2
          xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
3
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
7
        xmlns:local="clr-namespace:KCOM.Controls" FontSize="12"
8
        xmlns:behavior="clr-namespace:KCOM.Behaviors"
9
        xmlns:viewmodel="clr-namespace:KCOM.ViewModel"
10
        xmlns:controls ="clr-namespace:KCOM.Controls"
11
        xmlns:convert="clr-namespace:KCOM.Converters"
12
        xmlns:Behaviors="clr-namespace:KCOM.Behaviors"
13
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
14
             xmlns:controls1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Data"
15
             mc:Ignorable="d" d:DesignHeight="250"  DataContext="{DynamicResource ViewModel}">
16
    <UserControl.Resources>
17
        <convert:BiddersToKeyAndValueConvert x:Key="BiddersToKeyAndValueConvert"/>
18
        <viewmodel:BiddersViewModel x:Key="ViewModel"/>
19
        <convert:StringMultiLineConvert x:Key="StringMultiLineConvert"/>
20
    </UserControl.Resources>
21
    <i:Interaction.Triggers>
22
        <i:EventTrigger  EventName="Loaded">
23
            <i:InvokeCommandAction Command="{Binding LoadedCommand}"/>
24
        </i:EventTrigger>
25
        <i:EventTrigger  EventName="Unloaded">
26
            <i:InvokeCommandAction Command="{Binding ClosingCommand}"/>
27
        </i:EventTrigger>
28
    </i:Interaction.Triggers>
29
    <Grid>
30
        <Grid.ColumnDefinitions>
31
            <ColumnDefinition Width="5.7*"/>
32
            <ColumnDefinition Width="Auto"/>
33
            <ColumnDefinition Width="Auto"/>
34
        </Grid.ColumnDefinitions>
35
        <Grid Background="White">
36
            <Grid.RowDefinitions>
37
                <RowDefinition Height="Auto"/>
38
                <RowDefinition/>
39
            </Grid.RowDefinitions>
40
            <!--<telerik:RadGridView telerik:StyleManager.Theme="Office2016" AutoGenerateColumns="False" ItemsSource="{Binding RequirementList}" ShowGroupPanel="False"
41
                              CanUserFreezeColumns="False" x:Name="Gridview" SelectedItem="{Binding SelectRequirement}"
42
                              RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
43
                              IsExpandedBinding="{Binding IsExpanded,Mode=TwoWay}" IsExpandableBinding="{Binding IsExpandable, Mode=TwoWay}"
44
                             GridLinesVisibility="Horizontal" HorizontalGridLinesBrush="Orange">
45
                    <i:Interaction.Behaviors>
46
                        <Behaviors:ColumnFilterBehavior DefaultOperator="Contains"/>
47
                    </i:Interaction.Behaviors>
48
                    <telerik:RadGridView.Columns>
49
                        <telerik:GridViewDataColumn Header="Commant" IsReadOnly="True" IsFilterable="True"
50
                                            TextAlignment="Left" TextWrapping="WrapWithOverflow"
51
                                            DataMemberBinding="{Binding mdText,Converter={StaticResource StringMultiLineConvert}}">
52
                        </telerik:GridViewDataColumn>
53
                    </telerik:RadGridView.Columns>
54
                </telerik:RadGridView>-->
55
            <Grid>
56
                <Grid.ColumnDefinitions>
57
                    <ColumnDefinition Width="2*"/>
58
                    <ColumnDefinition Width="10"/>
59
                    <ColumnDefinition Width="6*"/>
60
                    <ColumnDefinition Width="10"/>
61
                    <ColumnDefinition Width="2*"/>
62
                </Grid.ColumnDefinitions>
63
                <Grid.RowDefinitions>
64
                    <RowDefinition Height="Auto"/>
65
                    <RowDefinition Height="Auto"/>
66
                </Grid.RowDefinitions>
67
                <controls:DataNavigation HorizontalAlignment="Center" Grid.Column="2"
68
                                         ItemSource="{Binding BiddersList,Mode=TwoWay}"
69
                                         CurrentItem="{Binding SelectBidders,Mode=TwoWay}"/>
70
                <telerik:RadToggleButton Content="전체 보기" Width="60" Grid.Column="4" Margin="5"
71
                                         Command="{Binding BiddersSearchCommand, Source={StaticResource ViewModel}}"/>
72
                <Line Grid.Row="1" Grid.ColumnSpan="5" Fill="#FFB9B9B9" Margin="5,0" X1="0" X2="1" Y1="1" Stretch="Fill"  Y2="1" Stroke="#FFB0B0B0"/>
73
            </Grid>
74
            <telerik:RadGridView Margin="3,3,3,3" AutoGenerateColumns="False"  telerik:StyleManager.Theme="Office2016"
75
                             GridLinesVisibility="Both"  ShowColumnHeaders="False"
76
                             GroupRenderMode="Flat" CanUserFreezeColumns="False"
77
                             CanUserReorderColumns="False" VerticalAlignment="Top" HorizontalAlignment="Left"
78
                             CanUserSelect="False" SelectionMode="Single" SelectionUnit="Cell"
79
                            RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
80
                            ItemsSource="{Binding SelectBidders, Converter={StaticResource BiddersToKeyAndValueConvert}}"
81
                            ShowGroupPanel="False" Grid.Row="1">
82
                <telerik:RadGridView.Columns>
83
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Key}" Background="#FFF1F1F1" HeaderTextAlignment="Center"  Width="Auto" IsFilterable="False" IsReadOnly="True"
84
                                                                                                        Header="Key" >
85
                        <telerik:GridViewDataColumn.CellStyle>
86
                            <Style TargetType="telerik:GridViewCell">
87
                                <Setter Property="Padding" Value="30,0"/>
88
                            </Style>
89
                        </telerik:GridViewDataColumn.CellStyle>
90
                    </telerik:GridViewDataColumn>
91
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Value}" HeaderTextAlignment="Center"  Width="*" IsFilterable="False" IsReadOnly="True"
92
                                                                                                        Header="Value" >
93
                        <telerik:GridViewDataColumn.CellStyle>
94
                            <Style TargetType="telerik:GridViewCell">
95
                                <Setter Property="Padding" Value="5,0"/>
96
                            </Style>
97
                        </telerik:GridViewDataColumn.CellStyle>
98
                    </telerik:GridViewDataColumn>
99
                </telerik:RadGridView.Columns>
100

    
101
            </telerik:RadGridView>
102
        </Grid>
103
        <Grid Grid.Column="1">
104
            <Grid.RowDefinitions>
105
                <RowDefinition Height="Auto"/>
106
                <RowDefinition  Height="*"/>
107
            </Grid.RowDefinitions>
108
            <Grid.ColumnDefinitions>
109
                <ColumnDefinition Width="Auto"/>
110
                <ColumnDefinition/>
111
            </Grid.ColumnDefinitions>
112
            <Line HorizontalAlignment="Center"  Grid.RowSpan="4" Fill="#FFB9B9B9" Margin="2,5" X1="1" X2="1" Y1="0"  Y2="1"  Stretch="Fill" Stroke="#FFB0B0B0"/>
113
            <StackPanel Grid.Column="1">
114
                <telerik:RadPathButton Width="100" HorizontalAlignment="Left" Content="연결 추가" FontSize="12" Grid.ColumnSpan="2" Margin="15,2,2,2"
115
                                                Command="{Binding AddVPCommentCommand, Source={StaticResource ViewModel}}"
116
                                                ContentPlacement="Left" telerik:StyleManager.Theme="Office2016"
117
                                                CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=telerik:GridViewRow}}"
118
                                                PathGeometry="m4,7l0,2l3,0l0,3l2,0l0,-3l3,0l0,-2l-3,0l0,-3l-2,0l0,3l-3,0zm4,9c-4.41828,0 -8,-3.58172 -8,-8c0,-4.41828 3.58172,-8 8,-8c4.41828,0 8,3.58172 8,8c0,4.41828 -3.58172,8 -8,8zm0,0" >
119
                    <telerik:RadPathButton.PathStyle>
120
                        <Style TargetType="Path">
121
                            <Setter Property="Width" Value="18"/>
122
                            <Setter Property="Height" Value="18"/>
123
                            <Setter Property="Fill" Value="#FF0A93E2" />
124
                            <Setter Property="Stretch" Value="Fill" />
125
                            <Setter Property="HorizontalAlignment" Value="Right" />
126
                            <Setter Property="VerticalAlignment" Value="Center" />
127
                        </Style>
128

    
129
                    </telerik:RadPathButton.PathStyle>
130
                </telerik:RadPathButton>
131
            </StackPanel>
132
            <telerik:RadGridView x:Name="DetailGridView" GroupRenderMode="Flat" Grid.Row="1"
133
                                                                                BorderThickness="1" Grid.Column="1" telerik:StyleManager.Theme="Office2016"
134
                                                                                GridLinesVisibility="Both" RowIndicatorVisibility="Collapsed" Margin="2,0"
135
                                        ScrollViewer.VerticalScrollBarVisibility="Auto" Width="562"
136
                                        ScrollViewer.HorizontalScrollBarVisibility="Hidden"  ColumnWidth="Auto"
137
                                                                                CanUserFreezeColumns="False" HorizontalGridLinesBrush="#FFB0AFAF"
138
                                                                                AutoGenerateColumns="False" behavior:GridViewAutoWidthBehavior.IsEnabled="True"
139
                                                                                ItemsSource="{Binding SelectBidders.VpComments}"
140
                                        HorizontalAlignment="Left" Height="Auto"
141
                                                                                ShowGroupPanel="False" SelectedItem="{Binding SelectVPComment, Source={StaticResource ViewModel}}"
142
                                                                                IsReadOnly="True" VerticalAlignment="Top">
143
                <i:Interaction.Triggers>
144
                    <i:EventTrigger  EventName="SelectionChanged">
145
                        <i:InvokeCommandAction Command="{Binding SelectedVPCommentCommand, Source={StaticResource ViewModel}}"/>
146
                    </i:EventTrigger>
147
                </i:Interaction.Triggers>
148
                <telerik:RadGridView.Columns>
149
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding createdByName}" HeaderTextAlignment="Center"  Width="120" IsFilterable="False" IsReadOnly="True"
150
                                                                                                        Header="Create User" />
151
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding comment}" HeaderTextAlignment="Center" Width="*" TextAlignment="Left" IsReadOnly="True" TextTrimming="CharacterEllipsis" IsFilterable="False" 
152
                                                                                                        Header="Comment" />
153
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding condition,Mode=TwoWay}" HeaderTextAlignment="Center" Header="Condition" Width="90"  IsReadOnly="True">
154
                        <telerik:GridViewDataColumn.CellStyle>
155
                            <Style TargetType="telerik:GridViewCell">
156
                                <Setter Property="VerticalContentAlignment" Value="Center"/>
157
                                <Setter Property="HorizontalContentAlignment" Value="Center"/>
158
                                <Setter Property="Margin" Value="0"/>
159
                                <Setter Property="Padding" Value="0"/>
160
                            </Style>
161
                        </telerik:GridViewDataColumn.CellStyle>
162
                    </telerik:GridViewDataColumn>
163
                    <telerik:GridViewDataColumn Width="64" Header="연결 제거" IsFilterable="False" IsReadOnly="True">
164
                        <telerik:GridViewDataColumn.CellTemplate>
165
                            <DataTemplate>
166
                                <telerik:RadPathButton ToolTip="Delete Comment" Height="22" Width="22"
167
                                                Command="{Binding DelVPCommentCommand, Source={StaticResource ViewModel}}"
168
                                                CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=telerik:GridViewRow}}" Background="{x:Null}" BorderBrush="{x:Null}"
169
                                                PathGeometry="M108.319,108.319c-2.106,2.107-5.523,2.106-7.632-0.001l-0.003-0.003L70.159,77.79L39.63,108.318   c-2.106,2.108-5.523,2.107-7.634,0c-2.104-2.106-2.105-5.523,0-7.633l30.528-30.528l-30.54-30.541   c-2.106-2.104-2.106-5.521,0-7.631c2.105-2.107,5.522-2.107,7.633-0.001l30.541,30.541l30.528-30.527   c2.105-2.105,5.523-2.105,7.633,0c2.109,2.106,2.107,5.524,0,7.633L77.791,70.157l30.527,30.528   C110.427,102.794,110.427,106.212,108.319,108.319 M119.767,119.767c27.396-27.397,27.396-71.818,0-99.217   C92.37-6.849,47.947-6.85,20.547,20.548c-27.397,27.398-27.396,71.819,0.001,99.22C47.947,147.166,92.368,147.165,119.767,119.767">
170
                                </telerik:RadPathButton>
171
                            </DataTemplate>
172
                        </telerik:GridViewDataColumn.CellTemplate>
173
                    </telerik:GridViewDataColumn>
174
                </telerik:RadGridView.Columns>
175
            </telerik:RadGridView>
176
        </Grid>
177
    </Grid>
178
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)