프로젝트

일반

사용자정보

개정판 25f68105

ID25f6810591f019655009e255ae769b579e60b1a9
상위 4d2f9e47
하위 d428fc94

김태성이(가) 일년 이상 전에 추가함

issue #0000 cell value change event 변경

Change-Id: Id21398fbcc9a6575804c2687483d853f5ec2dea6

차이점 보기:

ID2.Manager/ID2.Manager.Data/Models/Documents.cs
11 11

  
12 12
namespace ID2.Manager.Data.Models
13 13
{
14
    [DataContract]
15
    [JsonObject(IsReference = true)]
16
    public class Documents : NotifyPropertyChange, IEquatable<Documents>
14
    //[DataContract]
15
    //[JsonObject(IsReference = true)]
16
    public class Documents : NotifyPropertyChange//, IEquatable<Documents>
17 17
    {
18
        [DataMember]
18
        //[DataMember]
19 19
        public bool Checked { get; set; }
20
        [DataMember]
20
        //[DataMember]
21 21
        public int Seq { get; set; }
22
        [DataMember]
22
        //[DataMember]
23 23
        public string DocID { get; set; }
24
        [DataMember]
24
        //[DataMember]
25 25
        public string DocumentNo { get; set; }
26
        [DataMember]
26
        //[DataMember]
27 27
        public string RevisonNo { get; set; }
28
        [DataMember]
28
        //[DataMember]
29 29
        public string System { get; set; }
30
        [DataMember]
30
        //[DataMember]
31 31
        public string SubSystemCode { get; set; }
32 32

  
33 33
        private string _RefProjectCode = string.Empty;
34
        [DataMember]
34
        //[DataMember]
35 35
        public string RefProjectCode
36 36
        {
37 37
            get => this._RefProjectCode;
......
39 39
        }
40 40

  
41 41
        private string _JobLevel = string.Empty;
42
        [DataMember]
42
        //[DataMember]
43 43
        public string JobLevel
44 44
        {
45 45
            get => this._JobLevel;
......
47 47
        }
48 48

  
49 49
        private string _PersonInCharge = string.Empty;
50
        [DataMember]
50
        //[DataMember]
51 51
        public string PersonInCharge
52 52
        {
53 53
            get => this._PersonInCharge;
......
55 55
        }
56 56

  
57 57
        private string _Worker = string.Empty;
58
        [DataMember]
58
        //[DataMember]
59 59
        public string Worker
60 60
        {
61 61
            get =>  this._Worker;
62 62
            set => SetProperty(ref this._Worker, value);
63 63
        }
64 64

  
65
        [DataMember]
65
        //[DataMember]
66 66
        public string RegisteredUser { get; set; }
67
        [DataMember]
67
        //[DataMember]
68 68
        public string ModifiedUser { get; set; }
69
        [DataMember]
69
        //[DataMember]
70 70
        public string DeletedUser { get; set; }
71 71

  
72 72
        private string _ToIsDiscussion = string.Empty;
73
        [DataMember]
73
        //[DataMember]
74 74
        public string ToIsDiscussion
75 75
        {
76 76
            get => this._ToIsDiscussion;
77 77
            set => SetProperty(ref this._ToIsDiscussion, value);
78 78
        }
79 79

  
80
        [DataMember]
80
        //[DataMember]
81 81
        public string ToRemarks { get; set; }
82 82

  
83 83
        private string _ToCreator = string.Empty;
84
        [DataMember]
84
        //[DataMember]
85 85
        public string ToCreator
86 86
        {
87 87
            get => this._ToCreator;
......
91 91
        public int ToCapture { get; set; }
92 92

  
93 93
        private string _FrReviewStatus = string.Empty;
94
        [DataMember]
94
        //[DataMember]
95 95
        public string FrReviewStatus
96 96
        {
97 97
            get => this._FrReviewStatus;
98 98
            set => SetProperty(ref this._FrReviewStatus, value);
99 99
        }
100 100

  
101
        [DataMember]
101
        //[DataMember]
102 102
        public string FrRemarks { get; set; }
103 103

  
104 104
        private string _FrCreator = string.Empty;
105
        [DataMember]
105
        //[DataMember]
106 106
        public string FrCreator
107 107
        {
108 108
            get => this._FrCreator;
......
110 110
        }
111 111

  
112 112
        public int FrCapture { get; set; }
113
        [DataMember]
113
        //[DataMember]
114 114
        public DateTime? ID2StartDate { get; set; }
115
        [DataMember]
115
        //[DataMember]
116 116
        public DateTime? ID2EndDate { get; set; }
117 117

  
118 118

  
119 119
        private string _ID2Status = string.Empty;
120
        [DataMember]
120
        //[DataMember]
121 121
        public string ID2Status
122 122
        {
123 123
            get => this._ID2Status;
......
125 125
        }
126 126

  
127 127

  
128
        [DataMember]
128
        //[DataMember]
129 129
        public string ID2Issues { get; set; }
130 130
        public int ID2Capture { get; set; }
131
        [DataMember]
131
        //[DataMember]
132 132
        public string ReplyModifications { get; set; }
133 133

  
134 134
        private string _ReplyRequester = string.Empty;
135
        [DataMember]
135
        //[DataMember]
136 136
        public string ReplyRequester
137 137
        {
138 138
            get => this._ReplyRequester;
......
140 140
        }
141 141

  
142 142
        private string _IsConvert = string.Empty;
143
        [DataMember]
143
        //[DataMember]
144 144
        public string IsConvert
145 145
        {
146 146
            get => this._IsConvert;
......
148 148
        }
149 149

  
150 150
        private string _AVEVAPersonInCharge = string.Empty;
151
        [DataMember]
151
        //[DataMember]
152 152
        public string AVEVAPersonInCharge
153 153
        {
154 154
            get => this._AVEVAPersonInCharge;
......
156 156
        }
157 157

  
158 158
        private string _AVEVAWorker = string.Empty;
159
        [DataMember]
159
        //[DataMember]
160 160
        public string AVEVAWorker
161 161
        {
162 162
            get => this._AVEVAWorker;
163 163
            set => SetProperty(ref this._AVEVAWorker, value);
164 164
        }
165 165

  
166
        [DataMember]
166
        //[DataMember]
167 167
        public DateTime? AVEVAConvertDate { get; set; }
168
        [DataMember]
168
        //[DataMember]
169 169
        public DateTime? AVEVAReviewDate { get; set; }
170
        [DataMember]
170
        //[DataMember]
171 171
        public DateTime? AVEVAWorkDate { get; set; }
172 172

  
173 173
        private string _AVEVAStatus = string.Empty;
174
        [DataMember]
174
        //[DataMember]
175 175
        public string AVEVAStatus
176 176
        {
177 177
            get => this._AVEVAStatus;
178 178
            set => SetProperty(ref this._AVEVAStatus, value);
179 179
        }
180 180

  
181
        [DataMember]
181
        //[DataMember]
182 182
        public string AVEVAIssues { get; set; }
183 183

  
184 184
        private string _ProdReviewer = string.Empty;
185
        [DataMember]
185
        //[DataMember]
186 186
        public string ProdReviewer
187 187
        {
188 188
            get => this._ProdReviewer;
......
190 190
        }
191 191

  
192 192
        private string _ProdIsResult = string.Empty;
193
        [DataMember]
193
        //[DataMember]
194 194
        public string ProdIsResult
195 195
        {
196 196
            get => this._ProdIsResult;
197 197
            set => SetProperty(ref this._ProdIsResult, value);
198 198
        }
199 199

  
200
        [DataMember]
200
        //[DataMember]
201 201
        public string ProdRemarks { get; set; }
202 202

  
203 203
        private string _ClientReviewer = string.Empty;
204
        [DataMember]
204
        //[DataMember]
205 205
        public string ClientReviewer
206 206
        {
207 207
            get => this._ClientReviewer;
......
209 209
        }
210 210

  
211 211
        private string _ClientIsResult = string.Empty;
212
        [DataMember]
212
        //[DataMember]
213 213
        public string ClientIsResult
214 214
        {
215 215
            get => this._ClientIsResult;
216 216
            set => SetProperty(ref this._ClientIsResult, value);
217 217
        }
218 218

  
219
        [DataMember]
219
        //[DataMember]
220 220
        public string ClientRemarks { get; set; }
221 221

  
222 222
        private string _DTIsGateWay = string.Empty;
223
        [DataMember]
223
        //[DataMember]
224 224
        public string DTIsGateWay
225 225
        {
226 226
            get => this._DTIsGateWay;
......
228 228
        }
229 229

  
230 230
        private string _DTIsImport = string.Empty;
231
        [DataMember]
231
        //[DataMember]
232 232
        public string DTIsImport
233 233
        {
234 234
            get => this._DTIsImport;
......
236 236
        }
237 237

  
238 238
        private string _DTIsRegSystem = string.Empty;
239
        [DataMember]
239
        //[DataMember]
240 240
        public string DTIsRegSystem
241 241
        {
242 242
            get => this._DTIsRegSystem;
243 243
            set => SetProperty(ref this._DTIsRegSystem, value);
244 244
        }
245 245

  
246
        [DataMember]
246
        //[DataMember]
247 247
        public string DTRemarks { get; set; }
248 248

  
249 249
        public List<MarkupText> Markups { get; set; }
......
252 252

  
253 253
        public int ConvertStatus { get; set; }
254 254

  
255
        public override bool Equals(object obj)
256
        {
257
            return Equals(obj as Documents);
258
        }
259

  
260
        public bool Equals(Documents other)
261
        {
262
            bool isAttfilesEqual = false;
263

  
264
            if (this != null && other == null)
265
                return false;
266

  
267
            if (this.AttFiles == null && other.AttFiles == null)
268
            {
269
                isAttfilesEqual = true;
270
            }
271
            else if (this.AttFiles != null && other.AttFiles != null)
272
            {
273
                isAttfilesEqual = this.AttFiles.SequenceEqual(other.AttFiles);
274
            }
275

  
276
            bool result = other != null && this.DocumentNo == other.DocumentNo && this.RevisonNo == other.RevisonNo && this.System == other.System && this.SubSystemCode == other.SubSystemCode
277
                && this.RefProjectCode == other.RefProjectCode && this.JobLevel == other.JobLevel
278
                && this.PersonInCharge == other.PersonInCharge && this.ToIsDiscussion == other.ToIsDiscussion && this.ToRemarks == other.ToRemarks
279
                && this.ToCreator == other.ToCreator
280
                && this.FrReviewStatus == other.FrReviewStatus && this.FrRemarks == other.FrRemarks && this.FrCreator == other.FrCreator
281
                && this.ID2StartDate == other.ID2StartDate && this.ID2EndDate == other.ID2EndDate && this.ID2Status == other.ID2Status
282
                && this.ID2Issues == other.ID2Issues && this.ReplyModifications == other.ReplyModifications && this.ReplyRequester == other.ReplyRequester && this.IsConvert == other.IsConvert && this.AVEVAPersonInCharge == other.AVEVAPersonInCharge && this.AVEVAWorker == other.AVEVAWorker
283
                && this.AVEVAConvertDate == other.AVEVAConvertDate && this.AVEVAReviewDate == other.AVEVAReviewDate && this.AVEVAWorkDate == other.AVEVAWorkDate
284
                && this.AVEVAStatus == other.AVEVAStatus && this.AVEVAIssues == other.AVEVAIssues
285
                && this.ProdReviewer == other.ProdReviewer && this.ProdIsResult == other.ProdIsResult && this.ProdRemarks == other.ProdRemarks && this.ClientReviewer == other.ClientReviewer
286
                && this.ClientIsResult == other.ClientIsResult && this.ClientRemarks == other.ClientRemarks && this.DTIsGateWay == other.DTIsGateWay && this.DTIsImport == other.DTIsImport
287
                && this.DTIsRegSystem == other.DTIsRegSystem && this.DTRemarks == other.DTRemarks && this.ConvertStatus == other.ConvertStatus
288
                && isAttfilesEqual;
289

  
290
            if (result == false)
291
            {
292
                string id = this.DocID;
293
            }
294

  
295
            return result;
296

  
297
        }
298
        public override int GetHashCode()
299
        {
300
            return this.DocumentNo.GetNullableHash() + this.RevisonNo.GetNullableHash() + this.System.GetNullableHash() + this.SubSystemCode.GetNullableHash()
301
                + this.RefProjectCode.GetNullableHash() + this.JobLevel.GetNullableHash()
302
                + this.PersonInCharge.GetNullableHash() + this.ToIsDiscussion.GetNullableHash() + this.ToRemarks.GetNullableHash()
303
                + this.ToCreator.GetNullableHash()
304
                + this.FrReviewStatus.GetNullableHash() + this.FrRemarks.GetNullableHash() + this.FrCreator.GetNullableHash()
305
                + this.ID2StartDate.GetNullableHash() + this.ID2EndDate.GetNullableHash() + this.ID2Status.GetNullableHash()
306
                + this.ID2Issues.GetNullableHash() + this.ReplyModifications.GetNullableHash() + this.ReplyRequester.GetNullableHash() + this.IsConvert.GetNullableHash() + this.AVEVAPersonInCharge.GetNullableHash() + this.AVEVAWorker.GetNullableHash()
307
                + this.AVEVAConvertDate.GetNullableHash() + this.AVEVAReviewDate.GetNullableHash() + this.AVEVAWorkDate.GetNullableHash()
308
                + this.AVEVAStatus.GetNullableHash() + this.AVEVAIssues.GetNullableHash()
309
                + this.ProdReviewer.GetNullableHash() + this.ProdIsResult.GetNullableHash() + this.ProdRemarks.GetNullableHash() + this.ClientReviewer.GetNullableHash()
310
                + this.ClientIsResult.GetNullableHash() + this.ClientRemarks.GetNullableHash() + this.DTIsGateWay.GetNullableHash() + this.DTIsImport.GetNullableHash()
311
                + this.DTIsRegSystem.GetNullableHash() + this.DTRemarks.GetNullableHash() + this.ConvertStatus.GetNullableHash();
312
        }
255
        //public override bool Equals(object obj)
256
        //{
257
        //    return Equals(obj as Documents);
258
        //}
259

  
260
        //public bool Equals(Documents other)
261
        //{
262
        //    bool isAttfilesEqual = false;
263

  
264
        //    if (this != null && other == null)
265
        //        return false;
266

  
267
        //    if (this.AttFiles == null && other.AttFiles == null)
268
        //    {
269
        //        isAttfilesEqual = true;
270
        //    }
271
        //    else if (this.AttFiles != null && other.AttFiles != null)
272
        //    {
273
        //        isAttfilesEqual = this.AttFiles.SequenceEqual(other.AttFiles);
274
        //    }
275

  
276
        //    bool result = other != null && this.DocumentNo == other.DocumentNo && this.RevisonNo == other.RevisonNo && this.System == other.System && this.SubSystemCode == other.SubSystemCode
277
        //        && this.RefProjectCode == other.RefProjectCode && this.JobLevel == other.JobLevel
278
        //        && this.PersonInCharge == other.PersonInCharge && this.ToIsDiscussion == other.ToIsDiscussion && this.ToRemarks == other.ToRemarks
279
        //        && this.ToCreator == other.ToCreator
280
        //        && this.FrReviewStatus == other.FrReviewStatus && this.FrRemarks == other.FrRemarks && this.FrCreator == other.FrCreator
281
        //        && this.ID2StartDate == other.ID2StartDate && this.ID2EndDate == other.ID2EndDate && this.ID2Status == other.ID2Status
282
        //        && this.ID2Issues == other.ID2Issues && this.ReplyModifications == other.ReplyModifications && this.ReplyRequester == other.ReplyRequester && this.IsConvert == other.IsConvert && this.AVEVAPersonInCharge == other.AVEVAPersonInCharge && this.AVEVAWorker == other.AVEVAWorker
283
        //        && this.AVEVAConvertDate == other.AVEVAConvertDate && this.AVEVAReviewDate == other.AVEVAReviewDate && this.AVEVAWorkDate == other.AVEVAWorkDate
284
        //        && this.AVEVAStatus == other.AVEVAStatus && this.AVEVAIssues == other.AVEVAIssues
285
        //        && this.ProdReviewer == other.ProdReviewer && this.ProdIsResult == other.ProdIsResult && this.ProdRemarks == other.ProdRemarks && this.ClientReviewer == other.ClientReviewer
286
        //        && this.ClientIsResult == other.ClientIsResult && this.ClientRemarks == other.ClientRemarks && this.DTIsGateWay == other.DTIsGateWay && this.DTIsImport == other.DTIsImport
287
        //        && this.DTIsRegSystem == other.DTIsRegSystem && this.DTRemarks == other.DTRemarks && this.ConvertStatus == other.ConvertStatus
288
        //        && isAttfilesEqual;
289

  
290
        //    if (result == false)
291
        //    {
292
        //        string id = this.DocID;
293
        //    }
294

  
295
        //    return result;
296

  
297
        //}
298
        //public override int GetHashCode()
299
        //{
300
        //    return this.DocumentNo.GetNullableHash() + this.RevisonNo.GetNullableHash() + this.System.GetNullableHash() + this.SubSystemCode.GetNullableHash()
301
        //        + this.RefProjectCode.GetNullableHash() + this.JobLevel.GetNullableHash()
302
        //        + this.PersonInCharge.GetNullableHash() + this.ToIsDiscussion.GetNullableHash() + this.ToRemarks.GetNullableHash()
303
        //        + this.ToCreator.GetNullableHash()
304
        //        + this.FrReviewStatus.GetNullableHash() + this.FrRemarks.GetNullableHash() + this.FrCreator.GetNullableHash()
305
        //        + this.ID2StartDate.GetNullableHash() + this.ID2EndDate.GetNullableHash() + this.ID2Status.GetNullableHash()
306
        //        + this.ID2Issues.GetNullableHash() + this.ReplyModifications.GetNullableHash() + this.ReplyRequester.GetNullableHash() + this.IsConvert.GetNullableHash() + this.AVEVAPersonInCharge.GetNullableHash() + this.AVEVAWorker.GetNullableHash()
307
        //        + this.AVEVAConvertDate.GetNullableHash() + this.AVEVAReviewDate.GetNullableHash() + this.AVEVAWorkDate.GetNullableHash()
308
        //        + this.AVEVAStatus.GetNullableHash() + this.AVEVAIssues.GetNullableHash()
309
        //        + this.ProdReviewer.GetNullableHash() + this.ProdIsResult.GetNullableHash() + this.ProdRemarks.GetNullableHash() + this.ClientReviewer.GetNullableHash()
310
        //        + this.ClientIsResult.GetNullableHash() + this.ClientRemarks.GetNullableHash() + this.DTIsGateWay.GetNullableHash() + this.DTIsImport.GetNullableHash()
311
        //        + this.DTIsRegSystem.GetNullableHash() + this.DTRemarks.GetNullableHash() + this.ConvertStatus.GetNullableHash();
312
        //}
313 313

  
314 314
        public class DocumentsKeyCompare : IEqualityComparer<Documents>
315 315
        {
......
403 403
    [DataContract]
404 404
    public class ID2Drawings
405 405
    {
406
        [DataMember]
406
        //[DataMember]
407 407
        public string PROJECTNAME { get; set; }
408
        [DataMember]
408
        //[DataMember]
409 409
        public string UID { get; set; }
410
        [DataMember]
410
        //[DataMember]
411 411
        public string NAME { get; set; }
412
        [DataMember]
412
        //[DataMember]
413 413
        public string DOCNAME { get; set; }
414
        [DataMember]
414
        //[DataMember]
415 415
        public DateTime? DATETIME { get; set; }
416
        [DataMember]
416
        //[DataMember]
417 417
        public string OCCUPIED { get; set; }
418
        [DataMember]
418
        //[DataMember]
419 419
        public byte[] Image { get; set; }
420 420
    }
421 421

  
ID2.Manager/ID2.Manager/Classes/LinqExtension.cs
12 12
        {
13 13
            foreach (var item in collection)
14 14
            {
15
                action(item);
15
                action.Invoke(item);
16 16
            }
17 17
        }
18 18
        public static void ParallelForAll<T>(this IEnumerable<T> collection, Action<T> action)
19 19
        {
20
            Parallel.ForEach(collection, item => action(item));
20
            collection.AsParallel().ForAll(item => action.Invoke(item));
21 21
        }
22 22

  
23 23
        public static T Find<T>(this IEnumerable<T> collection, Predicate<T> selector)
ID2.Manager/ID2.Manager/Classes/MarkusConvertWorker.cs
20 20

  
21 21
        string ServiceUri = null;
22 22
        List<Documents> DocList { get; set; }
23
        List<Documents> ErrorDocList { get; set; }
24

  
23 25
        public MarkusConvertWorker(List<Documents> docList, Control parent = null) : base(parent)
24 26
        {
25 27
            ServiceUri = Properties.Settings.Default.MarkusService;
26 28
            this.DocList = docList;
27 29
        }
30

  
28 31
        protected override void DoWork(BackgroundWorker worker, DoWorkEventArgs e)
29 32
        {
30 33
            try
ID2.Manager/ID2.Manager/Main.cs
130 130
            this.radGridViewDocuments.ViewCellFormatting += RadGridViewDocuments_ViewCellFormatting;
131 131
            this.radGridViewDocuments.CreateRowInfo += RadGridViewDocuments_CreateRowInfo;
132 132
            this.radGridViewDocuments.CellBeginEdit += RadGridViewDocuments_CellBeginEdit;
133
            this.radGridViewDocuments.CellEndEdit += RadGridViewDocuments_CellEndEdit;
133 134
            this.radGridViewDocuments.CommandCellClick += RadGridViewDocuments_CommandCellClick;
134 135
            this.radGridViewDocuments.MasterView.TableSearchRow.SearchProgressChanged += TableSearchRow_SearchProgressChanged;
135 136
            //this.radGridViewDocuments.FilterChanging += RadGridViewDocuments_FilterChanging;
......
1770 1771

  
1771 1772
        private void RadGridViewDocuments_CellValidated(object sender, CellValidatedEventArgs e)
1772 1773
        {
1774
            //if (e.Column is GridViewComboBoxColumn)
1775
            //{
1776
            //    bool isChecked = e.Row.Cells["Checked"].Value != null && Convert.ToBoolean(e.Row.Cells["Checked"].Value);
1777

  
1778
            //    if (isChecked)
1779
            //    {
1780
            //        //this.GetCheckedDatas(true)
1781
            //        var chkDatas = documents.Where(x=>x.Checked).ToList();
1782
            //        if (chkDatas.Any())
1783
            //        {
1784
            //            string colValue = e.Row.Cells[e.Column.Name].Value == null ? string.Empty : (string)e.Row.Cells[e.Column.Name].Value;
1785
            //            radGridViewDocuments.MasterTemplate.BeginUpdate();
1786
            //            //radGridViewDocuments.SuspendLayout();
1787
            //            //radGridViewDocuments.SuspendUpdate();
1788
            //            switch (e.Column.Name)
1789
            //            {
1790
            //                case "RefProjectCode":
1791
            //                    chkDatas.ParallelForAll(x => x.RefProjectCode = colValue);
1792
            //                    break;
1793
            //                case "PersonInCharge":
1794
            //                    chkDatas.ParallelForAll(x => x.PersonInCharge = colValue);
1795
            //                    break;
1796
            //                case "Worker":
1797
            //                    chkDatas.ParallelForAll(x => x.Worker = colValue);
1798
            //                    break;
1799
            //                case "JobLevel":
1800
            //                    chkDatas.ParallelForAll(x => x.JobLevel = colValue);
1801
            //                    break;
1802
            //                case "ToIsDiscussion":
1803
            //                    chkDatas.ParallelForAll(x => x.ToIsDiscussion = colValue);
1804
            //                    break;
1805
            //                case "ToCreator":
1806
            //                    chkDatas.ParallelForAll(x => x.ToCreator = colValue);
1807
            //                    break;
1808
            //                case "FrReviewStatus":
1809
            //                    chkDatas.ParallelForAll(x => x.FrReviewStatus = colValue);
1810
            //                    break;
1811
            //                case "FrCreator":
1812
            //                    chkDatas.ParallelForAll(x => x.FrCreator = colValue);
1813
            //                    break;
1814
            //                case "ID2Status":
1815
            //                    chkDatas.ParallelForAll(x => x.ID2Status = colValue);
1816
            //                    break;
1817
            //                case "ReplyRequester":
1818
            //                    chkDatas.ParallelForAll(x => x.ReplyRequester = colValue);
1819
            //                    break;
1820
            //                case "IsConvert":
1821
            //                    chkDatas.ParallelForAll(x => x.IsConvert = colValue);
1822
            //                    break;
1823
            //                case "AVEVAPersonInCharge":
1824
            //                    chkDatas.ParallelForAll(x => x.AVEVAPersonInCharge = colValue);
1825
            //                    break;
1826
            //                case "AVEVAWorker":
1827
            //                    chkDatas.ParallelForAll(x => x.AVEVAWorker = colValue);
1828
            //                    break;
1829
            //                case "AVEVAStatus":
1830
            //                    chkDatas.ParallelForAll(x => x.AVEVAStatus = colValue);
1831
            //                    break;
1832
            //                case "ProdReviewer":
1833
            //                    chkDatas.ParallelForAll(x => x.ProdReviewer = colValue);
1834
            //                    break;
1835
            //                case "ProdIsResult":
1836
            //                    chkDatas.ParallelForAll(x => x.ProdIsResult = colValue);
1837
            //                    break;
1838
            //                case "ClientReviewer":
1839
            //                    chkDatas.ParallelForAll(x => x.ClientReviewer = colValue);
1840
            //                    break;
1841
            //                case "ClientIsResult":
1842
            //                    chkDatas.ParallelForAll(x => x.ClientIsResult = colValue);
1843
            //                    break;
1844
            //                case "DTIsGateWay":
1845
            //                    chkDatas.ParallelForAll(x => x.DTIsGateWay = colValue);
1846
            //                    break;
1847
            //                case "DTIsImport":
1848
            //                    chkDatas.ParallelForAll(x => x.DTIsImport = colValue);
1849
            //                    break;
1850
            //                case "DTIsRegSystem":
1851
            //                    chkDatas.ParallelForAll(x => x.DTIsRegSystem = colValue);
1852
            //                    break;
1853
            //            }
1854
            //            //radGridViewDocuments.ResumeLayout();
1855
            //            //radGridViewDocuments.ResumeUpdate();
1856
            //            radGridViewDocuments.MasterTemplate.EndUpdate();
1857

  
1858

  
1859
            //        }
1860
            //    }
1861
            //}
1862
        }
1863

  
1864

  
1865
        private void RadGridViewDocuments_CellEndEdit(object sender, GridViewCellEventArgs e)
1866
        {
1773 1867
            if (e.Column is GridViewComboBoxColumn)
1774 1868
            {
1775
                bool isChecked = e.Row.Cells["Checked"].Value != null && Convert.ToBoolean(e.Row.Cells["Checked"].Value);
1776

  
1777
                if (isChecked)
1869
                var chkDatas = documents.Where(x => x.Checked).ToList();
1870
                if (chkDatas.Any())
1778 1871
                {
1779
                    var chkDatas = this.GetCheckedDatas(true);
1780
                    if (chkDatas.Any())
1872
                    string colValue = e.Row.Cells[e.Column.Name].Value == null ? string.Empty : (string)e.Row.Cells[e.Column.Name].Value;
1873
                    radGridViewDocuments.MasterTemplate.BeginUpdate();
1874
                    //radGridViewDocuments.SuspendLayout();
1875
                    //radGridViewDocuments.SuspendUpdate();
1876
                    switch (e.Column.Name)
1781 1877
                    {
1782
                        string colValue = e.Row.Cells[e.Column.Name].Value == null ? string.Empty : (string)e.Row.Cells[e.Column.Name].Value;
1783

  
1784
                        switch (e.Column.Name)
1785
                        {
1786
                            case "RefProjectCode":
1787
                                chkDatas.ForAll(x => x.RefProjectCode = colValue);
1788
                                break;
1789
                            case "PersonInCharge":
1790
                                chkDatas.ForAll(x => x.PersonInCharge = colValue);
1791
                                break;
1792
                            case "Worker":
1793
                                chkDatas.ForAll(x => x.Worker = colValue);
1794
                                break;
1795
                            case "JobLevel":
1796
                                chkDatas.ForAll(x => x.JobLevel = colValue);
1797
                                break;
1798
                            case "ToIsDiscussion":
1799
                                chkDatas.ForAll(x => x.ToIsDiscussion = colValue);
1800
                                break;
1801
                            case "ToCreator":
1802
                                chkDatas.ForAll(x => x.ToCreator = colValue);
1803
                                break;
1804
                            case "FrReviewStatus":
1805
                                chkDatas.ForAll(x => x.FrReviewStatus = colValue);
1806
                                break;
1807
                            case "FrCreator":
1808
                                chkDatas.ForAll(x => x.FrCreator = colValue);
1809
                                break;
1810
                            case "ID2Status":
1811
                                chkDatas.ForAll(x => x.ID2Status = colValue);
1812
                                break;
1813
                            case "ReplyRequester":
1814
                                chkDatas.ForAll(x => x.ReplyRequester = colValue);
1815
                                break;
1816
                            case "IsConvert":
1817
                                chkDatas.ForAll(x => x.IsConvert = colValue);
1818
                                break;
1819
                            case "AVEVAPersonInCharge":
1820
                                chkDatas.ForAll(x => x.AVEVAPersonInCharge = colValue);
1821
                                break;
1822
                            case "AVEVAWorker":
1823
                                chkDatas.ForAll(x => x.AVEVAWorker = colValue);
1824
                                break;
1825
                            case "AVEVAStatus":
1826
                                chkDatas.ForAll(x => x.AVEVAStatus = colValue);
1827
                                break;
1828
                            case "ProdReviewer":
1829
                                chkDatas.ForAll(x => x.ProdReviewer = colValue);
1830
                                break;
1831
                            case "ProdIsResult":
1832
                                chkDatas.ForAll(x => x.ProdIsResult = colValue);
1833
                                break;
1834
                            case "ClientReviewer":
1835
                                chkDatas.ForAll(x => x.ClientReviewer = colValue);
1836
                                break;
1837
                            case "ClientIsResult":
1838
                                chkDatas.ForAll(x => x.ClientIsResult = colValue);
1839
                                break;
1840
                            case "DTIsGateWay":
1841
                                chkDatas.ForAll(x => x.DTIsGateWay = colValue);
1842
                                break;
1843
                            case "DTIsImport":
1844
                                chkDatas.ForAll(x => x.DTIsImport = colValue);
1845
                                break;
1846
                            case "DTIsRegSystem":
1847
                                chkDatas.ForAll(x => x.DTIsRegSystem = colValue);
1848
                                break;
1849
                        }
1878
                        case "RefProjectCode":
1879
                            chkDatas.ParallelForAll(x => x.RefProjectCode = colValue);
1880
                            break;
1881
                        case "PersonInCharge":
1882
                            chkDatas.ParallelForAll(x => x.PersonInCharge = colValue);
1883
                            break;
1884
                        case "Worker":
1885
                            chkDatas.ParallelForAll(x => x.Worker = colValue);
1886
                            break;
1887
                        case "JobLevel":
1888
                            chkDatas.ParallelForAll(x => x.JobLevel = colValue);
1889
                            break;
1890
                        case "ToIsDiscussion":
1891
                            chkDatas.ParallelForAll(x => x.ToIsDiscussion = colValue);
1892
                            break;
1893
                        case "ToCreator":
1894
                            chkDatas.ParallelForAll(x => x.ToCreator = colValue);
1895
                            break;
1896
                        case "FrReviewStatus":
1897
                            chkDatas.ParallelForAll(x => x.FrReviewStatus = colValue);
1898
                            break;
1899
                        case "FrCreator":
1900
                            chkDatas.ParallelForAll(x => x.FrCreator = colValue);
1901
                            break;
1902
                        case "ID2Status":
1903
                            chkDatas.ParallelForAll(x => x.ID2Status = colValue);
1904
                            break;
1905
                        case "ReplyRequester":
1906
                            chkDatas.ParallelForAll(x => x.ReplyRequester = colValue);
1907
                            break;
1908
                        case "IsConvert":
1909
                            chkDatas.ParallelForAll(x => x.IsConvert = colValue);
1910
                            break;
1911
                        case "AVEVAPersonInCharge":
1912
                            chkDatas.ParallelForAll(x => x.AVEVAPersonInCharge = colValue);
1913
                            break;
1914
                        case "AVEVAWorker":
1915
                            chkDatas.ParallelForAll(x => x.AVEVAWorker = colValue);
1916
                            break;
1917
                        case "AVEVAStatus":
1918
                            chkDatas.ParallelForAll(x => x.AVEVAStatus = colValue);
1919
                            break;
1920
                        case "ProdReviewer":
1921
                            chkDatas.ParallelForAll(x => x.ProdReviewer = colValue);
1922
                            break;
1923
                        case "ProdIsResult":
1924
                            chkDatas.ParallelForAll(x => x.ProdIsResult = colValue);
1925
                            break;
1926
                        case "ClientReviewer":
1927
                            chkDatas.ParallelForAll(x => x.ClientReviewer = colValue);
1928
                            break;
1929
                        case "ClientIsResult":
1930
                            chkDatas.ParallelForAll(x => x.ClientIsResult = colValue);
1931
                            break;
1932
                        case "DTIsGateWay":
1933
                            chkDatas.ParallelForAll(x => x.DTIsGateWay = colValue);
1934
                            break;
1935
                        case "DTIsImport":
1936
                            chkDatas.ParallelForAll(x => x.DTIsImport = colValue);
1937
                            break;
1938
                        case "DTIsRegSystem":
1939
                            chkDatas.ParallelForAll(x => x.DTIsRegSystem = colValue);
1940
                            break;
1850 1941
                    }
1942
                    //radGridViewDocuments.ResumeLayout();
1943
                    //radGridViewDocuments.ResumeUpdate();
1944
                    radGridViewDocuments.MasterTemplate.EndUpdate();
1851 1945
                }
1852 1946
            }
1853 1947
        }
1854 1948

  
1949

  
1855 1950
        private void RadGridViewDocuments_ValueChanged(object sender, EventArgs e)
1856 1951
        {
1857 1952
            this.radGridViewDocuments.EndEdit();
......
2233 2328
        {
2234 2329
            if(radGridViewDocuments.SelectedRows?.Count() > 0)
2235 2330
            {
2236
                if (radGridViewDocuments.SelectedRows?.Count() > 1)
2237
                {
2331
                List<Documents> checkedDocList = this.documents.Where(x=>x.Checked).ToList();
2238 2332

  
2239
                    var item = radGridViewDocuments.SelectedRows.Select(x=>x.DataBoundItem).Cast<Documents>();
2240

  
2241
                    MarkusConvertWorker convertWorker = new MarkusConvertWorker(item.ToList());
2333
                if (checkedDocList.Count() > 1)
2334
                {
2335
                    MarkusConvertWorker convertWorker = new MarkusConvertWorker(checkedDocList.ToList());
2242 2336
                    convertWorker.StartWork();
2243 2337
                }
2244 2338
                else

내보내기 Unified diff

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