프로젝트

일반

사용자정보

개정판 295ce375

ID295ce37577171f7c50dc14eef5eb8d1542feee67
상위 587d2042
하위 422f620d, b1591ae6

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

issue #0000
document, attfile 비교 진행

Change-Id: I59a60d5a69a91c092e5ba05c94138ac293f22353

차이점 보기:

ID2.Manager/ID2.Manager.Data/Models/Documents.cs
7 7
using System.ComponentModel;
8 8
using System.Runtime.Serialization;
9 9

  
10
using Newtonsoft.Json;
11

  
10 12
namespace ID2.Manager.Data.Models
11 13
{
12 14
    [DataContract]
15
    [JsonObject(IsReference = true)]
13 16
    public class Documents : IEquatable<Documents>, INotifyPropertyChanged
14 17
    {
15 18
        public event PropertyChangedEventHandler PropertyChanged;
......
185 188

  
186 189
        public bool Equals(Documents other)
187 190
        {
188
            return other != null && this.DocumentNo == other.DocumentNo && this.RevisonNo == other.RevisonNo && this.RefProjectCode == other.RefProjectCode && this.IsLatest == other.IsLatest
191
            bool result = other != null && this.DocumentNo == other.DocumentNo && this.RevisonNo == other.RevisonNo && this.RefProjectCode == other.RefProjectCode && this.IsLatest == other.IsLatest
189 192
                && this.AutoCADFilie == other.AutoCADFilie && this.PDFFile == other.PDFFile && this.MarkupLink == other.MarkupLink && this.AVEVALink == other.AVEVALink
190 193
                && this.DocFilePath == other.DocFilePath && this.DocFileName == other.DocFileName && this.JobLevel == other.JobLevel && this.IsTypical == other.IsTypical
191 194
                && this.PersonInCharge == other.PersonInCharge && this.IsDeleted == other.IsDeleted && this.ToIsDiscussion == other.ToIsDiscussion && this.ToRemarks == other.ToRemarks
......
198 201
                && this.ProdReviewer == other.ProdReviewer && this.ProdIsResult == other.ProdIsResult && this.ProdRemarks == other.ProdRemarks && this.ClientReviewer == other.ClientReviewer
199 202
                && this.ClientIsResult == other.ClientIsResult && this.ClientRemarks == other.ClientRemarks && this.DTIsGateWay == other.DTIsGateWay && this.DTIsImport == other.DTIsImport
200 203
                && this.DTIsRegSystem == other.DTIsRegSystem && this.DTRemarks == other.DTRemarks
201
                && this.Markups == other.Markups && this.AttFiles == other.AttFiles;
204
                && this.AttFiles != null && other.AttFiles != null && this.AttFiles.SequenceEqual(other.AttFiles);
205

  
206
            if (result == false)
207
            {
208
                string id = this.DocID;
209
            }
210

  
211
            return result;
202 212

  
203 213
        }
204 214
        public override int GetHashCode()
......
216 226
                + this.ProdReviewer.GetNullableHash() + this.ProdIsResult.GetNullableHash() + this.ProdRemarks.GetNullableHash() + this.ClientReviewer.GetNullableHash()
217 227
                + this.ClientIsResult.GetNullableHash() + this.ClientRemarks.GetNullableHash() + this.DTIsGateWay.GetNullableHash() + this.DTIsImport.GetNullableHash()
218 228
                + this.DTIsRegSystem.GetNullableHash() + this.DTRemarks.GetNullableHash()
219
                + this.Markups.GetNullableHash() + this.AttFiles.GetNullableHash();
229
                + this.AttFiles.GetNullableHash();
220 230
        }
221 231

  
222 232
        public class DocumentsKeyComparer : IEqualityComparer<Documents>

내보내기 Unified diff

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