프로젝트

일반

사용자정보

통계
| 개정판:

hytos / ID2.Manager / ID2.Manager.Data / Models / Documents.cs @ 3bdce96d

이력 | 보기 | 이력해설 | 다운로드 (9.25 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 5898479a yoush97
        public string JobLevel { get; set; }
40
        [DataMember]
41 c95d3bca yoush97
        public string IsTypical { get; set; }
42 5898479a yoush97
        [DataMember]
43
        public string PersonInCharge { get; set; }
44
        [DataMember]
45 90ae20f6 yoush97
        public bool IsDeleted { get; set; }
46
        [DataMember]
47
        public DateTime RegisteredDate { get; set; }
48 5898479a yoush97
        [DataMember]
49 482f6326 yoush97
        public DateTime? ModifiedDate { get; set; }
50 90ae20f6 yoush97
        [DataMember]
51 482f6326 yoush97
        public DateTime? DeletedDate { get; set; }
52 90ae20f6 yoush97
        [DataMember]
53 c95d3bca yoush97
        public string ToIsDiscussion { get; set; }
54 5898479a yoush97
        [DataMember]
55
        public string ToRemarks { get; set; }
56
        [DataMember]
57 90ae20f6 yoush97
        public string ToCreator { get; set; }
58 5898479a yoush97
        [DataMember]
59 90ae20f6 yoush97
        public string ToCapturePath { get; set; }
60 5898479a yoush97
        [DataMember]
61 c95d3bca yoush97
        public string ToIsMarkup { get; set; }
62 90ae20f6 yoush97
        [DataMember]
63
        public string FrReviewStatus { get; set; }
64 5898479a yoush97
        [DataMember]
65
        public string FrRemarks { get; set; }
66
        [DataMember]
67 90ae20f6 yoush97
        public string FrCreator { get; set; }
68
        [DataMember]
69
        public string FrCapturePath { get; set; }
70
        [DataMember]
71 c95d3bca yoush97
        public string FrIsMarkup { get; set; }
72 90ae20f6 yoush97
        [DataMember]
73 c95d3bca yoush97
        public string IsID2Work { get; set; }
74 90ae20f6 yoush97
        [DataMember]
75
        public string ID2Connection { get; set; }
76
        [DataMember]
77 947e6939 yoush97
        public DateTime? ID2StartDate { get; set; }
78 90ae20f6 yoush97
        [DataMember]
79 947e6939 yoush97
        public DateTime? ID2EndDate { get; set; }
80 90ae20f6 yoush97
        [DataMember]
81
        public int ID2JobTime { get; set; }
82
        [DataMember]
83
        public string ID2Status { get; set; }
84
        [DataMember]
85
        public string ID2Issues { get; set; }
86
        [DataMember]
87
        public string AVEVAConnection { get; set; }
88
        [DataMember]
89 482f6326 yoush97
        public DateTime? AVEVAConvertDate { get; set; }
90 90ae20f6 yoush97
        [DataMember]
91 482f6326 yoush97
        public DateTime? AVEVAReviewDate { get; set; }
92 90ae20f6 yoush97
        [DataMember]
93
        public string AVEVAStatus { get; set; }
94
        [DataMember]
95
        public string AVEVAIssues { get; set; }
96
        [DataMember]
97
        public string ReviewFilePath { get; set; }
98
        [DataMember]
99
        public string ReviewFileName { get; set; }
100
        [DataMember]
101
        public string ProdReviewer { get; set; }
102
        [DataMember]
103 482f6326 yoush97
        public string ProdIsResult { get; set; }
104 90ae20f6 yoush97
        [DataMember]
105
        public string ProdRemarks { get; set; }
106
        [DataMember]
107
        public string ClientReviewer { get; set; }
108
        [DataMember]
109 482f6326 yoush97
        public string ClientIsResult { get; set; }
110 90ae20f6 yoush97
        [DataMember]
111
        public string ClientRemarks { get; set; }
112
        [DataMember]
113 c95d3bca yoush97
        public string DTIsGateWay { get; set; }
114 90ae20f6 yoush97
        [DataMember]
115 c95d3bca yoush97
        public string DTIsImport { get; set; }
116 5898479a yoush97
        [DataMember]
117 c95d3bca yoush97
        public string DTIsRegSystem { get; set; }
118 5898479a yoush97
        [DataMember]
119 947e6939 yoush97
        public string DTRemarks { get; set; }
120 709c1971 yoush97
121 3c43044d taeseongkim
        public string MarkupText { get; set; }
122 c0b49a75 taeseongkim
123 709c1971 yoush97
        public override bool Equals(object obj)
124
        {
125
            return Equals(obj as Documents);
126
        }
127
128
        public bool Equals(Documents other)
129
        {
130 1f583030 yoush97
            return other != null && this.DocumentNo == other.DocumentNo && this.RevisonNo == other.RevisonNo && this.RefProjectCode == other.RefProjectCode && this.IsLatest == other.IsLatest
131 709c1971 yoush97
                && this.AutoCADFilie == other.AutoCADFilie && this.PDFFile == other.PDFFile && this.MarkupLink == other.MarkupLink && this.AVEVALink == other.AVEVALink
132 6c3bdda6 yoush97
                && this.DocFilePath == other.DocFilePath && this.DocFileName == other.DocFileName && this.JobLevel == other.JobLevel && this.IsTypical == other.IsTypical
133 709c1971 yoush97
                && this.PersonInCharge == other.PersonInCharge && this.IsDeleted == other.IsDeleted && this.ToIsDiscussion == other.ToIsDiscussion && this.ToRemarks == other.ToRemarks
134 8f17c6ed yoush97
                && this.ToCreator == other.ToCreator && this.ToCapturePath == other.ToCapturePath && this.ToIsMarkup == other.ToIsMarkup
135
                && this.FrReviewStatus == other.FrReviewStatus && this.FrRemarks == other.FrRemarks && this.FrCreator == other.FrCreator
136 709c1971 yoush97
                && this.FrCapturePath == other.FrCapturePath && this.FrIsMarkup == other.FrIsMarkup && this.IsID2Work == other.IsID2Work && this.ID2Connection == other.ID2Connection
137
                && this.ID2StartDate == other.ID2StartDate && this.ID2EndDate == other.ID2EndDate && this.ID2JobTime == other.ID2JobTime && this.ID2Status == other.ID2Status
138
                && this.ID2Issues == other.ID2Issues && this.AVEVAConnection == other.AVEVAConnection && this.AVEVAConvertDate == other.AVEVAConvertDate && this.AVEVAReviewDate == other.AVEVAReviewDate
139
                && this.AVEVAStatus == other.AVEVAStatus && this.AVEVAIssues == other.AVEVAIssues && this.ReviewFilePath == other.ReviewFilePath && this.ReviewFileName == other.ReviewFileName
140
                && this.ProdReviewer == other.ProdReviewer && this.ProdIsResult == other.ProdIsResult && this.ProdRemarks == other.ProdRemarks && this.ClientReviewer == other.ClientReviewer
141
                && this.ClientIsResult == other.ClientIsResult && this.ClientRemarks == other.ClientRemarks && this.DTIsGateWay == other.DTIsGateWay && this.DTIsImport == other.DTIsImport
142 c0b49a75 taeseongkim
                && this.DTIsRegSystem == other.DTIsRegSystem && this.DTRemarks == other.DTRemarks
143 3c43044d taeseongkim
                && this.MarkupText == other.MarkupText;
144 709c1971 yoush97
145
        }
146
        public override int GetHashCode()
147
        {
148 1f583030 yoush97
            return this.DocumentNo.GetHashCode() + this.RevisonNo.GetHashCode() + this.RefProjectCode.GetHashCode() + this.IsLatest.GetHashCode()
149 709c1971 yoush97
                + this.AutoCADFilie.GetHashCode() + this.PDFFile.GetHashCode() + this.MarkupLink.GetHashCode() + this.AVEVALink.GetHashCode()
150 6c3bdda6 yoush97
                + this.DocFilePath.GetHashCode() + this.DocFileName.GetHashCode() + this.JobLevel.GetHashCode() + this.IsTypical.GetHashCode()
151 709c1971 yoush97
                + this.PersonInCharge.GetHashCode() + this.IsDeleted.GetHashCode() + this.ToIsDiscussion.GetHashCode() + this.ToRemarks.GetHashCode()
152 8f17c6ed yoush97
                + this.ToCreator.GetHashCode() + this.ToCapturePath.GetHashCode() + this.ToIsMarkup.GetHashCode()
153
                + this.FrReviewStatus.GetHashCode() + this.FrRemarks.GetHashCode() + this.FrCreator.GetHashCode()
154 709c1971 yoush97
                + this.FrCapturePath.GetHashCode() + this.FrIsMarkup.GetHashCode() + this.IsID2Work.GetHashCode() + this.ID2Connection.GetHashCode()
155
                + this.ID2StartDate.GetHashCode() + this.ID2EndDate.GetHashCode() + this.ID2JobTime.GetHashCode() + this.ID2Status.GetHashCode()
156
                + this.ID2Issues.GetHashCode() + this.AVEVAConnection.GetHashCode() + this.AVEVAConvertDate.GetHashCode() + this.AVEVAReviewDate.GetHashCode()
157
                + this.AVEVAStatus.GetHashCode() + this.AVEVAIssues.GetHashCode() + this.ReviewFilePath.GetHashCode() + this.ReviewFileName.GetHashCode()
158
                + this.ProdReviewer.GetHashCode() + this.ProdIsResult.GetHashCode() + this.ProdRemarks.GetHashCode() + this.ClientReviewer.GetHashCode()
159
                + this.ClientIsResult.GetHashCode() + this.ClientRemarks.GetHashCode() + this.DTIsGateWay.GetHashCode() + this.DTIsImport.GetHashCode()
160 c0b49a75 taeseongkim
                + this.DTIsRegSystem.GetHashCode() + this.DTRemarks.GetHashCode()
161 3c43044d taeseongkim
                + this.MarkupText.GetHashCode();
162 709c1971 yoush97
        }
163 d2d4f84b yoush97
164
        public class DocumentsKeyComparer : IEqualityComparer<Documents>
165
        {
166
            public bool Equals(Documents x, Documents y)
167
            {
168
                if (x == null && y == null)
169
                    return true;
170
                else if (x == null || y == null)
171
                    return false;
172
                else
173
                {
174
                    return x.DocID == y.DocID;
175
                }
176
            }
177
178
            public int GetHashCode(Documents obj)
179
            {
180
                return (obj.DocID != null ? obj.DocID.GetHashCode() : 0);
181
            }
182
        }
183 5898479a yoush97
    }
184 fe57f64a yoush97
185
    [DataContract]
186
    public class ID2Drawings
187
    {
188
        [DataMember]
189
        public string PROJECTNAME { get; set; }        
190
        [DataMember]
191
        public string UID { get; set; }
192
        [DataMember]
193
        public string NAME { get; set; }
194
        [DataMember]
195
        public string DOCNAME { get; set; }
196
        [DataMember]
197
        public DateTime? DATETIME { get; set; }
198
        [DataMember]
199
        public string OCCUPIED { get; set; }
200
        [DataMember]
201
        public byte[] Image { get; set; }
202
    }
203 5898479a yoush97
}
클립보드 이미지 추가 (최대 크기: 500 MB)