프로젝트

일반

사용자정보

통계
| 개정판:

hytos / ID2.Manager / ID2.Manager.Data / Models / Documents.cs @ c0b49a75

이력 | 보기 | 이력해설 | 다운로드 (13.3 KB)

1 5898479a yoush97
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
7
using System.Runtime.Serialization;
8
9
namespace ID2.Manager.Data.Models
10
{
11
    [DataContract]
12 709c1971 yoush97
    public class Documents : IEquatable<Documents>
13 5898479a yoush97
    {
14
        [DataMember]
15
        public int Seq { get; set; }
16
        [DataMember]
17 90ae20f6 yoush97
        public string DocID { get; set; }
18
        [DataMember]
19 5898479a yoush97
        public string DocumentNo { get; set; }
20
        [DataMember]
21 90ae20f6 yoush97
        public string RevisonNo { get; set; }
22
        [DataMember]
23 36a31d25 yoush97
        public string RefProjectCode { get; set; }
24 5898479a yoush97
        [DataMember]
25 90ae20f6 yoush97
        public bool IsLatest { get; set; }
26 5898479a yoush97
        [DataMember]
27 482f6326 yoush97
        public string AutoCADFilie { get; set; }
28
        [DataMember]
29
        public string PDFFile { get; set; }
30
        [DataMember]
31
        public string MarkupLink { get; set; }
32
        [DataMember]
33
        public string AVEVALink { get; set; }
34
        [DataMember]
35 90ae20f6 yoush97
        public string DocFilePath { get; set; }
36 5898479a yoush97
        [DataMember]
37 90ae20f6 yoush97
        public string DocFileName { get; set; }
38
        [DataMember]
39
        public string Place { get; set; }
40 5898479a yoush97
        [DataMember]
41
        public string JobLevel { get; set; }
42
        [DataMember]
43 c95d3bca yoush97
        public string IsTypical { get; set; }
44 5898479a yoush97
        [DataMember]
45
        public string PersonInCharge { get; set; }
46
        [DataMember]
47 90ae20f6 yoush97
        public bool IsDeleted { get; set; }
48
        [DataMember]
49
        public DateTime RegisteredDate { get; set; }
50 5898479a yoush97
        [DataMember]
51 482f6326 yoush97
        public DateTime? ModifiedDate { get; set; }
52 90ae20f6 yoush97
        [DataMember]
53 482f6326 yoush97
        public DateTime? DeletedDate { get; set; }
54 90ae20f6 yoush97
        [DataMember]
55 c95d3bca yoush97
        public string ToIsDiscussion { get; set; }
56 5898479a yoush97
        [DataMember]
57
        public string ToRemarks { get; set; }
58
        [DataMember]
59 90ae20f6 yoush97
        public string ToCreator { get; set; }
60 5898479a yoush97
        [DataMember]
61 90ae20f6 yoush97
        public string ToCapturePath { get; set; }
62 5898479a yoush97
        [DataMember]
63 c95d3bca yoush97
        public string ToIsMarkup { get; set; }
64 90ae20f6 yoush97
        [DataMember]
65
        public string FrReviewStatus { get; set; }
66 5898479a yoush97
        [DataMember]
67
        public string FrRemarks { get; set; }
68
        [DataMember]
69 90ae20f6 yoush97
        public string FrCreator { get; set; }
70
        [DataMember]
71
        public string FrCapturePath { get; set; }
72
        [DataMember]
73 c95d3bca yoush97
        public string FrIsMarkup { get; set; }
74 90ae20f6 yoush97
        [DataMember]
75 c95d3bca yoush97
        public string IsID2Work { get; set; }
76 90ae20f6 yoush97
        [DataMember]
77
        public string ID2Connection { get; set; }
78
        [DataMember]
79 947e6939 yoush97
        public DateTime? ID2StartDate { get; set; }
80 90ae20f6 yoush97
        [DataMember]
81 947e6939 yoush97
        public DateTime? ID2EndDate { get; set; }
82 90ae20f6 yoush97
        [DataMember]
83
        public int ID2JobTime { get; set; }
84
        [DataMember]
85
        public string ID2Status { get; set; }
86
        [DataMember]
87
        public string ID2Issues { get; set; }
88
        [DataMember]
89
        public string AVEVAConnection { get; set; }
90
        [DataMember]
91 482f6326 yoush97
        public DateTime? AVEVAConvertDate { get; set; }
92 90ae20f6 yoush97
        [DataMember]
93 482f6326 yoush97
        public DateTime? AVEVAReviewDate { get; set; }
94 90ae20f6 yoush97
        [DataMember]
95
        public string AVEVAStatus { get; set; }
96
        [DataMember]
97
        public string AVEVAIssues { get; set; }
98
        [DataMember]
99
        public string ReviewFilePath { get; set; }
100
        [DataMember]
101
        public string ReviewFileName { get; set; }
102
        [DataMember]
103
        public string ProdReviewer { get; set; }
104
        [DataMember]
105 482f6326 yoush97
        public string ProdIsResult { get; set; }
106 90ae20f6 yoush97
        [DataMember]
107
        public string ProdRemarks { get; set; }
108
        [DataMember]
109
        public string ClientReviewer { get; set; }
110
        [DataMember]
111 482f6326 yoush97
        public string ClientIsResult { get; set; }
112 90ae20f6 yoush97
        [DataMember]
113
        public string ClientRemarks { get; set; }
114
        [DataMember]
115 c95d3bca yoush97
        public string DTIsGateWay { get; set; }
116 90ae20f6 yoush97
        [DataMember]
117 c95d3bca yoush97
        public string DTIsImport { get; set; }
118 5898479a yoush97
        [DataMember]
119 c95d3bca yoush97
        public string DTIsRegSystem { get; set; }
120 5898479a yoush97
        [DataMember]
121 947e6939 yoush97
        public string DTRemarks { get; set; }
122 709c1971 yoush97
123 c0b49a75 taeseongkim
        public List<MarkupText> MarkupTextList { get; set; }
124
125 709c1971 yoush97
        public override bool Equals(object obj)
126
        {
127
            return Equals(obj as Documents);
128
        }
129
130
        public bool Equals(Documents other)
131
        {
132 1f583030 yoush97
            return other != null && this.DocumentNo == other.DocumentNo && this.RevisonNo == other.RevisonNo && this.RefProjectCode == other.RefProjectCode && this.IsLatest == other.IsLatest
133 709c1971 yoush97
                && this.AutoCADFilie == other.AutoCADFilie && this.PDFFile == other.PDFFile && this.MarkupLink == other.MarkupLink && this.AVEVALink == other.AVEVALink
134
                && this.DocFilePath == other.DocFilePath && this.DocFileName == other.DocFileName && this.Place == other.Place && this.JobLevel == other.JobLevel && this.IsTypical == other.IsTypical
135
                && this.PersonInCharge == other.PersonInCharge && this.IsDeleted == other.IsDeleted && this.ToIsDiscussion == other.ToIsDiscussion && this.ToRemarks == other.ToRemarks
136 8f17c6ed yoush97
                && this.ToCreator == other.ToCreator && this.ToCapturePath == other.ToCapturePath && this.ToIsMarkup == other.ToIsMarkup
137
                && this.FrReviewStatus == other.FrReviewStatus && this.FrRemarks == other.FrRemarks && this.FrCreator == other.FrCreator
138 709c1971 yoush97
                && this.FrCapturePath == other.FrCapturePath && this.FrIsMarkup == other.FrIsMarkup && this.IsID2Work == other.IsID2Work && this.ID2Connection == other.ID2Connection
139
                && this.ID2StartDate == other.ID2StartDate && this.ID2EndDate == other.ID2EndDate && this.ID2JobTime == other.ID2JobTime && this.ID2Status == other.ID2Status
140
                && this.ID2Issues == other.ID2Issues && this.AVEVAConnection == other.AVEVAConnection && this.AVEVAConvertDate == other.AVEVAConvertDate && this.AVEVAReviewDate == other.AVEVAReviewDate
141
                && this.AVEVAStatus == other.AVEVAStatus && this.AVEVAIssues == other.AVEVAIssues && this.ReviewFilePath == other.ReviewFilePath && this.ReviewFileName == other.ReviewFileName
142
                && this.ProdReviewer == other.ProdReviewer && this.ProdIsResult == other.ProdIsResult && this.ProdRemarks == other.ProdRemarks && this.ClientReviewer == other.ClientReviewer
143
                && this.ClientIsResult == other.ClientIsResult && this.ClientRemarks == other.ClientRemarks && this.DTIsGateWay == other.DTIsGateWay && this.DTIsImport == other.DTIsImport
144 c0b49a75 taeseongkim
                && this.DTIsRegSystem == other.DTIsRegSystem && this.DTRemarks == other.DTRemarks
145
                && this.MarkupTextList == other.MarkupTextList;
146 709c1971 yoush97
147
        }
148
        public override int GetHashCode()
149
        {
150 1f583030 yoush97
            return this.DocumentNo.GetHashCode() + this.RevisonNo.GetHashCode() + this.RefProjectCode.GetHashCode() + this.IsLatest.GetHashCode()
151 709c1971 yoush97
                + this.AutoCADFilie.GetHashCode() + this.PDFFile.GetHashCode() + this.MarkupLink.GetHashCode() + this.AVEVALink.GetHashCode()
152
                + this.DocFilePath.GetHashCode() + this.DocFileName.GetHashCode() + this.Place.GetHashCode() + this.JobLevel.GetHashCode() + this.IsTypical.GetHashCode()
153
                + this.PersonInCharge.GetHashCode() + this.IsDeleted.GetHashCode() + this.ToIsDiscussion.GetHashCode() + this.ToRemarks.GetHashCode()
154 8f17c6ed yoush97
                + this.ToCreator.GetHashCode() + this.ToCapturePath.GetHashCode() + this.ToIsMarkup.GetHashCode()
155
                + this.FrReviewStatus.GetHashCode() + this.FrRemarks.GetHashCode() + this.FrCreator.GetHashCode()
156 709c1971 yoush97
                + this.FrCapturePath.GetHashCode() + this.FrIsMarkup.GetHashCode() + this.IsID2Work.GetHashCode() + this.ID2Connection.GetHashCode()
157
                + this.ID2StartDate.GetHashCode() + this.ID2EndDate.GetHashCode() + this.ID2JobTime.GetHashCode() + this.ID2Status.GetHashCode()
158
                + this.ID2Issues.GetHashCode() + this.AVEVAConnection.GetHashCode() + this.AVEVAConvertDate.GetHashCode() + this.AVEVAReviewDate.GetHashCode()
159
                + this.AVEVAStatus.GetHashCode() + this.AVEVAIssues.GetHashCode() + this.ReviewFilePath.GetHashCode() + this.ReviewFileName.GetHashCode()
160
                + this.ProdReviewer.GetHashCode() + this.ProdIsResult.GetHashCode() + this.ProdRemarks.GetHashCode() + this.ClientReviewer.GetHashCode()
161
                + this.ClientIsResult.GetHashCode() + this.ClientRemarks.GetHashCode() + this.DTIsGateWay.GetHashCode() + this.DTIsImport.GetHashCode()
162 c0b49a75 taeseongkim
                + this.DTIsRegSystem.GetHashCode() + this.DTRemarks.GetHashCode()
163
                + this.MarkupTextList.GetHashCode();
164 709c1971 yoush97
        }
165 d2d4f84b yoush97
166
        //public class DocumentsComparer : IEqualityComparer<Documents>
167
        //{
168
        //    public bool Equals(Documents x, Documents y)
169
        //    {
170
        //        if (x == null && y == null)
171
        //            return true;
172
        //        else if (x == null || y == null)
173
        //            return false;
174
        //        else
175
        //        {
176
        //            return x.DocumentNo == y.DocumentNo && x.RevisonNo == y.RevisonNo && x.ProjectID == y.ProjectID && x.IsLatest == y.IsLatest
177
        //                && x.AutoCADFilie == y.AutoCADFilie && x.PDFFile == y.PDFFile && x.MarkupLink == y.MarkupLink && x.AVEVALink == y.AVEVALink
178
        //                && x.DocFilePath == y.DocFilePath && x.DocFileName == y.DocFileName && x.Place == y.Place && x.JobLevel == y.JobLevel && x.IsTypical == y.IsTypical
179
        //                && x.PersonInCharge == y.PersonInCharge && x.IsDeleted == y.IsDeleted && x.ToIsDiscussion == y.ToIsDiscussion && x.ToRemarks == y.ToRemarks
180
        //                && x.ToCreator == y.ToCreator && x.ToModifier == y.ToModifier && x.ToCapturePath == y.ToCapturePath && x.ToIsMarkup == y.ToIsMarkup
181
        //                && x.FrReviewStatus == y.FrReviewStatus && x.FrRemarks == y.FrRemarks && x.FrCreator == y.FrCreator && x.FrModifier == y.FrModifier
182
        //                && x.FrCapturePath == y.FrCapturePath && x.FrIsMarkup == y.FrIsMarkup && x.IsID2Work == y.IsID2Work && x.ID2Connection == y.ID2Connection
183
        //                && x.ID2StartDate == y.ID2StartDate && x.ID2EndDate == y.ID2EndDate && x.ID2JobTime == y.ID2JobTime && x.ID2Status == y.ID2Status
184
        //                && x.ID2Issues == y.ID2Issues && x.AVEVAConnection == y.AVEVAConnection && x.AVEVAConvertDate == y.AVEVAConvertDate && x.AVEVAReviewDate == y.AVEVAReviewDate
185
        //                && x.AVEVAStatus == y.AVEVAStatus && x.AVEVAIssues == y.AVEVAIssues && x.ReviewFilePath == y.ReviewFilePath && x.ReviewFileName == y.ReviewFileName
186
        //                && x.ProdReviewer == y.ProdReviewer && x.ProdIsResult == y.ProdIsResult && x.ProdRemarks == y.ProdRemarks && x.ClientReviewer == y.ClientReviewer
187
        //                && x.ClientIsResult == y.ClientIsResult && x.ClientRemarks == y.ClientRemarks && x.DTIsGateWay == y.DTIsGateWay && x.DTIsImport == y.DTIsImport
188
        //                && x.DTIsRegSystem == y.DTIsRegSystem && x.DTRemarks == y.DTRemarks;
189
        //        }
190
        //    }
191
192
        //    public int GetHashCode(Documents obj)
193
        //    {
194
        //        return obj.DocumentNo.GetHashCode() + obj.RevisonNo.GetHashCode() + obj.ProjectID.GetHashCode() + obj.IsLatest.GetHashCode()
195
        //            + obj.AutoCADFilie.GetHashCode() + obj.PDFFile.GetHashCode() + obj.MarkupLink.GetHashCode() + obj.AVEVALink.GetHashCode()
196
        //            + obj.DocFilePath.GetHashCode() + obj.DocFileName.GetHashCode() + obj.Place.GetHashCode() + obj.JobLevel.GetHashCode() + obj.IsTypical.GetHashCode()
197
        //            + obj.PersonInCharge.GetHashCode() + obj.IsDeleted.GetHashCode() + obj.ToIsDiscussion.GetHashCode() + obj.ToRemarks.GetHashCode()
198
        //            + obj.ToCreator.GetHashCode() + obj.ToModifier.GetHashCode() + obj.ToCapturePath.GetHashCode() + obj.ToIsMarkup.GetHashCode()
199
        //            + obj.FrReviewStatus.GetHashCode() + obj.FrRemarks.GetHashCode() + obj.FrCreator.GetHashCode() + obj.FrModifier.GetHashCode()
200
        //            + obj.FrCapturePath.GetHashCode() + obj.FrIsMarkup.GetHashCode() + obj.IsID2Work.GetHashCode() + obj.ID2Connection.GetHashCode()
201
        //            + obj.ID2StartDate.GetHashCode() + obj.ID2EndDate.GetHashCode() + obj.ID2JobTime.GetHashCode() + obj.ID2Status.GetHashCode()
202
        //            + obj.ID2Issues.GetHashCode() + obj.AVEVAConnection.GetHashCode() + obj.AVEVAConvertDate.GetHashCode() + obj.AVEVAReviewDate.GetHashCode()
203
        //            + obj.AVEVAStatus.GetHashCode() + obj.AVEVAIssues.GetHashCode() + obj.ReviewFilePath.GetHashCode() + obj.ReviewFileName.GetHashCode()
204
        //            + obj.ProdReviewer.GetHashCode() + obj.ProdIsResult.GetHashCode() + obj.ProdRemarks.GetHashCode() + obj.ClientReviewer.GetHashCode()
205
        //            + obj.ClientIsResult.GetHashCode() + obj.ClientRemarks.GetHashCode() + obj.DTIsGateWay.GetHashCode() + obj.DTIsImport.GetHashCode()
206
        //            + obj.DTIsRegSystem.GetHashCode() + obj.DTRemarks.GetHashCode();
207
        //    }
208
        //}
209
210
        public class DocumentsKeyComparer : IEqualityComparer<Documents>
211
        {
212
            public bool Equals(Documents x, Documents y)
213
            {
214
                if (x == null && y == null)
215
                    return true;
216
                else if (x == null || y == null)
217
                    return false;
218
                else
219
                {
220
                    return x.DocID == y.DocID;
221
                }
222
            }
223
224
            public int GetHashCode(Documents obj)
225
            {
226
                return (obj.DocID != null ? obj.DocID.GetHashCode() : 0);
227
            }
228
        }
229 5898479a yoush97
    }
230
}
클립보드 이미지 추가 (최대 크기: 500 MB)