개정판 295ce375
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