프로젝트

일반

사용자정보

개정판 d428fc94

IDd428fc94c114aebb19c8a3375981fa37cb3e8f7f
상위 25f68105
하위 f0202f86

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

issue #0000 documents 수정

Change-Id: I6c95d3ceed7d5c31fa57206662ec71bfdd90fbb7

차이점 보기:

ID2.Manager/ID2.Manager.Data/Models/Documents.cs
13 13
{
14 14
    //[DataContract]
15 15
    //[JsonObject(IsReference = true)]
16
    public class Documents : NotifyPropertyChange//, IEquatable<Documents>
16
    public class Documents : NotifyPropertyChange, IEquatable<Documents>
17 17
    {
18 18
        //[DataMember]
19 19
        public bool Checked { 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
        {

내보내기 Unified diff

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