프로젝트

일반

사용자정보

개정판 62e3647c

ID62e3647cfb529e83f0d3f4de3a1e97c59435a634
상위 4b369ce1
하위 12701420, ed3cbc75

유성호이(가) 일년 이상 전에 추가함

issue #0000
id2 작업자 입력/수정 가능하도록 변경
document model equals 변경

Change-Id: I4e950f4feba678c8b2c35f4323341323242134e6

차이점 보기:

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

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

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

  
267
            if (this.AttFiles == null && other.AttFiles == null)
268
            {
269
                isAttfilesEqual = true;
270
            }
266
            if ( this.DocumentNo != other.DocumentNo                  ) return false;
267
            if ( this.RevisonNo != other.RevisonNo                    ) return false;
268
            if ( this.System != other.System                          ) return false;
269
            if ( this.SubSystemCode != other.SubSystemCode            ) return false;
270
            if ( this.RefProjectCode != other.RefProjectCode          ) return false;
271
            if ( this.JobLevel != other.JobLevel                      ) return false;
272
            if ( this.PersonInCharge != other.PersonInCharge          ) return false;
273
            if ( this.Worker != other.Worker                          ) return false;
274
            if ( this.ToIsDiscussion != other.ToIsDiscussion          ) return false;
275
            if ( this.ToRemarks != other.ToRemarks                    ) return false;
276
            if ( this.ToCreator != other.ToCreator                    ) return false;
277

  
278
            if ( this.FrReviewStatus != other.FrReviewStatus          ) return false;
279
            if ( this.FrRemarks != other.FrRemarks                    ) return false;
280
            if ( this.FrCreator != other.FrCreator                    ) return false;
281
            if ( this.ID2StartDate != other.ID2StartDate              ) return false;
282
            if ( this.ID2EndDate != other.ID2EndDate                  ) return false;
283
            if ( this.ID2Status != other.ID2Status                    ) return false;
284
            if ( this.ID2Issues != other.ID2Issues                    ) return false;
285
            if ( this.ReplyModifications != other.ReplyModifications  ) return false;
286
            if ( this.ReplyRequester != other.ReplyRequester          ) return false;
287
            if ( this.IsConvert != other.IsConvert                    ) return false;
288
            if ( this.AVEVAPersonInCharge != other.AVEVAPersonInCharge) return false;
289
            if ( this.AVEVAWorker != other.AVEVAWorker                ) return false;
290
            if ( this.AVEVAConvertDate != other.AVEVAConvertDate      ) return false;
291
            if ( this.AVEVAReviewDate != other.AVEVAReviewDate        ) return false;
292
            if ( this.AVEVAWorkDate != other.AVEVAWorkDate            ) return false;
293
            if ( this.AVEVAStatus != other.AVEVAStatus                ) return false;
294
            if ( this.AVEVAIssues != other.AVEVAIssues                ) return false;
295
            if ( this.ProdReviewer != other.ProdReviewer              ) return false;
296
            if ( this.ProdIsResult != other.ProdIsResult              ) return false;
297
            if ( this.ProdRemarks != other.ProdRemarks                ) return false;
298
            if ( this.ClientReviewer != other.ClientReviewer          ) return false;
299
            if ( this.ClientIsResult != other.ClientIsResult          ) return false;
300
            if ( this.ClientRemarks != other.ClientRemarks            ) return false;
301
            if ( this.DTIsGateWay != other.DTIsGateWay                ) return false;
302
            if ( this.DTIsImport != other.DTIsImport                  ) return false;
303
            if ( this.DTIsRegSystem != other.DTIsRegSystem            ) return false;
304
            if ( this.DTRemarks != other.DTRemarks                    ) return false;
305
            if ( this.ConvertStatus != other.ConvertStatus            ) return false;
271 306

  
272
            if (isAttfilesEqual)
307
            if (this.AttFiles == null && other.AttFiles == null)
273 308
            {
274
                if (this.DocumentNo != other.DocumentNo)
275
                    return false;
276

  
277
                if (this.RevisonNo != other.RevisonNo)
278
                    return false;
279

  
280
                if (this.System != other.System)
281
                    return false;
282

  
283
                if (this.SubSystemCode != other.SubSystemCode)
284
                    return false;
285

  
286
                if (this.RefProjectCode != other.RefProjectCode)
287
                    return false;
288

  
289
                if (this.JobLevel != other.JobLevel)
290
                    return false;
291

  
292
                if (this.PersonInCharge != other.PersonInCharge)
293
                    return false;
294

  
295
                if (this.ToIsDiscussion != other.ToIsDiscussion)
296
                    return false;
297

  
298
                if (this.ToRemarks != other.ToRemarks)
299
                    return false;
300

  
301
                if (this.ToCreator != other.ToCreator)
302
                    return false;
303

  
304
                if (this.FrReviewStatus != other.FrReviewStatus) return false;
305
                if ( this.FrRemarks != other.FrRemarks                           )      return false;
306
                if ( this.FrCreator != other.FrCreator                           )      return false;
307
                if ( this.ID2StartDate != other.ID2StartDate                     )      return false;
308
                if ( this.ID2EndDate != other.ID2EndDate                         )      return false;
309
                if ( this.ID2Status != other.ID2Status                           )      return false;
310
                if ( this.ID2Issues != other.ID2Issues                           )      return false;
311
                if ( this.ReplyModifications != other.ReplyModifications         )      return false;
312
                if ( this.ReplyRequester != other.ReplyRequester                 )      return false;
313
                if ( this.IsConvert != other.IsConvert                           )      return false;
314
                if ( this.AVEVAPersonInCharge != other.AVEVAPersonInCharge       )      return false;
315
                if ( this.AVEVAWorker != other.AVEVAWorker                       )      return false;
316
                if ( this.AVEVAConvertDate != other.AVEVAConvertDate             )      return false;
317
                if ( this.AVEVAReviewDate != other.AVEVAReviewDate               )      return false;
318
                if ( this.AVEVAWorkDate != other.AVEVAWorkDate                   )      return false;
319
                if ( this.AVEVAStatus != other.AVEVAStatus                       )      return false;
320
                if ( this.AVEVAIssues != other.AVEVAIssues                       )      return false;
321
                if ( this.ProdReviewer != other.ProdReviewer                     )      return false;
322
                if ( this.ProdIsResult != other.ProdIsResult                     )      return false;
323
                if ( this.ProdRemarks != other.ProdRemarks                       )      return false;
324
                if ( this.ClientReviewer != other.ClientReviewer                 )      return false;
325
                if ( this.ClientIsResult != other.ClientIsResult                 )      return false;
326
                if ( this.ClientRemarks != other.ClientRemarks                   )      return false;
327
                if ( this.DTIsGateWay != other.DTIsGateWay                       )      return false;
328
                if ( this.DTIsImport != other.DTIsImport                         )      return false;
329
                if ( this.DTIsRegSystem != other.DTIsRegSystem                   )      return false;
330
                if ( this.DTRemarks != other.DTRemarks                           )      return false;
331
                if ( this.ConvertStatus != other.ConvertStatus) return false;
309
                return true;
332 310
            }
333 311
            else if (this.AttFiles != null && other.AttFiles != null)
334 312
            {
335 313
                if (!this.AttFiles.SequenceEqual(other.AttFiles))
336 314
                    return false;
337 315
            }
316
            else
317
            {
318
                return false;
319
            }
338 320

  
339 321
            //bool result =  this.FrReviewStatus == other.FrReviewStatus && this.FrRemarks == other.FrRemarks && this.FrCreator == other.FrCreator
340 322
            //    && this.ID2StartDate == other.ID2StartDate && this.ID2EndDate == other.ID2EndDate && this.ID2Status == other.ID2Status
......
358 340
        {
359 341
            return this.DocumentNo.GetNullableHash() + this.RevisonNo.GetNullableHash() + this.System.GetNullableHash() + this.SubSystemCode.GetNullableHash()
360 342
                + this.RefProjectCode.GetNullableHash() + this.JobLevel.GetNullableHash()
361
                + this.PersonInCharge.GetNullableHash() + this.ToIsDiscussion.GetNullableHash() + this.ToRemarks.GetNullableHash()
343
                + this.PersonInCharge.GetNullableHash() + this.Worker.GetNullableHash() + this.ToIsDiscussion.GetNullableHash() + this.ToRemarks.GetNullableHash()
362 344
                + this.ToCreator.GetNullableHash()
363 345
                + this.FrReviewStatus.GetNullableHash() + this.FrRemarks.GetNullableHash() + this.FrCreator.GetNullableHash()
364 346
                + this.ID2StartDate.GetNullableHash() + this.ID2EndDate.GetNullableHash() + this.ID2Status.GetNullableHash()
......
419 401
            this.RefProjectCode = docData.RefProjectCode;
420 402
            this.JobLevel = docData.JobLevel;
421 403
            this.PersonInCharge = docData.PersonInCharge;
404
            this.Worker = docData.Worker;
422 405
            this.ToIsDiscussion = docData.ToIsDiscussion;
423 406
            this.ToRemarks = docData.ToRemarks;
424 407
            this.ToCreator = docData.ToCreator;

내보내기 Unified diff

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