hytos / ID2.Manager / ID2.Manager.Data / Models / MarkupText.cs @ 2ade1e61
이력 | 보기 | 이력해설 | 다운로드 (1.16 KB)
1 | c0b49a75 | taeseongkim | using System; |
---|---|---|---|
2 | using System.Collections; |
||
3 | using System.Collections.Generic; |
||
4 | using System.Linq; |
||
5 | using System.Text; |
||
6 | using System.Threading.Tasks; |
||
7 | |||
8 | namespace ID2.Manager.Data.Models |
||
9 | { |
||
10 | acfb142c | taeseongkim | public class MarkupText : NotifyPropertyChange , IEquatable<MarkupText> |
11 | fd2bb664 | taeseongkim | { |
12 | acfb142c | taeseongkim | |
13 | private string projectNo; |
||
14 | public string PROJECT_NO { get => projectNo; set => SetProperty(ref projectNo, value); } |
||
15 | 23527891 | taeseongkim | |
16 | e458a996 | taeseongkim | public string CREATE_USER { get; set; } |
17 | 0b008ea6 | taeseongkim | |
18 | e458a996 | taeseongkim | public string DocumentNo { get; set; } |
19 | 0b008ea6 | taeseongkim | |
20 | public string TEXT { get; set; } |
||
21 | public DateTime CREATE_DATE { get; set; } |
||
22 | c0b49a75 | taeseongkim | |
23 | |||
24 | public bool Equals(MarkupText other) |
||
25 | { |
||
26 | e458a996 | taeseongkim | return other != null |
27 | && PROJECT_NO == other.PROJECT_NO |
||
28 | && CREATE_USER == other.CREATE_USER |
||
29 | && TEXT == other.TEXT |
||
30 | && CREATE_DATE == other.CREATE_DATE |
||
31 | && DocumentNo == other.DocumentNo; |
||
32 | c0b49a75 | taeseongkim | } |
33 | |||
34 | public override int GetHashCode() |
||
35 | { |
||
36 | a37dc9a7 | taeseongkim | return this.CREATE_USER.GetNullableHash() + this.TEXT.GetNullableHash() + this.CREATE_DATE.GetNullableHash() + PROJECT_NO.GetNullableHash() + DocumentNo.GetNullableHash(); |
37 | c0b49a75 | taeseongkim | } |
38 | 0b008ea6 | taeseongkim | |
39 | |||
40 | c0b49a75 | taeseongkim | } |
41 | } |