개정판 df2e7646
DataNavigation 추가
PEMSS 기능 완료
Change-Id: I88374faf732cb66b4f9be60fbd457e2e7259bfb2
KCOM/Views/BiddersView.xaml | ||
---|---|---|
12 | 12 |
xmlns:Behaviors="clr-namespace:KCOM.Behaviors" |
13 | 13 |
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
14 | 14 |
xmlns:controls1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Data" |
15 |
mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="350" DataContext="{DynamicResource ViewModel}">
|
|
15 |
mc:Ignorable="d" d:DesignHeight="250" DataContext="{DynamicResource ViewModel}">
|
|
16 | 16 |
<UserControl.Resources> |
17 |
<convert:BiddersToKeyAndValueConvert x:Key="BiddersToKeyAndValueConvert"/> |
|
17 | 18 |
<viewmodel:BiddersViewModel x:Key="ViewModel"/> |
18 | 19 |
<convert:StringMultiLineConvert x:Key="StringMultiLineConvert"/> |
19 | 20 |
</UserControl.Resources> |
... | ... | |
25 | 26 |
<i:InvokeCommandAction Command="{Binding ClosingCommand}"/> |
26 | 27 |
</i:EventTrigger> |
27 | 28 |
</i:Interaction.Triggers> |
28 |
<Grid x:Name="grid" Margin="2">
|
|
29 |
<Grid>
|
|
29 | 30 |
<Grid.ColumnDefinitions> |
30 |
<ColumnDefinition Width="*"/> |
|
31 |
<ColumnDefinition Width="5.7*"/> |
|
32 |
<ColumnDefinition Width="Auto"/> |
|
33 |
<ColumnDefinition Width="Auto"/> |
|
31 | 34 |
</Grid.ColumnDefinitions> |
32 |
<Grid.RowDefinitions> |
|
33 |
<RowDefinition Height="Auto"/> |
|
34 |
<RowDefinition Height="Auto"/> |
|
35 |
<RowDefinition/> |
|
36 |
</Grid.RowDefinitions> |
|
37 |
<Grid HorizontalAlignment="Right" Visibility="Collapsed"> |
|
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="Fluent" |
|
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> |
|
38 | 108 |
<Grid.ColumnDefinitions> |
39 |
<ColumnDefinition/> |
|
40 |
<ColumnDefinition Width="4"/> |
|
41 |
<ColumnDefinition/> |
|
42 |
<ColumnDefinition Width="4"/> |
|
109 |
<ColumnDefinition Width="Auto"/> |
|
43 | 110 |
<ColumnDefinition/> |
44 | 111 |
</Grid.ColumnDefinitions> |
45 |
<WrapPanel Grid.Row="1" HorizontalAlignment="Left" Orientation="Horizontal"> |
|
46 |
<telerik:RadButton Content="추가" Background="#3d3d3d" Foreground="White" Margin="5,0" MinWidth="60" Command="{Binding AddVPCommentCommand}"/> |
|
47 |
<telerik:RadToggleButton Width="20" Height="20" Command="{Binding RefreshCommand}" Margin="3"> |
|
48 |
<Image Stretch="Fill" Source="/KCOM;component/Resources/Images/MenuImage/Refresh.png"/> |
|
49 |
</telerik:RadToggleButton> |
|
50 |
|
|
51 |
<telerik:RadToggleButton Width="15" Height="15" Command="{Binding RefreshCommand}"> |
|
52 |
<Image Stretch="Fill" Source="/KCOM;component/Resources/Images/MenuImage/Refresh.png"/> |
|
53 |
</telerik:RadToggleButton> |
|
54 |
<telerik:RadGridView> |
|
55 |
|
|
56 |
</telerik:RadGridView> |
|
57 |
</WrapPanel> |
|
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> |
|
58 | 176 |
</Grid> |
59 |
|
|
60 | 177 |
</Grid> |
61 | 178 |
</UserControl> |
내보내기 Unified diff