프로젝트

일반

사용자정보

개정판 344ac7ed

ID344ac7ed43b85ffde126d9e6fe21752cc0a1bb72
상위 b119eeaa
하위 d04e8ee9, 8c7d1ea1

alzkakdixm 이(가) 약 5년 전에 추가함

ConvertDatabase 수정

Change-Id: I0344c54e8f7776ac577c77ec6a3e37428489d87f

차이점 보기:

ConvertService/ServiceBase/Markus.Service.StationController/Views/DataBaseView.xaml
29 29
            <Setter Property="TextAlignment" Value="Center"/>
30 30
        </Style>
31 31
        <VM:DataBaseItemsModel x:Key="DataBaseItemsModel"/>
32
        <DataTemplate x:Key="RowDetailsTemplate">
33
            <local:DataBaseViewInfo />
34
        </DataTemplate>
32 35
    </UserControl.Resources>
33 36
    <!--<UserControl.DataContext>
34 37
        <VM:DataBaseItemsModel/>
35 38
    </UserControl.DataContext>-->
36

  
37 39
    <i:Interaction.Triggers>
38 40
        <i:EventTrigger  EventName="Loaded">
39 41
            <i:InvokeCommandAction Command="{Binding LoadedCommand}"/>
......
42 44
            <i:InvokeCommandAction Command="{Binding ClosingCommand}"/>
43 45
        </i:EventTrigger>
44 46
    </i:Interaction.Triggers>
45

  
46
    <Grid HorizontalAlignment="Left">
47
    <Grid HorizontalAlignment="Left" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" >
47 48
        <Grid.RowDefinitions>
48 49
            <RowDefinition Height="Auto"/>
49
            <RowDefinition Height="*"/>
50
            <RowDefinition Height="*"/>
51
            <RowDefinition Height="*"/>
52
            <RowDefinition Height="100"/>
50
            <RowDefinition Height="Auto"/>
51
            <RowDefinition Height="Auto"/>
52
            <RowDefinition Height="Auto"/>
53 53
        </Grid.RowDefinitions>
54 54
        <StackPanel Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0"  Height="20" >
55 55
            <TextBlock Text="Display Count : " VerticalAlignment="Center"/>
56 56
            <telerik:RadComboBox x:Name="ComboCount" Width="100" SelectedItem="{Binding SelectedCount, Mode=TwoWay}" Margin="0,0,10,0" SelectedValuePath="DisplayMember"
57 57
              DisplayMemberPath="ValueMember" ItemsSource="{Binding SelectedCountList}" SelectedIndex="0" />
58
            <!--SelectedIndex 디폴트 값 ItemsSource콤보박스에 넣을 값 중 DisplayMemberPath 키와 값중 화면에 보여질거 선택 SelectedValuePath 콤보박스 아이템 선택하면 SelectedItem에 DisplayMember이 값나감-->
59
            <!--SelectedItem : object값 리턴-->
60 58
            <TextBlock Text="Status Type : " Margin="10,0,0,0"  VerticalAlignment="Center"/>
61 59
            <telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}" SelectedIndex="4"
62 60
               DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/>
63 61
            <telerik:RadToggleButton Content="  엑셀 저장  " Margin="10,0" Height="20" Command="{Binding DataSaveFileGemBoxCommand, Mode=OneWay}"/>
64 62
        </StackPanel>
65
        <GroupBox Grid.Row="1"
66
                  Header="DataBase Items"  BorderThickness="0" 
67
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
63
        <telerik:RadExpander Grid.Row="1" ExpandDirection="Down" Header="DataBase Items"  BorderThickness="0"  MaxHeight="700"
64
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" IsExpanded="True"
65
                             telerik:AnimationManager.IsAnimationEnabled="False">
68 66
            <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
69 67
							 ItemsSource="{Binding FilterConvertSource}"
70 68
                             SelectedItem="{Binding SelectFilterConvert, Mode=TwoWay}"
71
							 AutoGenerateColumns="False" CanUserFreezeColumns="False"
72
                             ColumnWidth="*"
73
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" >
69
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
70
							 AutoGenerateColumns="False" CanUserFreezeColumns="True"
71
                             ColumnWidth="*" RowDetailsVisibilityMode="VisibleWhenSelected"
72
                             Grid.Row="1"  ScrollViewer.CanContentScroll="True" IsFilteringAllowed="True"
73
                             LeftFrozenColumnCount="6" 
74
                             RightFrozenColumnCount="0">
74 75
                <telerik:RadContextMenu.ContextMenu>
75 76
                    <telerik:RadContextMenu x:Name= "GridContextMenu">
76 77
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
......
78 79
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
79 80
                    </telerik:RadContextMenu>
80 81
                </telerik:RadContextMenu.ContextMenu>
81

  
82 82
                <telerik:RadGridView.Columns>
83 83
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
84 84
                    <telerik:GridViewDataColumn Header="Convert ID "
......
94 94
                    </telerik:GridViewDataColumn>
95 95
                    <telerik:GridViewDataColumn Header="ProjectNO" 
96 96
											DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" />
97

  
97
                    <telerik:GridViewDataColumn Header="UniqueKey"
98
											DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
98 99
                    <telerik:GridViewDataColumn Header="ConvertState"
99 100
											DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" />
100

  
101 101
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
102 102
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" />
103
                    <telerik:GridViewDataColumn Header="TotalPage"
103
                    <telerik:GridViewDataColumn Header="TotalPageNo"
104 104
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60"  />
105
                    <!--<telerik:GridViewDataColumn Header=" OriginfilePath"
106
											DataMemberBinding="{Binding  OriginfilePath}" MinWidth="170"/>-->
107 105
                    <telerik:GridViewDynamicHyperlinkColumn Header="원본파일"
108 106
                                                        NavigateUrlFormatString=" {0}"
109 107
													    NavigateUrlMemberPaths="OriginfilePath"
......
114 112
                            </DataTemplate>
115 113
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
116 114
                    </telerik:GridViewDynamicHyperlinkColumn>
117

  
118 115
                    <telerik:GridViewDataColumn Header=" ConvertPath"
119 116
											DataMemberBinding="{Binding ConvertPath}" MinWidth="70" />
120 117
                    <telerik:GridViewDataColumn Header="CreateTime" 
121 118
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
122
                    <telerik:GridViewDataColumn Header="Exception"
123
											DataMemberBinding="{Binding Exception}"/>
124
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
125
											DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" />
126
                    <telerik:GridViewDataColumn Header="ReConverter"
127
											DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" />
128
                    <telerik:GridViewDataColumn Header="UniqueKey"
129
											DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
130

  
131
                    <telerik:GridViewDataColumn Header="REVISION"
132
											DataMemberBinding="{Binding Revision}"/>
133
                    <telerik:GridViewDataColumn Header="DOCUMENT_NO"
134
											DataMemberBinding="{Binding DocumnetNo}"/>
135
                    <telerik:GridViewDataColumn Header="DOCUMENT_NAME"
136
											DataMemberBinding="{Binding DocumnetName}"/>
137
                    <telerik:GridViewDataColumn Header="GROUP_NO"
138
											DataMemberBinding="{Binding GroupNo}"/>
139
                    <telerik:GridViewDataColumn Header="Validation"
140
											DataMemberBinding="{Binding Validation}"/>
141
                    <telerik:GridViewDataColumn Header="Service ID"
142
											DataMemberBinding="{Binding ServiceID}"  MinWidth="250" />
119
                    <telerik:GridViewDataColumn Header="StartTime" 
120
											DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
121
                    <telerik:GridViewDataColumn Header="EndTime" 
122
											DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
143 123
                </telerik:RadGridView.Columns>
144 124
            </telerik:RadGridView>
145
        </GroupBox>
146

  
147
        <GroupBox Grid.Row="2"
148
                  Header="Status 4 under Items"  BorderThickness="0" 
149
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
125
        </telerik:RadExpander>
126
        <telerik:RadExpander Grid.Row="2" ExpandDirection="Down"  Header="Status 4 under Items"  BorderThickness="0" 
127
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
128
                             telerik:AnimationManager.IsAnimationEnabled="False">
150 129
            <telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
151 130
							 ItemsSource="{Binding RealConvertSource}"
152 131
                             SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}"
132
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
153 133
							 AutoGenerateColumns="False" CanUserFreezeColumns="False"
154
                             ColumnWidth="*" 
134
                             ColumnWidth="*"  RowDetailsVisibilityMode="VisibleWhenSelected"
155 135
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
156 136
                <telerik:RadContextMenu.ContextMenu>
157 137
                    <telerik:RadContextMenu>
......
169 149
                    <telerik:GridViewDataColumn Header="MarkusLink " MinWidth="100" CellStyle="{StaticResource StretchCellStyle}">
170 150
                        <telerik:GridViewDataColumn.CellTemplate>
171 151
                            <DataTemplate>
172
                                <!--<telerik:RadButton Content="Click " Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding ElementName=dataGrid2, Path=SelectedItems}"/>-->
173 152
                                <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
174 153
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
175 154
                            </DataTemplate>
......
178 157

  
179 158
                    <telerik:GridViewDataColumn Header="ProjectNO" 
180 159
											DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" />
181

  
160
                    <telerik:GridViewDataColumn Header="UniqueKey"
161
											DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
182 162
                    <telerik:GridViewDataColumn Header="ConvertState"
183 163
											DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" />
184 164

  
185 165
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
186 166
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" />
187
                    <telerik:GridViewDataColumn Header="TotalPage"
167
                    <telerik:GridViewDataColumn Header="TotalPageNo"
188 168
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" />
189
                    <!--<telerik:GridViewDataColumn Header=" OriginfilePath"
190
											DataMemberBinding="{Binding  OriginfilePath}" MinWidth="170"/>-->
191 169
                    <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
192 170
                                                        NavigateUrlFormatString="{}{0}"
193 171
													    NavigateUrlMemberPaths="OriginfilePath"
......
202 180
											DataMemberBinding="{Binding ConvertPath}" MinWidth="70" />
203 181
                    <telerik:GridViewDataColumn Header="CreateTime"
204 182
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
205
                    <telerik:GridViewDataColumn Header="Exception"
206
											DataMemberBinding="{Binding Exception}"/>
207
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
208
											DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" />
209
                    <telerik:GridViewDataColumn Header="ReConverter"
210
											DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" />
211
                    <telerik:GridViewDataColumn Header="UniqueKey"
212
											DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
213

  
214
                    <telerik:GridViewDataColumn Header="REVISION"
215
											DataMemberBinding="{Binding Revision}"/>
216
                    <telerik:GridViewDataColumn Header="DOCUMENT_NO"
217
											DataMemberBinding="{Binding DocumnetNo}"/>
218
                    <telerik:GridViewDataColumn Header="DOCUMENT_NAME"
219
											DataMemberBinding="{Binding DocumnetName}"/>
220
                    <telerik:GridViewDataColumn Header="GROUP_NO"
221
											DataMemberBinding="{Binding GroupNo}"/>
222
                    <telerik:GridViewDataColumn Header="Validation"
223
											DataMemberBinding="{Binding Validation}"/>
224
                    <telerik:GridViewDataColumn Header="Service ID"
225
											DataMemberBinding="{Binding ServiceID}"  MinWidth="250"/>
183
                    <telerik:GridViewDataColumn Header="StartTime"
184
											DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
185
                    <telerik:GridViewDataColumn Header="EndTime"
186
											DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
226 187
                </telerik:RadGridView.Columns>
227 188
            </telerik:RadGridView>
228
        </GroupBox>
229
        <GroupBox Grid.Row="3"
230
                  Header="Alive Items" Margin="3" BorderThickness="0" 
231
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" >
189
        </telerik:RadExpander>
190
        <telerik:RadExpander Grid.Row="3" ExpandDirection="Down" Header="Alive Items" Margin="3" BorderThickness="0" 
191
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
192
                             telerik:AnimationManager.IsAnimationEnabled="False">
232 193
            <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
233
							 ItemsSource="{Binding AliveItems}" 
234
							 AutoGenerateColumns="False" CanUserFreezeColumns="False"
194
							 ItemsSource="{Binding AliveItems}" RowDetailsVisibilityMode="VisibleWhenSelected"
195
							 AutoGenerateColumns="False" CanUserFreezeColumns="False" RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
235 196
                             ColumnWidth="*"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" >
236
                <!--<telerik:RadGridView ItemsSource="{Binding Source={StaticResource AliveViewModel}}" AutoGenerateColumns="False" 
237
                  x:Name="DataGrid" ScrollViewer.CanContentScroll="False">  DataContext="{Binding Mode=OneWay}"-->
238 197
                <telerik:RadGridView.Columns>
239 198
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
240
                    <telerik:GridViewDataColumn  Header="Convert ID" DataMemberBinding="{Binding ConvertID}" />
241
                    <telerik:GridViewDataColumn  Header="Project No" DataMemberBinding="{Binding ProjectNumber}"/>
242
                    <telerik:GridViewDataColumn  Header="Status" DataMemberBinding="{Binding ConvertState}"/>
243
                    <telerik:GridViewDataColumn  Header="Current Page" DataMemberBinding="{Binding CurrentPageNo}"/>
244
                    <telerik:GridViewDataColumn  Header="TotalPage" DataMemberBinding="{Binding TotalPage}"/>
245
                    <telerik:GridViewDataColumn  Header="Originfile" DataMemberBinding="{Binding OriginfilePath}"/>
246
                    <telerik:GridViewDataColumn  Header="Output Path" DataMemberBinding="{Binding ConvertPath}"/>
247
                    <telerik:GridViewDataColumn  Header="Service ID" DataMemberBinding="{Binding ServiceID}"/>
248
                </telerik:RadGridView.Columns>
249
            </telerik:RadGridView>
250
        </GroupBox>
251 199

  
200
                    <telerik:GridViewDataColumn Header="Convert ID "
201
											DataMemberBinding="{Binding ConvertID}" MinWidth="180"  />
252 202

  
253
        <Grid  Grid.Row="4">
254
            <RichTextBox IsReadOnly="True" AllowDrop="False" VerticalScrollBarVisibility="Visible"
203
                    <telerik:GridViewDataColumn Header="MarkusLink " MinWidth="100" CellStyle="{StaticResource StretchCellStyle}">
204
                        <telerik:GridViewDataColumn.CellTemplate>
205
                            <DataTemplate>
206
                                <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
207
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
208
                            </DataTemplate>
209
                        </telerik:GridViewDataColumn.CellTemplate>
210
                    </telerik:GridViewDataColumn>
211

  
212
                    <telerik:GridViewDataColumn Header="ProjectNO" 
213
											DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" />
214
                    <telerik:GridViewDataColumn Header="UniqueKey"
215
											DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
216
                    <telerik:GridViewDataColumn Header="ConvertState"
217
											DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" />
218

  
219
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
220
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" />
221
                    <telerik:GridViewDataColumn Header="TotalPageNo"
222
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" />
223
                    <telerik:GridViewDynamicHyperlinkColumn  Header="원본파일"
224
                                                        NavigateUrlFormatString="{}{0}"
225
													    NavigateUrlMemberPaths="OriginfilePath"
226
														Width="150">
227
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
228
                            <DataTemplate>
229
                                <TextBlock Text="{Binding FileName}"/>
230
                            </DataTemplate>
231
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
232
                    </telerik:GridViewDynamicHyperlinkColumn>
233
                    <telerik:GridViewDataColumn Header=" ConvertPath"
234
											DataMemberBinding="{Binding ConvertPath}" MinWidth="70" />
235
                    <telerik:GridViewDataColumn Header="CreateTime"
236
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
237
                    <telerik:GridViewDataColumn Header="StartTime"
238
											DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
239
                    <telerik:GridViewDataColumn Header="EndTime"
240
											DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
241
                </telerik:RadGridView.Columns>
242
            </telerik:RadGridView>
243
            <!--<Grid  Grid.Row="4">
244
                    <RichTextBox IsReadOnly="True" AllowDrop="False" VerticalScrollBarVisibility="Visible"
255 245
                         IsUndoEnabled="False" HorizontalScrollBarVisibility="Auto"
256 246
                         Height="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
257 247
                         Width="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}">
258
                <controls:TraceDocument PageWidth="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
248
                        <controls:TraceDocument PageWidth="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
259 249
                                        PageHeight="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"/>
260
            </RichTextBox>
261
        </Grid>
262
        <!-- <local:DataBaseView HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100"/>
263
        <local:DataBaseView HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100"/>-->
250
                    </RichTextBox>
251
                </Grid>-->
252
        </telerik:RadExpander>
264 253
    </Grid>
265 254
</UserControl>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)