프로젝트

일반

사용자정보

개정판 b1591ae6

IDb1591ae676d4d0abf270e7c23dd0bedfb69fd2cb
상위 295ce375
하위 367fc955

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

issue #0000
저장수정 - 되는지 모름

Change-Id: I6b5f4412c72dcf593eee783e400c6b25372b94d1

차이점 보기:

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

  
189 189
        public bool Equals(Documents other)
190 190
        {
191
            bool isAttfilesEqual = false;
192

  
193
            if (this != null && other == null)
194
                return false;
195

  
196
            if (this.AttFiles == null && other.AttFiles == null)
197
            {
198
                isAttfilesEqual = true;
199
            }
200
            else if (this.AttFiles != null && other.AttFiles != null)
201
            {
202
                isAttfilesEqual = this.AttFiles.SequenceEqual(other.AttFiles);
203
            }
204

  
191 205
            bool result = other != null && this.DocumentNo == other.DocumentNo && this.RevisonNo == other.RevisonNo && this.RefProjectCode == other.RefProjectCode && this.IsLatest == other.IsLatest
192 206
                && this.AutoCADFilie == other.AutoCADFilie && this.PDFFile == other.PDFFile && this.MarkupLink == other.MarkupLink && this.AVEVALink == other.AVEVALink
193 207
                && this.DocFilePath == other.DocFilePath && this.DocFileName == other.DocFileName && this.JobLevel == other.JobLevel && this.IsTypical == other.IsTypical
......
201 215
                && this.ProdReviewer == other.ProdReviewer && this.ProdIsResult == other.ProdIsResult && this.ProdRemarks == other.ProdRemarks && this.ClientReviewer == other.ClientReviewer
202 216
                && this.ClientIsResult == other.ClientIsResult && this.ClientRemarks == other.ClientRemarks && this.DTIsGateWay == other.DTIsGateWay && this.DTIsImport == other.DTIsImport
203 217
                && this.DTIsRegSystem == other.DTIsRegSystem && this.DTRemarks == other.DTRemarks
204
                && this.AttFiles != null && other.AttFiles != null && this.AttFiles.SequenceEqual(other.AttFiles);
218
                && isAttfilesEqual;
205 219

  
206 220
            if (result == false)
207 221
            {
......
225 239
                + this.AVEVAStatus.GetNullableHash() + this.AVEVAIssues.GetNullableHash() + this.ReviewFilePath.GetNullableHash() + this.ReviewFileName.GetNullableHash()
226 240
                + this.ProdReviewer.GetNullableHash() + this.ProdIsResult.GetNullableHash() + this.ProdRemarks.GetNullableHash() + this.ClientReviewer.GetNullableHash()
227 241
                + this.ClientIsResult.GetNullableHash() + this.ClientRemarks.GetNullableHash() + this.DTIsGateWay.GetNullableHash() + this.DTIsImport.GetNullableHash()
228
                + this.DTIsRegSystem.GetNullableHash() + this.DTRemarks.GetNullableHash()
229
                + this.AttFiles.GetNullableHash();
242
                + this.DTIsRegSystem.GetNullableHash() + this.DTRemarks.GetNullableHash();
230 243
        }
231 244

  
232 245
        public class DocumentsKeyComparer : IEqualityComparer<Documents>

내보내기 Unified diff

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