개정판 e78f0871
DataBaseItemsModel 기능 추가
Change-Id: Ifffa6189b54cd183d981a569340628f5bb8a41a2
ConvertService/ServiceBase/Markus.Service.StationController/Views/DataBaseView.xaml | ||
---|---|---|
9 | 9 |
xmlns:Data="clr-namespace:Markus.Service.StationController.Data" |
10 | 10 |
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
11 | 11 |
xmlns:local="clr-namespace:Markus.Service.StationController.Views" x:Class="Markus.Service.StationController.Views.DataBaseView" |
12 |
mc:Ignorable="d" Background="White" |
|
12 |
mc:Ignorable="d" Background="White" DataContext="{DynamicResource DataBaseItemsModel}"
|
|
13 | 13 |
d:DesignHeight="450" d:DesignWidth="800"> |
14 |
|
|
15 | 14 |
<UserControl.Resources> |
16 | 15 |
<Style TargetType="{x:Type telerik:GridViewHeaderCell}"> |
17 | 16 |
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
18 | 17 |
<Setter Property="Background" Value="Gray"/> |
19 | 18 |
</Style> |
19 |
<Style TargetType="{x:Type telerik:GridViewCell}"> |
|
20 |
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
|
21 |
</Style> |
|
22 |
<Style TargetType="{x:Type controls:RowIndexColumn}"> |
|
23 |
<Setter Property="TextAlignment" Value="Center"/> |
|
24 |
</Style> |
|
25 |
<VM:DataBaseItemsModel x:Key="DataBaseItemsModel"/> |
|
20 | 26 |
</UserControl.Resources> |
21 |
|
|
22 |
<UserControl.DataContext> |
|
27 |
<!--<UserControl.DataContext> |
|
23 | 28 |
<VM:DataBaseItemsModel/> |
24 |
</UserControl.DataContext> |
|
29 |
</UserControl.DataContext>-->
|
|
25 | 30 |
|
26 | 31 |
<i:Interaction.Triggers> |
27 | 32 |
<i:EventTrigger EventName="Loaded"> |
... | ... | |
47 | 52 |
<!--SelectedIndex 디폴트 값 ItemsSource콤보박스에 넣을 값 중 DisplayMemberPath 키와 값중 화면에 보여질거 선택 SelectedValuePath 콤보박스 아이템 선택하면 SelectedItem에 DisplayMember이 값나감--> |
48 | 53 |
<!--SelectedItem : object값 리턴--> |
49 | 54 |
<TextBlock Text="Status Type : " Margin="10,0,0,0" VerticalAlignment="Center"/> |
50 |
<telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}" |
|
55 |
<telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}" SelectedIndex="4"
|
|
51 | 56 |
DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/> |
52 | 57 |
<telerik:RadToggleButton Content=" 엑셀 저장 " Margin="10,0" Height="20" Command="{Binding DataSaveFileGemBoxCommand, Mode=OneWay}"/> |
53 | 58 |
</StackPanel> |
... | ... | |
71 | 76 |
<telerik:RadGridView.Columns> |
72 | 77 |
<controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" /> |
73 | 78 |
<telerik:GridViewDataColumn Header="Convert ID " |
74 |
DataMemberBinding="{Binding ConvertID}" MinWidth="180" MaxWidth="200" /> |
|
75 |
<telerik:GridViewDataColumn Header="MarkusLink " |
|
76 |
DataMemberBinding="{Binding MarkusLink}" MinWidth="180" MaxWidth="200" /> |
|
79 |
DataMemberBinding="{Binding ConvertID}" MinWidth="180" /> |
|
80 |
<telerik:GridViewDataColumn x:Name="commend" Header="MarkusLink " MinWidth="100"> |
|
81 |
<telerik:GridViewDataColumn.CellTemplate> |
|
82 |
<DataTemplate> |
|
83 |
<telerik:RadButton Content="Click " Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/> |
|
84 |
</DataTemplate> |
|
85 |
</telerik:GridViewDataColumn.CellTemplate> |
|
86 |
</telerik:GridViewDataColumn> |
|
77 | 87 |
<telerik:GridViewDataColumn Header="ProjectNO" |
78 |
DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" MaxWidth="70"/>
|
|
88 |
DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" /> |
|
79 | 89 |
|
80 | 90 |
<telerik:GridViewDataColumn Header="ConvertState" |
81 |
DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
|
|
91 |
DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" /> |
|
82 | 92 |
|
83 | 93 |
<telerik:GridViewDataColumn Header="CurrentPageNo" |
84 |
DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" MaxWidth="100"/>
|
|
94 |
DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" /> |
|
85 | 95 |
<telerik:GridViewDataColumn Header="TotalPage" |
86 |
DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
|
|
96 |
DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" /> |
|
87 | 97 |
<!--<telerik:GridViewDataColumn Header=" OriginfilePath" |
88 | 98 |
DataMemberBinding="{Binding OriginfilePath}" MinWidth="170"/>--> |
89 | 99 |
<telerik:GridViewDynamicHyperlinkColumn Header="원본파일" |
... | ... | |
98 | 108 |
</telerik:GridViewDynamicHyperlinkColumn> |
99 | 109 |
|
100 | 110 |
<telerik:GridViewDataColumn Header=" ConvertPath" |
101 |
DataMemberBinding="{Binding ConvertPath}" MinWidth="70" MaxWidth="90"/>
|
|
111 |
DataMemberBinding="{Binding ConvertPath}" MinWidth="70" /> |
|
102 | 112 |
<telerik:GridViewDataColumn Header="CreateTime" |
103 |
DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/>
|
|
113 |
DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" /> |
|
104 | 114 |
<telerik:GridViewDataColumn Header="Exception" |
105 | 115 |
DataMemberBinding="{Binding Exception}"/> |
106 | 116 |
<telerik:GridViewDataColumn Header="ProcessorAffinity" |
107 |
DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" MaxWidth="110"/>
|
|
117 |
DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" /> |
|
108 | 118 |
<telerik:GridViewDataColumn Header="ReConverter" |
109 |
DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" MaxWidth="90"/>
|
|
119 |
DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" /> |
|
110 | 120 |
<telerik:GridViewDataColumn Header="UniqueKey" |
111 |
DataMemberBinding="{Binding UniqueKey}" MinWidth="60" MaxWidth="80"/>
|
|
121 |
DataMemberBinding="{Binding UniqueKey}" MinWidth="60" /> |
|
112 | 122 |
|
113 | 123 |
<telerik:GridViewDataColumn Header="REVISION" |
114 | 124 |
DataMemberBinding="{Binding Revision}"/> |
... | ... | |
121 | 131 |
<telerik:GridViewDataColumn Header="Validation" |
122 | 132 |
DataMemberBinding="{Binding Validation}"/> |
123 | 133 |
<telerik:GridViewDataColumn Header="Service ID" |
124 |
DataMemberBinding="{Binding ServiceID}" MinWidth="250" MaxWidth="270"/>
|
|
134 |
DataMemberBinding="{Binding ServiceID}" MinWidth="250" /> |
|
125 | 135 |
</telerik:RadGridView.Columns> |
126 | 136 |
</telerik:RadGridView> |
127 | 137 |
</GroupBox> |
... | ... | |
129 | 139 |
<GroupBox Grid.Row="2" |
130 | 140 |
Header="Status 4 under Items" BorderThickness="0" |
131 | 141 |
ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"> |
132 |
<telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
|
142 |
<telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
|
133 | 143 |
ItemsSource="{Binding RealConvertSource}" |
134 | 144 |
SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}" |
135 | 145 |
AutoGenerateColumns="False" CanUserFreezeColumns="False" |
... | ... | |
146 | 156 |
<controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" /> |
147 | 157 |
|
148 | 158 |
<telerik:GridViewDataColumn Header="Convert ID " |
149 |
DataMemberBinding="{Binding ConvertID}" MinWidth="180" MaxWidth="200" /> |
|
150 |
<telerik:GridViewDataColumn Header="MarkusLink " |
|
151 |
DataMemberBinding="{Binding MarkusLink}" MinWidth="180" MaxWidth="200" /> |
|
159 |
DataMemberBinding="{Binding ConvertID}" MinWidth="180" /> |
|
160 |
|
|
161 |
<telerik:GridViewDataColumn Header="MarkusLink " MinWidth="100"> |
|
162 |
<telerik:GridViewDataColumn.CellTemplate> |
|
163 |
<DataTemplate> |
|
164 |
<!--<telerik:RadButton Content="Click " Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding ElementName=dataGrid2, Path=SelectedItems}"/>--> |
|
165 |
<telerik:RadButton Content="Click " Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/> |
|
166 |
</DataTemplate> |
|
167 |
</telerik:GridViewDataColumn.CellTemplate> |
|
168 |
</telerik:GridViewDataColumn> |
|
169 |
|
|
152 | 170 |
<telerik:GridViewDataColumn Header="ProjectNO" |
153 |
DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" MaxWidth="70"/>
|
|
171 |
DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" /> |
|
154 | 172 |
|
155 | 173 |
<telerik:GridViewDataColumn Header="ConvertState" |
156 |
DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
|
|
174 |
DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" /> |
|
157 | 175 |
|
158 | 176 |
<telerik:GridViewDataColumn Header="CurrentPageNo" |
159 |
DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" MaxWidth="100"/>
|
|
177 |
DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" /> |
|
160 | 178 |
<telerik:GridViewDataColumn Header="TotalPage" |
161 |
DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
|
|
179 |
DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" /> |
|
162 | 180 |
<!--<telerik:GridViewDataColumn Header=" OriginfilePath" |
163 | 181 |
DataMemberBinding="{Binding OriginfilePath}" MinWidth="170"/>--> |
164 | 182 |
<telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일" |
... | ... | |
172 | 190 |
</telerik:GridViewDynamicHyperlinkColumn.CellTemplate> |
173 | 191 |
</telerik:GridViewDynamicHyperlinkColumn> |
174 | 192 |
<telerik:GridViewDataColumn Header=" ConvertPath" |
175 |
DataMemberBinding="{Binding ConvertPath}" MinWidth="70" MaxWidth="90"/>
|
|
193 |
DataMemberBinding="{Binding ConvertPath}" MinWidth="70" /> |
|
176 | 194 |
<telerik:GridViewDataColumn Header="CreateTime" |
177 |
DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/>
|
|
195 |
DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" /> |
|
178 | 196 |
<telerik:GridViewDataColumn Header="Exception" |
179 | 197 |
DataMemberBinding="{Binding Exception}"/> |
180 | 198 |
<telerik:GridViewDataColumn Header="ProcessorAffinity" |
181 |
DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" MaxWidth="110"/>
|
|
199 |
DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" /> |
|
182 | 200 |
<telerik:GridViewDataColumn Header="ReConverter" |
183 |
DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" MaxWidth="90"/>
|
|
201 |
DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" /> |
|
184 | 202 |
<telerik:GridViewDataColumn Header="UniqueKey" |
185 |
DataMemberBinding="{Binding UniqueKey}" MinWidth="60" MaxWidth="80"/>
|
|
203 |
DataMemberBinding="{Binding UniqueKey}" MinWidth="60" /> |
|
186 | 204 |
|
187 | 205 |
<telerik:GridViewDataColumn Header="REVISION" |
188 | 206 |
DataMemberBinding="{Binding Revision}"/> |
... | ... | |
195 | 213 |
<telerik:GridViewDataColumn Header="Validation" |
196 | 214 |
DataMemberBinding="{Binding Validation}"/> |
197 | 215 |
<telerik:GridViewDataColumn Header="Service ID" |
198 |
DataMemberBinding="{Binding ServiceID}" MinWidth="250" MaxWidth="270"/>
|
|
216 |
DataMemberBinding="{Binding ServiceID}" MinWidth="250"/> |
|
199 | 217 |
</telerik:RadGridView.Columns> |
200 | 218 |
</telerik:RadGridView> |
201 | 219 |
</GroupBox> |
내보내기 Unified diff