프로젝트

일반

사용자정보

개정판 218e5002

ID218e500224bbdd3f95fc825f03f3fdb94c08ba8b
상위 bf5f463c
하위 604465bd, c5741eaa

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

FilterSearch 완료

Change-Id: Ia9322a69ff6ba79bdb708b71db17099788ea66a6

차이점 보기:

ConvertService/ServiceBase/IServiceBase/ConvertItem.cs
3 3
using System.Runtime.Serialization;
4 4
using System.Linq.Expressions;
5 5
using Markus.Message;
6
using System.IO;
7

  
6 8
namespace Markus.Service.Interface
7 9
{
8 10
    [DataContract]
......
100 102
        }
101 103

  
102 104
        //DataSearch 상단 그리드 Search 
103
        public ConvertItem(string ConvertId ,string ProjectNo, int Status, string documentID, string documentName, string documentNo, string document_URL, string revision, int currentPageNo, int totalPage, string exception, string groupNo)
105
        public ConvertItem(string serviceID, string convertId ,string projectNo, int Status, string documentID, string documentName, string documentNo, string document_URL, string revision, int currentPageNo, int totalPage, string exception, string groupNo,
106
            DateTime create_datetime, DateTime? start_datetime, DateTime? end_datetime , string originfilePath, string convertPath, string markusLink)
104 107
        {//세미
105
            ConvertID = ConvertId;
106
            ProjectNumber = ProjectNo;
107
            ConvertState = (StatusCodeType)Status;
108
            ServiceID = serviceID;
108 109
            DocumentID = documentID;
110
            ConvertID = convertId;
111
            ProjectNumber = projectNo;
112
            ConvertState = (StatusCodeType)Status;
113
            UniqueKey = documentID;
109 114
            DocumnetName = documentName;
110 115
            DocumnetNo = documentNo;
111 116
            DocumnetURL = document_URL;
......
114 119
            TotalPage = totalPage;
115 120
            Exception = exception;
116 121
            GroupNo = groupNo;
122
            CreateTime = create_datetime;
123
            StartTime = start_datetime;
124
            EndTime = end_datetime;
125
            ConvertPath = convertPath;
126
            MarkusLink = markusLink;
127
            OriginfilePath = originfilePath;
128

  
129
            string result = "";
130
            if (originfilePath.Contains("/"))
131
            {
132
                result = originfilePath.Substring(originfilePath.LastIndexOf("/") + 1);
133
            }
134
            else
135
            {
136
                result = originfilePath.Substring(originfilePath.LastIndexOf("%") + 1);
137
            }
138
            this._FileName = result;
117 139
        }
118 140

  
119 141

  
ConvertService/ServiceBase/Markus.Service.DataBase/ConvertDatabase.cs
151 151

  
152 152
        }
153 153

  
154
       
154 155
        public IEnumerable<Interface.ConvertItem> GetConvertProjects(int status)
155 156
        {
156 157
            List<Interface.ConvertItem> convertItems = new List<Interface.ConvertItem>();
......
213 214

  
214 215
        }
215 216

  
217
        public string[] GetSearchConvertPathAndMarkus(string PROJECT_NO, string DOCUMENT_ID)
218
        {
219
            string[] ConvertPath = new string[2];
220
            ConvertPath[0] = GetConvertPath(PROJECT_NO, DOCUMENT_ID);
221
            ConvertPath[1] = "kcom://" + Markus.Service.DataBase.Extensions.MarkusAPI.CreateMarkusParam(PROJECT_NO, DOCUMENT_ID, "doftech");
222

  
223
            return ConvertPath;
224
        }
225

  
216 226
        #endregion
217 227

  
218 228
        #region Update RealDataSelect 
ConvertService/ServiceBase/Markus.Service.Extensions/Exntensions/guid.cs
7 7

  
8 8
namespace Markus.Service.Extensions
9 9
{
10
    /// <summary>
11
    /// var id = GuidExtension.shortGuid();
12
    /// </summary>
10 13
    public static class GuidExtension
11 14
    {
12 15
        public static Guid CreateUniqueGuid(this Guid guid)
13 16
        {
17
            
14 18
            return GetUniqueGuid();
15 19
        }
16 20

  
ConvertService/ServiceBase/Markus.Service.StationController/Controls/DatabaseFilter.xaml
6 6
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
7 7
      xmlns:local="clr-namespace:Markus.Service.StationController.Views"
8 8
      xmlns:VM="clr-namespace:Markus.Service.StationController.ViewModel"
9
      d:DesignHeight="300" d:DesignWidth="1000"
9 10
      mc:Ignorable="d"  >
10
    <Grid HorizontalAlignment="Left">
11
    <Grid>
11 12
        <Grid.Style>
12 13
            <Style>
13 14
                <Setter Property="TextBlock.Margin" Value="20,0,0,0"/>
14 15
            </Style>
15 16
        </Grid.Style>
16
        <!--<Grid.RowDefinitions>
17
            <RowDefinition />
18
            <RowDefinition/>
19
            <RowDefinition />
20
            <RowDefinition/>
21
            <RowDefinition/>
22
        </Grid.RowDefinitions>
23
        <Grid.ColumnDefinitions>
24
            <ColumnDefinition />
25
            <ColumnDefinition />
26
            <ColumnDefinition />
27
            <ColumnDefinition />
28
            <ColumnDefinition />
29
            <ColumnDefinition />
30
        </Grid.ColumnDefinitions>-->
31 17
        <Grid.RowDefinitions>
32 18
            <RowDefinition />
33 19
            <RowDefinition />
34
            <RowDefinition />
35 20
        </Grid.RowDefinitions>
36
        <Grid.ColumnDefinitions>
37
            <ColumnDefinition Width="*" />
38
            <ColumnDefinition Width="Auto"/>
39
            <ColumnDefinition Width="*"/>
40
            <ColumnDefinition Width="Auto"/>
41
            <ColumnDefinition Width="*"/>
42
            <ColumnDefinition Width="Auto"/>
43
            <ColumnDefinition Width="*"/>
44
            <ColumnDefinition Width="Auto"/>
45
        </Grid.ColumnDefinitions>
46
        
47
        <TextBlock Text="ProjectNumber  " Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
48
        <telerik:RadMaskedTextInput IsClearButtonVisible="True" Grid.Row="0" Grid.Column="1"  Width="300"
21
        <Grid Grid.Row="0">
22
            <Grid.RowDefinitions>
23
                <RowDefinition />
24
                <RowDefinition />
25
            </Grid.RowDefinitions>
26
            <Grid.ColumnDefinitions>
27
                <ColumnDefinition Width="Auto"/>
28
                <ColumnDefinition Width="*" />
29
                <ColumnDefinition Width="10"/>
30
                <ColumnDefinition Width="Auto"/>
31
                <ColumnDefinition Width="*"/>
32
                <ColumnDefinition Width="10"/>
33
                <ColumnDefinition Width="Auto"/>
34
                <ColumnDefinition Width="*"/>
35
                <ColumnDefinition Width="10"/>
36
                <ColumnDefinition Width="Auto"/>
37
                <ColumnDefinition Width="*"/>
38
            </Grid.ColumnDefinitions>
39
            <TextBlock Text="ProjectNumber  " Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left"/>
40
            <telerik:RadMaskedTextInput IsClearButtonVisible="True" Grid.Row="0" Grid.Column="1" 
49 41
         EmptyContent="ProjectNumber" InputBehavior="Replace" HorizontalContentAlignment="Stretch"
50 42
         TextMode="PlainText" Value="{Binding ProjectNo,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay, ElementName=userControl}"
51
         VerticalAlignment="Center" />
43
         VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="2,0" />
52 44

  
53
        <TextBlock Text="UniqueKey  " Grid.Row="0" Grid.Column="2" Margin="20,0,0,0" VerticalAlignment="Center"/>
54
        <telerik:RadMaskedTextInput IsClearButtonVisible="True"  Width="300"
45
            <TextBlock Text="UniqueKey  " Grid.Row="0" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Left"/>
46
            <telerik:RadMaskedTextInput IsClearButtonVisible="True"
55 47
         EmptyContent="UniqueKey" Value="{Binding UniqueKeyFilter, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
56
         TextMode="PlainText" Grid.Row="0" Grid.Column="3"
57
         HorizontalAlignment="Center"
58
         VerticalAlignment="Center"/>
48
         TextMode="PlainText" Grid.Row="0" Grid.Column="4"
49
         HorizontalAlignment="Stretch"
50
         VerticalAlignment="Center" Margin="2,0"/>
51

  
52
            <TextBlock Text="Service ID  " Grid.Row="0" Grid.Column="6"   VerticalAlignment="Center" HorizontalAlignment="Left"/>
53
            <telerik:RadMaskedTextInput IsClearButtonVisible="True" 
54
         EmptyContent="Service ID" Value="{Binding Service_IDFilter, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
55
         TextMode="PlainText" Grid.Row="0" Grid.Column="7"
56
         HorizontalAlignment="Stretch"
57
         VerticalAlignment="Center" Margin="2,0"/>
58

  
59
            <TextBlock Text="Revision  " Grid.Row="0" Grid.Column="9" VerticalAlignment="Center"  HorizontalAlignment="Left"/>
60
            <telerik:RadMaskedTextInput IsClearButtonVisible="True" 
61
         EmptyContent="Revision" Value="{Binding RevisionFilter, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
62
         TextMode="PlainText" Grid.Row="0" Grid.Column="10"
63
         HorizontalContentAlignment="Stretch"
64
         VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="2,0"/>
59 65

  
60
        <!--<TextBlock Text="ConvertState : " Grid.Row="1" Grid.Column="0"/>-->
61
        <!--<telerik:RadMaskedTextInput IsClearButtonVisible="True"
66
            <!--<TextBlock Text="ConvertState : " Grid.Row="1" Grid.Column="0"/>-->
67
            <!--<telerik:RadMaskedTextInput IsClearButtonVisible="True"
62 68
         EmptyContent="ConvertState" Value="{Binding ConvertStateFilter, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
63 69
         TextMode="PlainText"  Grid.Row="1" Grid.Column="1"
64 70
         HorizontalAlignment="Center"
65 71
         VerticalAlignment="Center"/>-->
66 72

  
67 73

  
68
        <TextBlock Text="Docuemnt Name  " Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Margin="0,10,0,10"/>
69
        <telerik:RadMaskedTextInput IsClearButtonVisible="True"  Width="300"
74
            <TextBlock Text="Docuemnt Name  " Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left"/>
75
            <telerik:RadMaskedTextInput IsClearButtonVisible="True" 
70 76
         EmptyContent="Docuemnt Name" Value="{Binding Docuemnt_NameFilter , UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
71 77
         TextMode="PlainText" Grid.Row="1" Grid.Column="1"
72 78
         HorizontalContentAlignment="Stretch"
73
         VerticalAlignment="Center"/>
79
         VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="2,0"/>
74 80

  
75
        <TextBlock Text="Docuemnt NO  " Grid.Row="1" Grid.Column="2" Margin="20,0,0,0"  VerticalAlignment="Center"/>
76
        <telerik:RadMaskedTextInput IsClearButtonVisible="True"  Width="300"
81
            <TextBlock Text="Docuemnt NO  " Grid.Row="1" Grid.Column="3"  VerticalAlignment="Center" HorizontalAlignment="Left"/>
82
            <telerik:RadMaskedTextInput IsClearButtonVisible="True" 
77 83
         EmptyContent="Docuemnt NO" Value="{Binding Docuemnt_NOFilter , UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
78
         TextMode="PlainText" Grid.Row="1" Grid.Column="3"
79
         HorizontalAlignment="Center"
80
         VerticalAlignment="Center"/>
81

  
82
        <TextBlock Text="Service ID  " Grid.Row="0" Grid.Column="4"  Margin="20,0,10,0" VerticalAlignment="Center"/>
83
        <telerik:RadMaskedTextInput IsClearButtonVisible="True"  Width="300"
84
         EmptyContent="Service ID" Value="{Binding Service_IDFilter, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
85
         TextMode="PlainText" Grid.Row="0" Grid.Column="5"
86
         HorizontalAlignment="Center"
87
         VerticalAlignment="Center"/>
88

  
84
         TextMode="PlainText" Grid.Row="1" Grid.Column="4"
85
         HorizontalAlignment="Stretch"
86
         VerticalAlignment="Center" Margin="2,0"/>
89 87

  
90
        <TextBlock Text="Reconverter " Grid.Row="1" Grid.Column="4"  Margin="20,0,0,0" VerticalAlignment="Center"/>
91
        <telerik:RadMaskedTextInput IsClearButtonVisible="True"  Width="300"
88
            <TextBlock Text="Reconverter " Grid.Row="1" Grid.Column="6"  VerticalAlignment="Center" HorizontalAlignment="Left"/>
89
            <telerik:RadMaskedTextInput IsClearButtonVisible="True" 
92 90
         EmptyContent="Reconverter"  Value="{Binding ReconverterFilter, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
93
         TextMode="PlainText" Grid.Row="1" Grid.Column="5"
94
         HorizontalAlignment="Center"
95
         VerticalAlignment="Center"/>
91
         TextMode="PlainText" Grid.Row="1" Grid.Column="7"
92
         HorizontalAlignment="Stretch"
93
         VerticalAlignment="Center" Margin="2,0"/>
94

  
95
            <TextBlock Text="Group NO " Grid.Row="1" Grid.Column="9"  VerticalAlignment="Center" HorizontalAlignment="Left"/>
96
            <telerik:RadMaskedTextInput IsClearButtonVisible="True" 
97
         EmptyContent="Reconverter"  Value="{Binding GroupNOFilter, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
98
         TextMode="PlainText" Grid.Row="1" Grid.Column="10"
99
         HorizontalAlignment="Stretch"
100
         VerticalAlignment="Center" Margin="2,0"/>
96 101

  
97
        <TextBlock Text="Revision  " Grid.Row="0" Grid.Column="6" VerticalAlignment="Center"  Margin="20,0,10,0"/>
98
        <telerik:RadMaskedTextInput IsClearButtonVisible="True"  Width="300"
99
         EmptyContent="Revision" Value="{Binding RevisionFilter, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
100
         TextMode="PlainText" Grid.Row="0" Grid.Column="7"
101
         HorizontalContentAlignment="Stretch"
102
         VerticalAlignment="Center"/>
103 102

  
104
        <StackPanel Grid.Row="2" Grid.ColumnSpan="8">
103
        </Grid>
104
        <Grid  Grid.Row="1"/>
105
        <StackPanel Grid.Row="3" Grid.ColumnSpan="11">
105 106
            <StackPanel Orientation="Horizontal">
106
                <TextBlock Text="CreateTime  " VerticalAlignment="Center"/>
107
                <telerik:RadDateTimePicker x:Name="datePicker1" Width="800"
107
                <TextBlock Text="CreateTime  " VerticalAlignment="Center" Width="102"/>
108
                <telerik:RadDateTimePicker x:Name="datePicker1" Width="200"
108 109
                                   InputMode="DateTimePicker"  
109 110
                                   VerticalAlignment="Center"
110
                                   HorizontalAlignment="Center"
111
                                   HorizontalAlignment="Stretch"
111 112
                                   SelectedValue="{Binding SelectedCreateTimeBegin ,Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged }" >
112 113
                </telerik:RadDateTimePicker>
113 114
                <!--<DatePicker Text="{Binding OpenStartTime, StringFormat='yy.mm.dd HH:mm:ss' ,RelativeSource={RelativeSource AncestorType={x:Type DatePicker}}}" SelectedDate="{Binding SelectedOpenTime}" Width="124" SelectedDateFormat="Long" Margin="0,-1,0,1"/>-->
114
                <TextBlock Text="  ~  "/>
115
                <telerik:RadDateTimePicker x:Name="datePicker2"
115
                <TextBlock Text="  ~  " VerticalAlignment="Center"/>
116
                <telerik:RadDateTimePicker x:Name="datePicker2"  Width="200"
116 117
                                   InputMode="DateTimePicker"  HorizontalAlignment="Stretch"
117 118
                                   VerticalAlignment="Center"
118
                                   Width="800"
119 119
                                   SelectedValue="{Binding SelectedCreateTimeEnd ,Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged}"
120 120
                                   Margin="0,1">
121 121
                </telerik:RadDateTimePicker>
ConvertService/ServiceBase/Markus.Service.StationController/Controls/DatabaseFilter.xaml.cs
34 34
        public static readonly DependencyProperty RevisionProperty = DependencyProperty.Register("Revision", typeof(string), typeof(DatabaseFilter), null);
35 35
        public static readonly DependencyProperty CreateTimeBeginProperty = DependencyProperty.Register("CreateTimeBegin", typeof(string), typeof(DatabaseFilter), null);
36 36
        public static readonly DependencyProperty CreateTimeEndProperty = DependencyProperty.Register("CreateTimeEnd", typeof(string), typeof(DatabaseFilter), null);
37
        public static readonly DependencyProperty GroupNOProperty = DependencyProperty.Register("GroupNO", typeof(string), typeof(DatabaseFilter), null);
37 38

  
38 39
        public string ProjectNo
39 40
        {
......
113 114
                this.SetValue(ProjectNoProperty, value);
114 115
            }
115 116
        }
117
        public string GroupNO
118
        {
119
            get
120
            {
121
                return (string)this.GetValue(GroupNOProperty);
122
            }
123
            set
124
            {
125
                this.SetValue(GroupNOProperty, value);
126
            }
127
        }
116 128
        public DateTime CreateTimeBegin
117 129
        {
118 130
            get
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/DataBaseItemsModel.cs
44 44
            RemoveCreateTimeFilterCommand = new DelegateCommand(RemoveCreateTimeFilter);
45 45
            FilterConvertSourceView.Filter = new Predicate<object>(o => DetailFilter(o as ConvertItem));
46 46
            ResetCommand = new DelegateCommand(Reset);
47
            ConverAddCommand = new DelegateCommand(ConverAdd);
47 48
        }
48 49

  
49 50
        #endregion
......
283 284
                    _ProjectNumberFilter = value;
284 285
                    OnPropertyChanged(() => ProjectNumberFilter);
285 286
                    //CollectionViewSource.GetDefaultView(FilterConvertSource).Refresh();
286
                    FilterConvertSourceView.Refresh();
287
                    //FilterConvertSourceView.Refresh();
287 288
                }
288 289
            }
289 290
        }
......
306 307
                    _UniqueKeyFilter = value;
307 308
                    OnPropertyChanged(() => UniqueKeyFilter);
308 309
                    //CollectionViewSource.GetDefaultView(FilterConvertSource).Refresh();
309
                    FilterConvertSourceView.Refresh();
310
                    //FilterConvertSourceView.Refresh();
310 311
                }
311 312
            }
312 313
        }
......
322 323
                    _ConvertStateFilter = value;
323 324
                    OnPropertyChanged(() => ConvertStateFilter);
324 325
                    //CollectionViewSource.GetDefaultView(FilterConvertSource).Refresh();
325
                    FilterConvertSourceView.Refresh();
326
                    //FilterConvertSourceView.Refresh();
326 327
                }
327 328
            }
328 329
        }
......
342 343
                    _Docuemnt_NOFilter = value;
343 344
                    OnPropertyChanged(() => Docuemnt_NOFilter);
344 345
                    //CollectionViewSource.GetDefaultView(FilterConvertSource).Refresh();
345
                    FilterConvertSourceView.Refresh();
346
                    //FilterConvertSourceView.Refresh();
346 347
                }
347 348
            }
348 349
        }
......
362 363
                    _Docuemnt_NameFilter = value;
363 364
                    OnPropertyChanged(() => Docuemnt_NameFilter);
364 365
                    //CollectionViewSource.GetDefaultView(FilterConvertSource).Refresh();
365
                    FilterConvertSourceView.Refresh();
366
                    //FilterConvertSourceView.Refresh();
366 367
                }
367 368
            }
368 369
        }
......
382 383
                    _ReconverterFilter = value;
383 384
                    OnPropertyChanged(() => ReconverterFilter);
384 385
                    //CollectionViewSource.GetDefaultView(FilterConvertSource).Refresh();
385
                    FilterConvertSourceView.Refresh();
386
                    //FilterConvertSourceView.Refresh();
386 387

  
387 388
                }
388 389
            }
......
403 404
                    _Service_IDFilter = value;
404 405
                    OnPropertyChanged(() => Service_IDFilter);
405 406
                    //CollectionViewSource.GetDefaultView(FilterConvertSource).Refresh();
406
                    FilterConvertSourceView.Refresh();
407
                    //FilterConvertSourceView.Refresh();
407 408
                }
408 409
            }
409 410
        }
......
423 424
                    _RevisionFilter = value;
424 425
                    OnPropertyChanged(() => RevisionFilter);
425 426
                    //CollectionViewSource.GetDefaultView(FilterConvertSource).Refresh();
426
                    FilterConvertSourceView.Refresh();
427
                    //FilterConvertSourceView.Refresh();
428
                }
429
            }
430
        }
431

  
432
        public string _GroupNOFilter;
433
        public string GroupNOFilter
434
        {
435
            get { return _GroupNOFilter; }
436
            set
437
            {
438
                if (_GroupNOFilter == "")
439
                {
440
                    _GroupNOFilter = null;
441
                }
442
                else if (_GroupNOFilter != value)
443
                {
444
                    _GroupNOFilter = value;
445
                    OnPropertyChanged(() => GroupNOFilter);
446
                    //CollectionViewSource.GetDefaultView(FilterConvertSource).Refresh();
447
                    //FilterConvertSourceView.Refresh();
427 448
                }
428 449
            }
429 450
        }
......
441 462
                _SelectedCreateTimeBegin = value;
442 463
                OnPropertyChanged(() => SelectedCreateTimeBegin);
443 464
                //CollectionViewSource.GetDefaultView(FilterConvertSource).Refresh();
444
                FilterConvertSourceView.Refresh();
465
                //FilterConvertSourceView.Refresh();
445 466
                //AddGeneratorBeginFilter();
446 467

  
447 468
            }
......
459 480
                _SelectedCreateTimeEnd = value;
460 481
                OnPropertyChanged(() => SelectedCreateTimeEnd);
461 482
                //CollectionViewSource.GetDefaultView(FilterConvertSource).Refresh();
462
                FilterConvertSourceView.Refresh();
483
                //FilterConvertSourceView.Refresh();
463 484
                //AddGeneratorBeginFilter();
464 485

  
465 486
            }
466 487
        }
467 488

  
489
        public int _DocpanelHeigh = 800;
490
        public int DocpanelHeight //나중에 다시 해야함
491
        {
492
            get { return _DocpanelHeigh; }
493
            set
494
            {
495
                _DocpanelHeigh = value;
496
                OnPropertyChanged(() => DocpanelHeight);
497
            }
498
        }
499

  
468 500
        private string _Click = "Click";
469 501
        public string Click
470 502
        {
......
484 516

  
485 517
        public DelegateCommand DataFilterCommand { get; private set; }
486 518
        public DelegateCommand ResetCommand { get; private set; }
519
        public DelegateCommand ConverAddCommand { get; private set; }
487 520

  
488 521
        #endregion
489 522

  
......
607 640
                        _status = (int)SelectedStatus.Value;
608 641
                    }
609 642

  
643

  
610 644
                    var items = database.GetConvertProjects(_status, ProjectNumberFilter, UniqueKeyFilter, Docuemnt_NameFilter, Service_IDFilter, Docuemnt_NOFilter
611 645
                        , ReconverterFilter, RevisionFilter)//x:database객체 y:statusCodeTypeList의값  Count()안에 predicator 조건 만족하면 count개수안에 넣음
612 646
                                          .Take(SelectedCount.ValueMember).ToList();
......
687 721
        {
688 722
            try
689 723
            {
690
                using (markusEntities entities = new markusEntities())
724
                using (Markus.Service.DataBase.ConvertDatabase database = new Markus.Service.DataBase.ConvertDatabase(App.MarkusDataBaseConnecitonString))
691 725
                {
726
                    using (markusEntities entities = new markusEntities())
727
                    {
692 728

  
693 729

  
694
                    int _status = 0;
695
                    if (SelectedStatus != null)
696
                    {
697
                        _status = (int)SelectedStatus.Value;
698
                    }
730
                        int _status = 0;
731
                        if (SelectedStatus != null)
732
                        {
733
                            _status = (int)SelectedStatus.Value;
734
                        }
699 735

  
700
                    //DocumentID = unikey
736
                        //DocumentID = unikey
701 737

  
702
                    //null 왼쪽에서 부터 p_BEGIN_START_DATETIE, p_Finish_START_DATETIE, BEGIN_END_DATETIME, Finish_END_DATETIME, Group_No = 11로 해놈 없음 (전에 없애라고 하셔서..)
703
                    //오류떠서  [Model].Context.tt File에서  288줄  Function.Name to edmFunction.FullName바꿨더니 오류 안남
704
                    var items = entities.SELECT_CONVERT_ITEM(ProjectNumberFilter, UniqueKeyFilter, _status, SelectedCount.ValueMember, SelectedCreateTimeBegin, SelectedCreateTimeEnd, null, null, null, null,  11.ToString(),
705
                        Docuemnt_NameFilter, Docuemnt_NOFilter, RevisionFilter);//이대로 그냥 쓰면 쿼리 -> 쿼리 결과는 두 번 이상 열거할 수 없습니다 뜸
738
                        //null 왼쪽에서 부터 p_BEGIN_START_DATETIE, p_Finish_START_DATETIE, BEGIN_END_DATETIME, Finish_END_DATETIME (전에 없애라고 하셔서..)
739
                        //오류떠서  [Model].Context.tt File에서  288줄  Function.Name to edmFunction.FullName바꿨더니 오류 안남
740
                        var items = entities.SELECT_CONVERT_ITEM(ProjectNumberFilter, UniqueKeyFilter, _status, SelectedCount.ValueMember, SelectedCreateTimeBegin, SelectedCreateTimeEnd, null, null, null, null, GroupNOFilter,
741
                            Docuemnt_NameFilter, Docuemnt_NOFilter, RevisionFilter).ToList();//이대로 그냥 쓰면 쿼리 -> 쿼리 결과는 두 번 이상 열거할 수 없습니다 뜸
706 742

  
707
                    //SEARCH 할때 최소한 프로젝트 넘버랑 유니크키(다큐먼트 넘버) 크레이트타임 시작 끝 줘야함
743
                        //SEARCH 할때 최소한 프로젝트 넘버랑 유니크키(다큐먼트 넘버) 크레이트타임 시작 줘야함
708 744

  
709
                    List<ConvertItem> Listitems = new List<ConvertItem>();
745
                        List<ConvertItem> Listitems = new List<ConvertItem>();
710 746

  
711
                    foreach (var x in items)
712
                    {
713
                        ConvertItem AddItem = new ConvertItem(x.ID, x.PROJECT_NO, x.STATUS, x.DOCUMENT_ID, x.DOCUMENT_NAME, x.DOCUMENT_NO, x.DOCUMENT_URL, x.REVISION, x.CURRENT_PAGE, x.TOTAL_PAGE, x.EXCEPTION, x.GROUP_NO);
714
                        Listitems.Add(AddItem);
715
                    }
747
                        foreach (var x in items)
748
                        {
749
                            var convertpath = database.GetSearchConvertPathAndMarkus(x.PROJECT_NO, x.DOCUMENT_ID);
716 750

  
717
                    if (collection.Count() == 0)
718
                    {
719
                        if (statusCodeTypeList.Count() == 1)
751
                            ConvertItem AddItem = new ConvertItem(x.SERVICE_ID, x.ID, x.PROJECT_NO, x.STATUS, x.DOCUMENT_ID, x.DOCUMENT_NAME, x.DOCUMENT_NO, x.DOCUMENT_URL, x.REVISION, x.CURRENT_PAGE, x.TOTAL_PAGE, x.EXCEPTION, x.GROUP_NO, x.CREATE_DATETIME, x.START_DATETIME, x.END_DATETIME
752
                             , x.DOCUMENT_URL, convertpath[0], convertpath[1]);
753
                            Listitems.Add(AddItem);
754
                            //이거 없으면 collection.Insert(i, item); 할때 문제 생김
755
                        }
756

  
757
                        if (collection.Count() == 0)
720 758
                        {
721
                            foreach (var x in Listitems)
759
                            if (statusCodeTypeList.Count() == 1)
722 760
                            {
723
                                collection.Add(x);
761
                                foreach (var x in Listitems)
762
                                {
763
                                    collection.Add(x);
764
                                }
724 765
                            }
725 766
                        }
726
                    }
727
                    else
728
                    {
729

  
730
                        ////세미 업데이트
731
                        foreach (var newitem in Listitems)
767
                        else
732 768
                        {
733
                            collection.UpdateWhere(changeitem =>
734
                            ConvertItemEx.ChangeValues(changeitem, newitem), x => x.ProjectNumber == newitem.ProjectNumber && x.ConvertID == newitem.ConvertID);
735
                        }
736 769

  
770
                            ////세미 업데이트
771
                            foreach (var newitem in Listitems)
772
                            {
773
                                collection.UpdateWhere(changeitem =>
774
                                ConvertItemEx.ChangeValues(changeitem, newitem), x => x.ProjectNumber == newitem.ProjectNumber && x.ConvertID == newitem.ConvertID);
775
                            }
737 776

  
738
                        if (statusCodeTypeList.Count() == 1)
739
                        {
740 777

  
741
                            //삭제
742
                            for (int i = collection.Count() - 1; i >= 0; --i)
778
                            if (statusCodeTypeList.Count() == 1)
743 779
                            {
744
                                var item = collection[i];
745 780

  
746
                                if (Listitems.Count(x => x.ConvertID == item.ConvertID && x.ProjectNumber == item.ProjectNumber) == 0)
781
                                //삭제
782
                                for (int i = collection.Count() - 1; i >= 0; --i)
747 783
                                {
748
                                    collection.RemoveAt(i);
784
                                    var item = collection[i];
785

  
786
                                    if (Listitems.Count(x => x.ConvertID == item.ConvertID && x.ProjectNumber == item.ProjectNumber) == 0)
787
                                    {
788
                                        collection.RemoveAt(i);
789
                                    }
749 790
                                }
750 791
                            }
751
                        }
752 792

  
753
                        if (statusCodeTypeList.Count() == 1)
754
                        {
755
                            //추가 convert 후 추가됨
756
                            foreach (var item in Listitems)
793
                            if (statusCodeTypeList.Count() == 1)
757 794
                            {
758
                                if (collection.Count(x => x.ConvertID == item.ConvertID && x.ProjectNumber == item.ProjectNumber) == 0)
795
                                //추가 convert 후 추가됨
796
                                foreach (var item in Listitems)
759 797
                                {
760
                                    for (int i = 0; i < 200; i++)
798
                                    if (collection.Count(x => x.ConvertID == item.ConvertID && x.ProjectNumber == item.ProjectNumber) == 0)
761 799
                                    {
762
                                        if (i < collection.Count() - 1)
800
                                        for (int i = 0; i < 200; i++)
763 801
                                        {
764
                                            if (DateTime.Compare(collection[i].CreateTime, item.CreateTime) < 0)
802
                                            if (i < collection.Count() - 1)
765 803
                                            {
766
                                                collection.Insert(i, item);
804
                                                if (DateTime.Compare(collection[i].CreateTime, item.CreateTime) < 0)
805
                                                {
806
                                                    collection.Insert(i, item);
807
                                                    break;
808
                                                }
809
                                            }
810
                                            else
811
                                            {
812
                                                collection.Add(item);
767 813
                                                break;
768 814
                                            }
769 815
                                        }
770
                                        else
771
                                        {
772
                                            collection.Add(item);
773
                                            break;
774
                                        }
816

  
775 817
                                    }
776 818

  
777 819
                                }
778

  
779 820
                            }
780
                        }
781 821

  
822
                        }
782 823
                    }
783 824
                }
784 825

  
......
1212 1253

  
1213 1254
        #endregion
1214 1255

  
1256

  
1257
        #region
1258

  
1259
        /// <summary>
1260
        /// 그리드 상단 Conver 추가 버튼
1261
        /// ProjectNo, DocumentURL, DocumentID, 입력해서 저장 프로시저에서 추가 
1262
        /// </summary>
1263

  
1264
        public void ConverAdd(object obj)
1265
        {
1266

  
1267
        }
1268

  
1269
        #endregion
1270

  
1215 1271
        #endregion
1216 1272
    }
1217 1273
}
ConvertService/ServiceBase/Markus.Service.StationController/Views/DataBaseView.xaml
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 12
             mc:Ignorable="d"  Background="White" DataContext="{DynamicResource DataBaseItemsModel}" 
13
    d:DesignHeight="450" d:DesignWidth="800">
13
    d:DesignHeight="450" d:DesignWidth="1000">
14 14
    <UserControl.Resources>
15 15
        <Style TargetType="telerik:GridViewCell" x:Key="StretchCellStyle">
16 16
            <Setter Property="Margin" Value="0"/>
......
60 60
            <!--<telerik:RadToggleButton Content=" Filter" Command="{Binding DataFilterCommand, Mode=OneWay}"/>-->
61 61
        </StackPanel>
62 62
        <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" >
63
            <Grid.ColumnDefinitions>
63
            <!--<Grid.ColumnDefinitions>
64 64
                <ColumnDefinition Width="387*"/>
65 65
                <ColumnDefinition Width="13*"/>
66 66
            </Grid.ColumnDefinitions>
67 67
            <Grid.RowDefinitions>
68 68
                <RowDefinition Height="*"/>
69 69
                <RowDefinition Height="*" />
70
                <RowDefinition Height="Auto"/>
71
                <RowDefinition Height="Auto"/>
70
                <RowDefinition Height="*"/>
71
                <RowDefinition Height="*"/>
72
            </Grid.RowDefinitions>-->
73
            <Grid.ColumnDefinitions>
74
                <ColumnDefinition Width="387*"/>
75
                <ColumnDefinition Width="13*"/>
76
            </Grid.ColumnDefinitions>
77
            <Grid.RowDefinitions>
78
                <RowDefinition MaxHeight="1000"/>
72 79
            </Grid.RowDefinitions>
73
            <telerik:RadExpander ExpandDirection="Down"  BorderThickness="0"  Grid.Row="0" IsExpanded="False" telerik:AnimationManager.IsAnimationEnabled="False">
74
                <StackPanel Orientation="Vertical">
75
                        <controls:DatabaseFilter ProjectNo="{Binding ProjectNumberFilter,Mode=TwoWay}" UniqueKey="{Binding UniqueKeyFilter,Mode=TwoWay}" Service_ID="{Binding Service_IDFilter, Mode=TwoWay}"
80

  
81
            <StackPanel>
82
                <DockPanel LastChildFill="True" MaxHeight="{Binding DocpanelHeight}">
83

  
84
                    <telerik:RadExpander ExpandDirection="Down"  BorderThickness="0"  Grid.Row="0" IsExpanded="False" telerik:AnimationManager.IsAnimationEnabled="False" DockPanel.Dock="Top">
85
                        <StackPanel Orientation="Vertical">
86
                            <controls:DatabaseFilter ProjectNo="{Binding ProjectNumberFilter,Mode=TwoWay}" UniqueKey="{Binding UniqueKeyFilter,Mode=TwoWay}" Service_ID="{Binding Service_IDFilter, Mode=TwoWay}"
76 87
                                             Docuemnt_Name="{Binding Docuemnt_NameFilter, Mode=TwoWay}" Docuemnt_NO="{Binding Docuemnt_NOFilter, Mode=TwoWay}" Reconverter="{Binding ReconverterFilter, Mode=TwoWay}"
77
                                             Revision="{Binding RevisionFilter, Mode=TwoWay}" HorizontalAlignment="Stretch"/>
78
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
79
                        <telerik:RadToggleButton Content=" 검색" Command="{Binding DataFilterCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
80
                        <telerik:RadToggleButton Content=" 원상복귀" Command="{Binding ResetCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
81
                    </StackPanel>
82
                </StackPanel>
83
            </telerik:RadExpander>
88
                                             Revision="{Binding RevisionFilter, Mode=TwoWay}" GroupNO="{Binding GroupNOFilter, Mode=TwoWay}"/>
89
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
90
                                <telerik:RadToggleButton Content=" Convert 추가" Command="{Binding ConverAddCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
91
                                <telerik:RadToggleButton Content=" 검색" Command="{Binding DataFilterCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
92
                                <telerik:RadToggleButton Content=" 원상복귀" Command="{Binding ResetCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
93
                            </StackPanel>
94
                        </StackPanel>
95
                    </telerik:RadExpander>
84 96

  
85
            <telerik:RadExpander ExpandDirection="Down"  BorderThickness="0" MaxHeight="700" Grid.Row="1"
86
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" IsExpanded="True"
87
                             telerik:AnimationManager.IsAnimationEnabled="False" Margin="0,0,0,17">
97
                    <telerik:RadExpander ExpandDirection="Down"  BorderThickness="0" DockPanel.Dock="Top" Grid.Row="1"
98
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"  ScrollViewer.VerticalScrollBarVisibility="Auto"  IsExpanded="True"
99
                             telerik:AnimationManager.IsAnimationEnabled="False" >
88 100

  
89
                <telerik:RadExpander.Header>
90
                    <Grid>
91
                        <Grid.ColumnDefinitions>
92
                            <ColumnDefinition Width="Auto"/>
93
                            <ColumnDefinition Width="Auto"/>
94
                        </Grid.ColumnDefinitions>
95
                        <TextBlock Text="DataBase Items : "/>
96
                        <TextBlock Text="{Binding SelectedCount.DisplayMember, StringFormat=\{0:d\}}" Grid.Column="1"/>
97
                    </Grid>
98
                </telerik:RadExpander.Header>
99
                <!--ItemsSource="{Binding FilterConvertSource}" -->
100
                <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
101
							 ItemsSource="{Binding FilterConvertSourceView}"
101
                        <telerik:RadExpander.Header>
102
                            <Grid>
103
                                <Grid.ColumnDefinitions>
104
                                    <ColumnDefinition Width="Auto"/>
105
                                    <ColumnDefinition Width="Auto"/>
106
                                </Grid.ColumnDefinitions>
107
                                <TextBlock Text="DataBase Items : "/>
108
                                <TextBlock Text="{Binding SelectedCount.DisplayMember, StringFormat=\{0:d\}}" Grid.Column="1"/>
109
                            </Grid>
110
                        </telerik:RadExpander.Header>
111
                        <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
112
							 ItemsSource="{Binding FilterConvertSourceView}" 
102 113
                             SelectedItem="{Binding SelectFilterConvert, Mode=TwoWay}"
103 114
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
104 115
							 AutoGenerateColumns="False" CanUserFreezeColumns="True"
......
106 117
                             Grid.Row="1"  ScrollViewer.CanContentScroll="True" IsFilteringAllowed="True"
107 118
                             LeftFrozenColumnCount="6" 
108 119
                             RightFrozenColumnCount="0">
109
                    <telerik:RadContextMenu.ContextMenu>
110
                        <telerik:RadContextMenu x:Name= "GridContextMenu">
111
                            <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
112
                            <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
113
                            <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
114
                        </telerik:RadContextMenu>
115
                    </telerik:RadContextMenu.ContextMenu>
116
                    <telerik:RadGridView.Columns>
117
                        <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
118
                        <telerik:GridViewDataColumn Header="Convert ID "
120
                            <telerik:RadContextMenu.ContextMenu>
121
                                <telerik:RadContextMenu x:Name= "GridContextMenu">
122
                                    <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
123
                                    <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
124
                                    <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
125
                                </telerik:RadContextMenu>
126
                            </telerik:RadContextMenu.ContextMenu>
127
                            <telerik:RadGridView.Columns>
128
                                <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
129
                                <telerik:GridViewDataColumn Header="Convert ID "
119 130
											DataMemberBinding="{Binding ConvertID}" Width="1.5*" />
120
                        <telerik:GridViewDataColumn x:Name="commend" Header="Markus " Width="0.5*"  CellStyle="{StaticResource StretchCellStyle}">
121
                            <telerik:GridViewDataColumn.CellTemplate>
122
                                <DataTemplate>
123
                                    <telerik:RadButton Content="Click" BorderThickness="0"
131
                                <telerik:GridViewDataColumn x:Name="commend" Header="Markus " Width="0.5*"  CellStyle="{StaticResource StretchCellStyle}">
132
                                    <telerik:GridViewDataColumn.CellTemplate>
133
                                        <DataTemplate>
134
                                            <telerik:RadButton Content="Click" BorderThickness="0"
124 135
                                                   Background="Transparent"
125 136
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
126
                                </DataTemplate>
127
                            </telerik:GridViewDataColumn.CellTemplate>
128
                        </telerik:GridViewDataColumn>
129
                        <telerik:GridViewDataColumn Header="ProjectNO" 
137
                                        </DataTemplate>
138
                                    </telerik:GridViewDataColumn.CellTemplate>
139
                                </telerik:GridViewDataColumn>
140
                                <telerik:GridViewDataColumn Header="ProjectNO" 
130 141
											DataMemberBinding="{Binding ProjectNumber}" Width="*" />
131
                        <telerik:GridViewDataColumn Header="UniqueKey"
142
                                <telerik:GridViewDataColumn Header="UniqueKey"
132 143
											DataMemberBinding="{Binding UniqueKey}" Width="*" />
133
                        <telerik:GridViewDataColumn Header="ConvertState"
144
                                <telerik:GridViewDataColumn Header="ConvertState"
134 145
											DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" Width="*" />
135
                        <telerik:GridViewDataColumn Header="CurrentPageNo"
146
                                <telerik:GridViewDataColumn Header="CurrentPageNo"
136 147
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
137
                        <telerik:GridViewDataColumn Header="TotalPageNo"
148
                                <telerik:GridViewDataColumn Header="TotalPageNo"
138 149
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*"  />
139
                        <telerik:GridViewDynamicHyperlinkColumn Header="원본파일"
150
                                <telerik:GridViewDynamicHyperlinkColumn Header="원본파일"
140 151
                                                        NavigateUrlFormatString=" {0}"
141 152
													    NavigateUrlMemberPaths="OriginfilePath"
142 153
														Width="2*">
143
                            <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
144
                                <DataTemplate>
145
                                    <TextBlock Text="{Binding FileName}"/>
146
                                </DataTemplate>
147
                            </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
148
                        </telerik:GridViewDynamicHyperlinkColumn>
149
                        <telerik:GridViewDataColumn Header=" ConvertPath"
154
                                    <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
155
                                        <DataTemplate>
156
                                            <TextBlock Text="{Binding FileName}"/>
157
                                        </DataTemplate>
158
                                    </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
159
                                </telerik:GridViewDynamicHyperlinkColumn>
160
                                <telerik:GridViewDataColumn Header=" ConvertPath"
150 161
											DataMemberBinding="{Binding ConvertPath}" Width="2.5*" />
151
                        <telerik:GridViewDataColumn Header="CreateTime" 
162
                                <telerik:GridViewDataColumn Header="CreateTime" 
152 163
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
153
                        <telerik:GridViewDataColumn Header="StartTime" 
164
                                <telerik:GridViewDataColumn Header="StartTime" 
154 165
											DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
155
                        <telerik:GridViewDataColumn Header="EndTime" 
166
                                <telerik:GridViewDataColumn Header="EndTime" 
156 167
											DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
157
                    </telerik:RadGridView.Columns>
158
                </telerik:RadGridView>
159
            </telerik:RadExpander>
160
            
161
            <telerik:RadExpander Grid.Row="2" ExpandDirection="Down" BorderThickness="0" 
168
                            </telerik:RadGridView.Columns>
169
                        </telerik:RadGridView>
170
                    </telerik:RadExpander>
171

  
172
                </DockPanel>
173

  
174
                <telerik:RadExpander Grid.Row="2" ExpandDirection="Down" BorderThickness="0"  DockPanel.Dock="Top"
162 175
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
163 176
                             telerik:AnimationManager.IsAnimationEnabled="False" IsExpanded ="{Binding ConvertShow, Mode=TwoWay}">
164
                <telerik:RadExpander.Header>
165
                    <Grid>
166
                        <Grid.ColumnDefinitions>
167
                            <ColumnDefinition Width="Auto"/>
168
                            <ColumnDefinition Width="Auto"/>
169
                        </Grid.ColumnDefinitions>
170
                        <TextBlock Text="RealConvert Items : "/>
171
                        <TextBlock Text="{Binding RealConvertSource.Count, StringFormat=\{0:d\}}" Grid.Column="1"/>
172
                    </Grid>
173
                </telerik:RadExpander.Header>
174
                <telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
177
                    <telerik:RadExpander.Header>
178
                        <Grid>
179
                            <Grid.ColumnDefinitions>
180
                                <ColumnDefinition Width="Auto"/>
181
                                <ColumnDefinition Width="Auto"/>
182
                            </Grid.ColumnDefinitions>
183
                            <TextBlock Text="RealConvert Items : "/>
184
                            <TextBlock Text="{Binding RealConvertSource.Count, StringFormat=\{0:d\}}" Grid.Column="1"/>
185
                        </Grid>
186
                    </telerik:RadExpander.Header>
187
                    <telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
175 188
							 ItemsSource="{Binding RealConvertSource}"
176 189
                             SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}"
177 190
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
178 191
							 AutoGenerateColumns="False" CanUserFreezeColumns="False"
179 192
                             ColumnWidth="*"  RowDetailsVisibilityMode="VisibleWhenSelected"
180 193
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
181
                    <telerik:RadContextMenu.ContextMenu>
182
                        <telerik:RadContextMenu>
183
                            <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
184
                            <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
185
                            <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
186
                        </telerik:RadContextMenu>
187
                    </telerik:RadContextMenu.ContextMenu>
188
                    <telerik:RadGridView.Columns>
189
                        <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
194
                        <telerik:RadContextMenu.ContextMenu>
195
                            <telerik:RadContextMenu>
196
                                <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
197
                                <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
198
                                <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
199
                            </telerik:RadContextMenu>
200
                        </telerik:RadContextMenu.ContextMenu>
201
                        <telerik:RadGridView.Columns>
202
                            <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
190 203

  
191
                        <telerik:GridViewDataColumn Header="Convert ID "
204
                            <telerik:GridViewDataColumn Header="Convert ID "
192 205
											DataMemberBinding="{Binding ConvertID}" Width="1.5*" />
193 206

  
194
                        <telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}">
195
                            <telerik:GridViewDataColumn.CellTemplate>
196
                                <DataTemplate>
197
                                    <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
207
                            <telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}">
208
                                <telerik:GridViewDataColumn.CellTemplate>
209
                                    <DataTemplate>
210
                                        <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
198 211
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
199
                                </DataTemplate>
200
                            </telerik:GridViewDataColumn.CellTemplate>
201
                        </telerik:GridViewDataColumn>
212
                                    </DataTemplate>
213
                                </telerik:GridViewDataColumn.CellTemplate>
214
                            </telerik:GridViewDataColumn>
202 215

  
203
                        <telerik:GridViewDataColumn Header="ProjectNO" 
216
                            <telerik:GridViewDataColumn Header="ProjectNO" 
204 217
											DataMemberBinding="{Binding ProjectNumber}" Width="*" />
205
                        <telerik:GridViewDataColumn Header="UniqueKey"
218
                            <telerik:GridViewDataColumn Header="UniqueKey"
206 219
											DataMemberBinding="{Binding UniqueKey}" Width="*" />
207
                        <telerik:GridViewDataColumn Header="ConvertState"
220
                            <telerik:GridViewDataColumn Header="ConvertState"
208 221
											DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" Width="*" />
209 222

  
210
                        <telerik:GridViewDataColumn Header="CurrentPageNo"
223
                            <telerik:GridViewDataColumn Header="CurrentPageNo"
211 224
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
212
                        <telerik:GridViewDataColumn Header="TotalPageNo"
225
                            <telerik:GridViewDataColumn Header="TotalPageNo"
213 226
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
214
                        <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
227
                            <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
215 228
                                                        NavigateUrlFormatString="{}{0}"
216 229
													    NavigateUrlMemberPaths="OriginfilePath"
217 230
														Width="2*">
218
                            <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
219
                                <DataTemplate>
220
                                    <TextBlock Text="{Binding FileName}"/>
221
                                </DataTemplate>
222
                            </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
223
                        </telerik:GridViewDynamicHyperlinkColumn>
224
                        <telerik:GridViewDataColumn Header=" ConvertPath"
231
                                <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
232
                                    <DataTemplate>
233
                                        <TextBlock Text="{Binding FileName}"/>
234
                                    </DataTemplate>
235
                                </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
236
                            </telerik:GridViewDynamicHyperlinkColumn>
237
                            <telerik:GridViewDataColumn Header=" ConvertPath"
225 238
											DataMemberBinding="{Binding ConvertPath}" Width="2.5*" />
226
                        <telerik:GridViewDataColumn Header="CreateTime"
239
                            <telerik:GridViewDataColumn Header="CreateTime"
227 240
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
228
                        <telerik:GridViewDataColumn Header="StartTime"
241
                            <telerik:GridViewDataColumn Header="StartTime"
229 242
											DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
230
                        <telerik:GridViewDataColumn Header="EndTime"
243
                            <telerik:GridViewDataColumn Header="EndTime"
231 244
											DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
232
                    </telerik:RadGridView.Columns>
233
                </telerik:RadGridView>
234
            </telerik:RadExpander>
235
            
236
            
237
            
238
            <telerik:RadExpander Grid.Row="3" ExpandDirection="Down" BorderThickness="0"  VerticalAlignment="Stretch"
239
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
245
                        </telerik:RadGridView.Columns>
246
                    </telerik:RadGridView>
247
                </telerik:RadExpander>
248

  
249
                <telerik:RadExpander Grid.Row="3" ExpandDirection="Down" BorderThickness="0"  VerticalAlignment="Stretch"
250
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" DockPanel.Dock="Top"
240 251
                             telerik:AnimationManager.IsAnimationEnabled="False" >
241
                <telerik:RadExpander.Header>
242
                    <Grid>
243
                        <Grid.RowDefinitions>
244
                            <RowDefinition Height="11*"/>
245
                            <RowDefinition Height="5*"/>
246
                        </Grid.RowDefinitions>
247
                        <Grid.ColumnDefinitions>
248
                            <ColumnDefinition Width="Auto"/>
249
                            <ColumnDefinition Width="Auto"/>
250
                        </Grid.ColumnDefinitions>
251
                        <TextBlock Text="Alive Items : " Grid.RowSpan="2"/>
252
                        <TextBlock Text="{Binding AliveItems.Count, StringFormat=\{0:d\}}" Grid.Column="1" Grid.RowSpan="2"/>
253
                    </Grid>
254
                </telerik:RadExpander.Header>
255
                <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
252
                    <telerik:RadExpander.Header>
253
                        <Grid>
254
                            <Grid.RowDefinitions>
255
                                <RowDefinition Height="11*"/>
256
                                <RowDefinition Height="5*"/>
257
                            </Grid.RowDefinitions>
258
                            <Grid.ColumnDefinitions>
259
                                <ColumnDefinition Width="Auto"/>
260
                                <ColumnDefinition Width="Auto"/>
261
                            </Grid.ColumnDefinitions>
262
                            <TextBlock Text="Alive Items : " Grid.RowSpan="2"/>
263
                            <TextBlock Text="{Binding AliveItems.Count, StringFormat=\{0:d\}}" Grid.Column="1" Grid.RowSpan="2"/>
264
                        </Grid>
265
                    </telerik:RadExpander.Header>
266
                    <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
256 267
							 ItemsSource="{Binding AliveItems}" RowDetailsVisibilityMode="VisibleWhenSelected"
257 268
							 AutoGenerateColumns="False" CanUserFreezeColumns="False" RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
258 269
                             ColumnWidth="*"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" >
259
                    <telerik:RadGridView.Columns>
260
                        <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
270
                        <telerik:RadGridView.Columns>
271
                            <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
261 272

  
262
                        <telerik:GridViewDataColumn Header="Convert ID "
273
                            <telerik:GridViewDataColumn Header="Convert ID "
263 274
											DataMemberBinding="{Binding ConvertID}" Width="1.5*"  />
264 275

  
265
                        <telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}">
266
                            <telerik:GridViewDataColumn.CellTemplate>
267
                                <DataTemplate>
268
                                    <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
276
                            <telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}">
277
                                <telerik:GridViewDataColumn.CellTemplate>
278
                                    <DataTemplate>
279
                                        <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
269 280
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
270
                                </DataTemplate>
271
                            </telerik:GridViewDataColumn.CellTemplate>
272
                        </telerik:GridViewDataColumn>
281
                                    </DataTemplate>
282
                                </telerik:GridViewDataColumn.CellTemplate>
283
                            </telerik:GridViewDataColumn>
273 284

  
274
                        <telerik:GridViewDataColumn Header="ProjectNO" 
285
                            <telerik:GridViewDataColumn Header="ProjectNO" 
275 286
											DataMemberBinding="{Binding ProjectNumber}" Width="*" />
276
                        <telerik:GridViewDataColumn Header="UniqueKey"
287
                            <telerik:GridViewDataColumn Header="UniqueKey"
277 288
											DataMemberBinding="{Binding UniqueKey}" Width="*" />
278
                        <telerik:GridViewDataColumn Header="ConvertState"
289
                            <telerik:GridViewDataColumn Header="ConvertState"
279 290
											DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" Width="*" />
280 291

  
281
                        <telerik:GridViewDataColumn Header="CurrentPageNo"
292
                            <telerik:GridViewDataColumn Header="CurrentPageNo"
282 293
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
283
                        <telerik:GridViewDataColumn Header="TotalPageNo"
294
                            <telerik:GridViewDataColumn Header="TotalPageNo"
284 295
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
285
                        <telerik:GridViewDynamicHyperlinkColumn  Header="원본파일"
296
                            <telerik:GridViewDynamicHyperlinkColumn  Header="원본파일"
286 297
                                                        NavigateUrlFormatString="{}{0}"
287 298
													    NavigateUrlMemberPaths="OriginfilePath"
288 299
														Width="*">
289
                            <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
290
                                <DataTemplate>
291
                                    <TextBlock Text="{Binding FileName}"/>
292
                                </DataTemplate>
293
                            </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
294
                        </telerik:GridViewDynamicHyperlinkColumn>
295
                        <telerik:GridViewDataColumn Header=" ConvertPath"
300
                                <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
301
                                    <DataTemplate>
302
                                        <TextBlock Text="{Binding FileName}"/>
303
                                    </DataTemplate>
304
                                </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
305
                            </telerik:GridViewDynamicHyperlinkColumn>
306
                            <telerik:GridViewDataColumn Header=" ConvertPath"
296 307
											DataMemberBinding="{Binding ConvertPath}" Width="2.5*" />
297
                        <telerik:GridViewDataColumn Header="CreateTime"
308
                            <telerik:GridViewDataColumn Header="CreateTime"
298 309
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
299
                        <telerik:GridViewDataColumn Header="StartTime"
310
                            <telerik:GridViewDataColumn Header="StartTime"
300 311
											DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
301
                        <telerik:GridViewDataColumn Header="EndTime"
312
                            <telerik:GridViewDataColumn Header="EndTime"
302 313
											DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
303
                    </telerik:RadGridView.Columns>
304
                </telerik:RadGridView>
305
            </telerik:RadExpander>
314
                        </telerik:RadGridView.Columns>
315
                    </telerik:RadGridView>
316
                </telerik:RadExpander>
317

  
318
            </StackPanel>
306 319
        </Grid>
307 320
    </Grid>
308 321
</UserControl>

내보내기 Unified diff

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