프로젝트

일반

사용자정보

개정판 8c7d1ea1

ID8c7d1ea1e445cfd1865fd52b000a44c58dcca3b7
상위 344ac7ed
하위 da3feefa

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

DataBaseItemsModel 수정

Change-Id: I90ab052d201b2ef824098c5ca2a08f7d703bdce2

차이점 보기:

ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/DataBaseItemsModel.cs
198 198
                return _StatusCodeList;
199 199
            }
200 200
        }
201

  
202
        public bool _ConvertShow;
203
        public bool ConvertShow
204
        {
205
            get => _ConvertShow;
206
            set
207
            {
208
                if(_ConvertShow =! value)
209
                {
210
                    _ConvertShow = false;
211
                }
212
                _ConvertShow = value;
213
                OnPropertyChanged(() => ConvertShow);
214
            }
215
        }
201 216
        #endregion
202 217

  
203 218
        #region Command
......
610 625
                    {
611 626
                        RealConvertSource.Add(item);
612 627
                    }
613

  
628
                    if (RealConvertSource.Count() == 1)
629
                    {
630
                        ConvertShow = true;
631
                    }
614 632
                }
615 633
            }
616 634
        }
......
684 702

  
685 703
        private void DataDelete(object obj)
686 704
        {
687
            RadWindow.Alert("정말로 삭제 하시겠습니까?", this.OnClosed);
705
            RadWindow.Alert("do you want to delete it??", this.OnClosed);
688 706
        }
689 707

  
690 708
        private void OnClosed(object sender, WindowClosedEventArgs e)
ConvertService/ServiceBase/Markus.Service.StationController/Views/DataBaseView.xaml
44 44
            <i:InvokeCommandAction Command="{Binding ClosingCommand}"/>
45 45
        </i:EventTrigger>
46 46
    </i:Interaction.Triggers>
47
    <Grid HorizontalAlignment="Left" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" >
47
    <Grid HorizontalAlignment="Left" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
48 48
        <Grid.RowDefinitions>
49 49
            <RowDefinition Height="Auto"/>
50
            <RowDefinition Height="Auto"/>
51
            <RowDefinition Height="Auto"/>
52
            <RowDefinition Height="Auto"/>
50
            <RowDefinition Height="*"/>
53 51
        </Grid.RowDefinitions>
54 52
        <StackPanel Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0"  Height="20" >
55 53
            <TextBlock Text="Display Count : " VerticalAlignment="Center"/>
56 54
            <telerik:RadComboBox x:Name="ComboCount" Width="100" SelectedItem="{Binding SelectedCount, Mode=TwoWay}" Margin="0,0,10,0" SelectedValuePath="DisplayMember"
57
              DisplayMemberPath="ValueMember" ItemsSource="{Binding SelectedCountList}" SelectedIndex="0" />
55
                  DisplayMemberPath="ValueMember" ItemsSource="{Binding SelectedCountList}" SelectedIndex="0" />
58 56
            <TextBlock Text="Status Type : " Margin="10,0,0,0"  VerticalAlignment="Center"/>
59 57
            <telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}" SelectedIndex="4"
60
               DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/>
58
                   DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/>
61 59
            <telerik:RadToggleButton Content="  엑셀 저장  " Margin="10,0" Height="20" Command="{Binding DataSaveFileGemBoxCommand, Mode=OneWay}"/>
62 60
        </StackPanel>
63
        <telerik:RadExpander Grid.Row="1" ExpandDirection="Down" Header="DataBase Items"  BorderThickness="0"  MaxHeight="700"
61
        <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" >
62
            <Grid.RowDefinitions>
63
                <RowDefinition Height="*" />
64
                <RowDefinition Height="Auto"/>
65
                <RowDefinition Height="Auto"/>
66
            </Grid.RowDefinitions>
67
            <telerik:RadExpander ExpandDirection="Down"  BorderThickness="0" MaxHeight="700"
64 68
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" IsExpanded="True"
65 69
                             telerik:AnimationManager.IsAnimationEnabled="False">
66
            <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
70
                <telerik:RadExpander.Header>
71
                    <Grid>
72
                        <Grid.ColumnDefinitions>
73
                            <ColumnDefinition Width="Auto"/>
74
                            <ColumnDefinition Width="Auto"/>
75
                        </Grid.ColumnDefinitions>
76
                        <TextBlock Text="DataBase Items : "/>
77
                        <TextBlock Text="{Binding SelectedCount.ValueMember, StringFormat=\{0:d\}}" Grid.Column="1"/>
78
                    </Grid>
79
                </telerik:RadExpander.Header>
80
                <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
67 81
							 ItemsSource="{Binding FilterConvertSource}"
68 82
                             SelectedItem="{Binding SelectFilterConvert, Mode=TwoWay}"
69 83
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
70 84
							 AutoGenerateColumns="False" CanUserFreezeColumns="True"
71
                             ColumnWidth="*" RowDetailsVisibilityMode="VisibleWhenSelected"
85
                             ColumnWidth="*"  RowDetailsVisibilityMode="VisibleWhenSelected"
72 86
                             Grid.Row="1"  ScrollViewer.CanContentScroll="True" IsFilteringAllowed="True"
73 87
                             LeftFrozenColumnCount="6" 
74 88
                             RightFrozenColumnCount="0">
75
                <telerik:RadContextMenu.ContextMenu>
76
                    <telerik:RadContextMenu x:Name= "GridContextMenu">
77
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
78
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
79
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
80
                    </telerik:RadContextMenu>
81
                </telerik:RadContextMenu.ContextMenu>
82
                <telerik:RadGridView.Columns>
83
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
84
                    <telerik:GridViewDataColumn Header="Convert ID "
85
											DataMemberBinding="{Binding ConvertID}" MinWidth="180"  />
86
                    <telerik:GridViewDataColumn x:Name="commend" Header="MarkusLink " MinWidth="100"  CellStyle="{StaticResource StretchCellStyle}">
87
                        <telerik:GridViewDataColumn.CellTemplate>
88
                            <DataTemplate>
89
                                <telerik:RadButton Content="Click" BorderThickness="0"
89
                    <telerik:RadContextMenu.ContextMenu>
90
                        <telerik:RadContextMenu x:Name= "GridContextMenu">
91
                            <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
92
                            <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
93
                            <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
94
                        </telerik:RadContextMenu>
95
                    </telerik:RadContextMenu.ContextMenu>
96
                    <telerik:RadGridView.Columns>
97
                        <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
98
                        <telerik:GridViewDataColumn Header="Convert ID "
99
											DataMemberBinding="{Binding ConvertID}" Width="1.5*" />
100
                        <telerik:GridViewDataColumn x:Name="commend" Header="Markus " Width="0.5*"  CellStyle="{StaticResource StretchCellStyle}">
101
                            <telerik:GridViewDataColumn.CellTemplate>
102
                                <DataTemplate>
103
                                    <telerik:RadButton Content="Click" BorderThickness="0"
90 104
                                                   Background="Transparent"
91 105
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
92
                            </DataTemplate>
93
                        </telerik:GridViewDataColumn.CellTemplate>
94
                    </telerik:GridViewDataColumn>
95
                    <telerik:GridViewDataColumn Header="ProjectNO" 
96
											DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" />
97
                    <telerik:GridViewDataColumn Header="UniqueKey"
98
											DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
99
                    <telerik:GridViewDataColumn Header="ConvertState"
100
											DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" />
101
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
102
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" />
103
                    <telerik:GridViewDataColumn Header="TotalPageNo"
104
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60"  />
105
                    <telerik:GridViewDynamicHyperlinkColumn Header="원본파일"
106
                                </DataTemplate>
107
                            </telerik:GridViewDataColumn.CellTemplate>
108
                        </telerik:GridViewDataColumn>
109
                        <telerik:GridViewDataColumn Header="ProjectNO" 
110
											DataMemberBinding="{Binding ProjectNumber}" Width="*" />
111
                        <telerik:GridViewDataColumn Header="UniqueKey"
112
											DataMemberBinding="{Binding UniqueKey}" Width="*" />
113
                        <telerik:GridViewDataColumn Header="ConvertState"
114
											DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" Width="*" />
115
                        <telerik:GridViewDataColumn Header="CurrentPageNo"
116
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
117
                        <telerik:GridViewDataColumn Header="TotalPageNo"
118
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*"  />
119
                        <telerik:GridViewDynamicHyperlinkColumn Header="원본파일"
106 120
                                                        NavigateUrlFormatString=" {0}"
107 121
													    NavigateUrlMemberPaths="OriginfilePath"
108
														Width="150">
109
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
110
                            <DataTemplate>
111
                                <TextBlock Text="{Binding FileName}"/>
112
                            </DataTemplate>
113
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
114
                    </telerik:GridViewDynamicHyperlinkColumn>
115
                    <telerik:GridViewDataColumn Header=" ConvertPath"
116
											DataMemberBinding="{Binding ConvertPath}" MinWidth="70" />
117
                    <telerik:GridViewDataColumn Header="CreateTime" 
118
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
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" />
123
                </telerik:RadGridView.Columns>
124
            </telerik:RadGridView>
125
        </telerik:RadExpander>
126
        <telerik:RadExpander Grid.Row="2" ExpandDirection="Down"  Header="Status 4 under Items"  BorderThickness="0" 
122
														Width="2*">
123
                            <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
124
                                <DataTemplate>
125
                                    <TextBlock Text="{Binding FileName}"/>
126
                                </DataTemplate>
127
                            </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
128
                        </telerik:GridViewDynamicHyperlinkColumn>
129
                        <telerik:GridViewDataColumn Header=" ConvertPath"
130
											DataMemberBinding="{Binding ConvertPath}" Width="2.5*" />
131
                        <telerik:GridViewDataColumn Header="CreateTime" 
132
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
133
                        <telerik:GridViewDataColumn Header="StartTime" 
134
											DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
135
                        <telerik:GridViewDataColumn Header="EndTime" 
136
											DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
137
                    </telerik:RadGridView.Columns>
138
                </telerik:RadGridView>
139
            </telerik:RadExpander>
140
            <telerik:RadExpander Grid.Row="1" ExpandDirection="Down" BorderThickness="0" 
127 141
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
128
                             telerik:AnimationManager.IsAnimationEnabled="False">
129
            <telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
142
                             telerik:AnimationManager.IsAnimationEnabled="False" IsExpanded ="{Binding ConvertShow, Mode=TwoWay}">
143
                <telerik:RadExpander.Header>
144
                    <Grid>
145
                        <Grid.ColumnDefinitions>
146
                            <ColumnDefinition Width="Auto"/>
147
                            <ColumnDefinition Width="Auto"/>
148
                        </Grid.ColumnDefinitions>
149
                        <TextBlock Text="RealConvert Items : "/>
150
                        <TextBlock Text="{Binding RealConvertSource.Count, StringFormat=\{0:d\}}" Grid.Column="1"/>
151
                    </Grid>
152
                </telerik:RadExpander.Header>
153
                <telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
130 154
							 ItemsSource="{Binding RealConvertSource}"
131 155
                             SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}"
132 156
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
133 157
							 AutoGenerateColumns="False" CanUserFreezeColumns="False"
134 158
                             ColumnWidth="*"  RowDetailsVisibilityMode="VisibleWhenSelected"
135 159
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
136
                <telerik:RadContextMenu.ContextMenu>
137
                    <telerik:RadContextMenu>
138
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
139
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
140
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
141
                    </telerik:RadContextMenu>
142
                </telerik:RadContextMenu.ContextMenu>
143
                <telerik:RadGridView.Columns>
144
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
160
                    <telerik:RadContextMenu.ContextMenu>
161
                        <telerik:RadContextMenu>
162
                            <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
163
                            <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
164
                            <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
165
                        </telerik:RadContextMenu>
166
                    </telerik:RadContextMenu.ContextMenu>
167
                    <telerik:RadGridView.Columns>
168
                        <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
145 169

  
146
                    <telerik:GridViewDataColumn Header="Convert ID "
147
											DataMemberBinding="{Binding ConvertID}" MinWidth="180"  />
170
                        <telerik:GridViewDataColumn Header="Convert ID "
171
											DataMemberBinding="{Binding ConvertID}" Width="1.5*" />
148 172

  
149
                    <telerik:GridViewDataColumn Header="MarkusLink " MinWidth="100" CellStyle="{StaticResource StretchCellStyle}">
150
                        <telerik:GridViewDataColumn.CellTemplate>
151
                            <DataTemplate>
152
                                <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
173
                        <telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}">
174
                            <telerik:GridViewDataColumn.CellTemplate>
175
                                <DataTemplate>
176
                                    <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
153 177
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
154
                            </DataTemplate>
155
                        </telerik:GridViewDataColumn.CellTemplate>
156
                    </telerik:GridViewDataColumn>
178
                                </DataTemplate>
179
                            </telerik:GridViewDataColumn.CellTemplate>
180
                        </telerik:GridViewDataColumn>
157 181

  
158
                    <telerik:GridViewDataColumn Header="ProjectNO" 
159
											DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" />
160
                    <telerik:GridViewDataColumn Header="UniqueKey"
161
											DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
162
                    <telerik:GridViewDataColumn Header="ConvertState"
163
											DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" />
182
                        <telerik:GridViewDataColumn Header="ProjectNO" 
183
											DataMemberBinding="{Binding ProjectNumber}" Width="*" />
184
                        <telerik:GridViewDataColumn Header="UniqueKey"
185
											DataMemberBinding="{Binding UniqueKey}" Width="*" />
186
                        <telerik:GridViewDataColumn Header="ConvertState"
187
											DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" Width="*" />
164 188

  
165
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
166
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" />
167
                    <telerik:GridViewDataColumn Header="TotalPageNo"
168
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" />
169
                    <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
189
                        <telerik:GridViewDataColumn Header="CurrentPageNo"
190
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
191
                        <telerik:GridViewDataColumn Header="TotalPageNo"
192
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
193
                        <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
170 194
                                                        NavigateUrlFormatString="{}{0}"
171 195
													    NavigateUrlMemberPaths="OriginfilePath"
172
														Width="150">
173
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
174
                            <DataTemplate>
175
                                <TextBlock Text="{Binding FileName}"/>
176
                            </DataTemplate>
177
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
178
                    </telerik:GridViewDynamicHyperlinkColumn>
179
                    <telerik:GridViewDataColumn Header=" ConvertPath"
180
											DataMemberBinding="{Binding ConvertPath}" MinWidth="70" />
181
                    <telerik:GridViewDataColumn Header="CreateTime"
182
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
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" />
187
                </telerik:RadGridView.Columns>
188
            </telerik:RadGridView>
189
        </telerik:RadExpander>
190
        <telerik:RadExpander Grid.Row="3" ExpandDirection="Down" Header="Alive Items" Margin="3" BorderThickness="0" 
196
														Width="2*">
197
                            <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
198
                                <DataTemplate>
199
                                    <TextBlock Text="{Binding FileName}"/>
200
                                </DataTemplate>
201
                            </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
202
                        </telerik:GridViewDynamicHyperlinkColumn>
203
                        <telerik:GridViewDataColumn Header=" ConvertPath"
204
											DataMemberBinding="{Binding ConvertPath}" Width="2.5*" />
205
                        <telerik:GridViewDataColumn Header="CreateTime"
206
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
207
                        <telerik:GridViewDataColumn Header="StartTime"
208
											DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
209
                        <telerik:GridViewDataColumn Header="EndTime"
210
											DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
211
                    </telerik:RadGridView.Columns>
212
                </telerik:RadGridView>
213
            </telerik:RadExpander>
214
            <telerik:RadExpander Grid.Row="2" ExpandDirection="Down" Margin="3" BorderThickness="0"  VerticalAlignment="Stretch"
191 215
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
192 216
                             telerik:AnimationManager.IsAnimationEnabled="False">
193
            <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
217
                <telerik:RadExpander.Header>
218
                    <Grid>
219
                        <Grid.ColumnDefinitions>
220
                            <ColumnDefinition Width="Auto"/>
221
                            <ColumnDefinition Width="Auto"/>
222
                        </Grid.ColumnDefinitions>
223
                        <TextBlock Text="Alive Items : "/>
224
                        <TextBlock Text="{Binding AliveItems.Count, StringFormat=\{0:d\}}" Grid.Column="1"/>
225
                    </Grid>
226
                </telerik:RadExpander.Header>
227
                <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
194 228
							 ItemsSource="{Binding AliveItems}" RowDetailsVisibilityMode="VisibleWhenSelected"
195 229
							 AutoGenerateColumns="False" CanUserFreezeColumns="False" RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
196 230
                             ColumnWidth="*"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" >
197
                <telerik:RadGridView.Columns>
198
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
231
                    <telerik:RadGridView.Columns>
232
                        <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
199 233

  
200
                    <telerik:GridViewDataColumn Header="Convert ID "
201
											DataMemberBinding="{Binding ConvertID}" MinWidth="180"  />
234
                        <telerik:GridViewDataColumn Header="Convert ID "
235
											DataMemberBinding="{Binding ConvertID}" Width="1.5*"  />
202 236

  
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"
237
                        <telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}">
238
                            <telerik:GridViewDataColumn.CellTemplate>
239
                                <DataTemplate>
240
                                    <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
207 241
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
208
                            </DataTemplate>
209
                        </telerik:GridViewDataColumn.CellTemplate>
210
                    </telerik:GridViewDataColumn>
242
                                </DataTemplate>
243
                            </telerik:GridViewDataColumn.CellTemplate>
244
                        </telerik:GridViewDataColumn>
211 245

  
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" />
246
                        <telerik:GridViewDataColumn Header="ProjectNO" 
247
											DataMemberBinding="{Binding ProjectNumber}" Width="*" />
248
                        <telerik:GridViewDataColumn Header="UniqueKey"
249
											DataMemberBinding="{Binding UniqueKey}" Width="*" />
250
                        <telerik:GridViewDataColumn Header="ConvertState"
251
											DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" Width="*" />
218 252

  
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="원본파일"
253
                        <telerik:GridViewDataColumn Header="CurrentPageNo"
254
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
255
                        <telerik:GridViewDataColumn Header="TotalPageNo"
256
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
257
                        <telerik:GridViewDynamicHyperlinkColumn  Header="원본파일"
224 258
                                                        NavigateUrlFormatString="{}{0}"
225 259
													    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"
245
                         IsUndoEnabled="False" HorizontalScrollBarVisibility="Auto"
246
                         Height="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
247
                         Width="{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}}}"
249
                                        PageHeight="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"/>
250
                    </RichTextBox>
251
                </Grid>-->
252
        </telerik:RadExpander>
260
														Width="*">
261
                            <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
262
                                <DataTemplate>
263
                                    <TextBlock Text="{Binding FileName}"/>
264
                                </DataTemplate>
265
                            </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
266
                        </telerik:GridViewDynamicHyperlinkColumn>
267
                        <telerik:GridViewDataColumn Header=" ConvertPath"
268
											DataMemberBinding="{Binding ConvertPath}" Width="2.5*" />
269
                        <telerik:GridViewDataColumn Header="CreateTime"
270
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
271
                        <telerik:GridViewDataColumn Header="StartTime"
272
											DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
273
                        <telerik:GridViewDataColumn Header="EndTime"
274
											DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
275
                    </telerik:RadGridView.Columns>
276
                </telerik:RadGridView>
277
            </telerik:RadExpander>
278
        </Grid>
253 279
    </Grid>
254 280
</UserControl>
ConvertService/ServiceBase/Markus.Service.StationController/Views/DataBaseViewInfo.xaml
1 1
<UserControl x:Class="Markus.Service.StationController.Views.DataBaseViewInfo"
2 2
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 3
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
4 5
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
5 6
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
6 7
      xmlns:local="clr-namespace:Markus.Service.StationController.Views"
7
      mc:Ignorable="d" 
8
      mc:Ignorable="d" Background="White"
8 9
      d:DesignHeight="450" d:DesignWidth="800">
9 10
    <Grid Width="Auto"
10
		  HorizontalAlignment="Stretch">
11
		  HorizontalAlignment="Stretch" Margin="10">
11 12
        <Grid.Resources>
12
            <Style TargetType="TextBox">
13
                <Setter Property="Foreground" Value="Black"/>
14
                <Setter Property="Margin" Value="5,0,0,0"/>
15
                <Setter Property="IsReadOnly" Value="True"/>
16
                <Setter Property="HorizontalAlignment" Value="Left"/>
17
                <Setter Property="VerticalAlignment" Value="Center"/>
13
            <Style TargetType="DataGridCell">
14
                <Setter Property="Margin" Value="10"/>
18 15
            </Style>
19 16
            <Style TargetType="TextBlock">
20 17
                <Setter Property="FontWeight" Value="Bold"/>
21
                <Setter Property="Margin" Value="5,0,0,0"/>
18
                <Setter Property="Margin" Value="5"/>
22 19
                <Setter Property="HorizontalAlignment" Value="Left"/>
23 20
                <Setter Property="VerticalAlignment" Value="Center"/>
24 21
            </Style>
25 22
        </Grid.Resources>
26 23
        <Grid.RowDefinitions>
27
            <RowDefinition Height="20" />
28
            <RowDefinition Height="20" />
29
            <RowDefinition Height="20" />
30
            <RowDefinition Height="20" />
31
            <RowDefinition Height="20" />
32
            <RowDefinition Height="20" />
24
            <RowDefinition Height="AUTO" />
25
            <RowDefinition Height="AUTO" />
26
            <RowDefinition Height="AUTO" />
27
            <RowDefinition Height="AUTO" />
28
            <RowDefinition Height="AUTO" />
33 29
        </Grid.RowDefinitions>
34 30
        <Grid.ColumnDefinitions>
35 31
            <ColumnDefinition Width="Auto" />
36 32
            <ColumnDefinition Width="Auto" />
37
            <ColumnDefinition Width="150" />
38
            <ColumnDefinition Width="10" />
39
            <ColumnDefinition Width="Auto" />
40
            <ColumnDefinition Width="*" />
33
            <ColumnDefinition Width="Auto"/>
34
            <ColumnDefinition Width="100" />
41 35
        </Grid.ColumnDefinitions>
42 36
        <TextBlock Text="GROUP_NO: "
43
				   Grid.Row="1"
44
				   Grid.Column="1"/>
37
				   Grid.Row="0"
38
				   Grid.Column="0"/>
45 39
        <TextBox Text="{Binding GroupNo}"
46
				   Grid.Row="1"
47
				   Grid.Column="2" />
48
        <TextBlock Text="ProcessorAffinity: "
49
				   Grid.Row="2"
40
				   Grid.Row="0"  BorderThickness="0"  IsReadOnly="True"
50 41
				   Grid.Column="1" />
42
        <TextBlock Text="ProcessorAffinity: "
43
				   Grid.Row="0"
44
				   Grid.Column="2" Margin="10"/>
51 45
        <TextBox Text="{Binding ProcessorAffinity}"
52
				   Grid.Row="2" 
53
				   Grid.Column="2" />
54
        <TextBlock Text="ReConverter: "
55
				   Grid.Row="3"
56
				   Grid.Column="1"/>
57
        <TextBox Text="{Binding ReConverter}"
58
				   Grid.Row="3" 
59
				   Grid.Column="2"/>
60
        <TextBlock Text="REVISION: "
61
				   Grid.Row="4"
62
				   Grid.Column="1"/>
63
        <TextBox Text="{Binding Revision}"
64
				   Grid.Row="4" 
65
				   Grid.Column="2"/>
66
        <Border Grid.Column="3"
67
				Grid.Row="0"
68
				Grid.RowSpan="6"
69
				Width="1"
70
				VerticalAlignment="Stretch"
71
				HorizontalAlignment="Left"
72
				Margin="0,10" />
46
				   Grid.Row="0" BorderThickness="0" IsReadOnly="True"
47
				   Grid.Column="3" />
73 48
        <TextBlock Text="DOCUMENT_NO: "
74 49
				   Grid.Row="1"
75
				   Grid.Column="4" />
50
				   Grid.Column="0" />
76 51
        <TextBox Text="{Binding DocumnetNo}"
77
				   Grid.Row="1" 
78
				   Grid.Column="5" />
52
				   Grid.Row="1"  BorderThickness="0" IsReadOnly="True"
53
				   Grid.Column="1" />
54
        <TextBlock Text="ReConverter: "
55
				   Grid.Row="1" Margin="10"
56
				   Grid.Column="2"/>
57
        <TextBox Text="{Binding ReConverter}"
58
				   Grid.Row="1" BorderThickness="0" IsReadOnly="True"
59
				   Grid.Column="3"/>
79 60
        <TextBlock Text="DOCUMENT_NAME: "
80 61
				   Grid.Row="2"
81
				   Grid.Column="4" />
62
				   Grid.Column="0" />
82 63
        <TextBox Text="{Binding DocumnetName}"
83
				   Grid.Row="2" 
84
				   Grid.Column="5"/>
85
        <TextBlock Text="Exception: "
86
				   Grid.Row="3"
87
				   Grid.Column="4"/>
88
        <TextBox Text="{Binding Exception}"
89
				   Grid.Row="3" 
90
				   Grid.Column="5" />
64
				   Grid.Row="2" BorderThickness="0" IsReadOnly="True"
65
				   Grid.Column="1"/>
91 66
        <TextBlock Text="Service ID: "
92
				   Grid.Row="4"
93
				   Grid.Column="4"/>
67
				   Grid.Row="2" Margin="10"
68
				   Grid.Column="2"/>
94 69
        <TextBox Text="{Binding ServiceID}"
95
				   Grid.Row="4" 
96
				   Grid.Column="5" />
70
				   Grid.Row="2" BorderThickness="0" IsReadOnly="True"
71
				   Grid.Column="3" Width="489"/>
72
        <TextBlock Text="REVISION: "
73
				   Grid.Row="3"
74
				   Grid.Column="0"/>
75
        <TextBox Text="{Binding Revision}"
76
				   Grid.Row="3" BorderThickness="0" IsReadOnly="True"
77
				   Grid.Column="1"/>
78
        <TextBlock Text="Exception: "
79
				   Grid.Row="4"
80
				   Grid.Column="0"/>
81
        <TextBox Text="{Binding Exception}"
82
				   Grid.Row="4" BorderThickness="0" AcceptsReturn="True" IsReadOnly="True" 
83
				   Grid.Column="1" Grid.ColumnSpan="3" Margin="0,0,10,0"/>
97 84
    </Grid>
98 85
</UserControl>

내보내기 Unified diff

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