프로젝트

일반

사용자정보

개정판 25f68105

ID25f6810591f019655009e255ae769b579e60b1a9
상위 4d2f9e47
하위 d428fc94

김태성이(가) 일년 이상 전에 추가함

issue #0000 cell value change event 변경

Change-Id: Id21398fbcc9a6575804c2687483d853f5ec2dea6

차이점 보기:

ID2.Manager/ID2.Manager.Data/Models/Documents.cs
11 11

  
12 12
namespace ID2.Manager.Data.Models
13 13
{
14
    [DataContract]
15
    [JsonObject(IsReference = true)]
16
    public class Documents : NotifyPropertyChange, IEquatable<Documents>
14
    //[DataContract]
15
    //[JsonObject(IsReference = true)]
16
    public class Documents : NotifyPropertyChange//, IEquatable<Documents>
17 17
    {
18
        [DataMember]
18
        //[DataMember]
19 19
        public bool Checked { get; set; }
20
        [DataMember]
20
        //[DataMember]
21 21
        public int Seq { get; set; }
22
        [DataMember]
22
        //[DataMember]
23 23
        public string DocID { get; set; }
24
        [DataMember]
24
        //[DataMember]
25 25
        public string DocumentNo { get; set; }
26
        [DataMember]
26
        //[DataMember]
27 27
        public string RevisonNo { get; set; }
28
        [DataMember]
28
        //[DataMember]
29 29
        public string System { get; set; }
30
        [DataMember]
30
        //[DataMember]
31 31
        public string SubSystemCode { get; set; }
32 32

  
33 33
        private string _RefProjectCode = string.Empty;
34
        [DataMember]
34
        //[DataMember]
35 35
        public string RefProjectCode
36 36
        {
37 37
            get => this._RefProjectCode;
......
39 39
        }
40 40

  
41 41
        private string _JobLevel = string.Empty;
42
        [DataMember]
42
        //[DataMember]
43 43
        public string JobLevel
44 44
        {
45 45
            get => this._JobLevel;
......
47 47
        }
48 48

  
49 49
        private string _PersonInCharge = string.Empty;
50
        [DataMember]
50
        //[DataMember]
51 51
        public string PersonInCharge
52 52
        {
53 53
            get => this._PersonInCharge;
......
55 55
        }
56 56

  
57 57
        private string _Worker = string.Empty;
58
        [DataMember]
58
        //[DataMember]
59 59
        public string Worker
60 60
        {
61 61
            get =>  this._Worker;
62 62
            set => SetProperty(ref this._Worker, value);
63 63
        }
64 64

  
65
        [DataMember]
65
        //[DataMember]
66 66
        public string RegisteredUser { get; set; }
67
        [DataMember]
67
        //[DataMember]
68 68
        public string ModifiedUser { get; set; }
69
        [DataMember]
69
        //[DataMember]
70 70
        public string DeletedUser { get; set; }
71 71

  
72 72
        private string _ToIsDiscussion = string.Empty;
73
        [DataMember]
73
        //[DataMember]
74 74
        public string ToIsDiscussion
75 75
        {
76 76
            get => this._ToIsDiscussion;
77 77
            set => SetProperty(ref this._ToIsDiscussion, value);
78 78
        }
79 79

  
80
        [DataMember]
80
        //[DataMember]
81 81
        public string ToRemarks { get; set; }
82 82

  
83 83
        private string _ToCreator = string.Empty;
84
        [DataMember]
84
        //[DataMember]
85 85
        public string ToCreator
86 86
        {
87 87
            get => this._ToCreator;
......
91 91
        public int ToCapture { get; set; }
92 92

  
93 93
        private string _FrReviewStatus = string.Empty;
94
        [DataMember]
94
        //[DataMember]
95 95
        public string FrReviewStatus
96 96
        {
97 97
            get => this._FrReviewStatus;
98 98
            set => SetProperty(ref this._FrReviewStatus, value);
99 99
        }
100 100

  
101
        [DataMember]
101
        //[DataMember]
102 102
        public string FrRemarks { get; set; }
103 103

  
104 104
        private string _FrCreator = string.Empty;
105
        [DataMember]
105
        //[DataMember]
106 106
        public string FrCreator
107 107
        {
108 108
            get => this._FrCreator;
......
110 110
        }
111 111

  
112 112
        public int FrCapture { get; set; }
113
        [DataMember]
113
        //[DataMember]
114 114
        public DateTime? ID2StartDate { get; set; }
115
        [DataMember]
115
        //[DataMember]
116 116
        public DateTime? ID2EndDate { get; set; }
117 117

  
118 118

  
119 119
        private string _ID2Status = string.Empty;
120
        [DataMember]
120
        //[DataMember]
121 121
        public string ID2Status
122 122
        {
123 123
            get => this._ID2Status;
......
125 125
        }
126 126

  
127 127

  
128
        [DataMember]
128
        //[DataMember]
129 129
        public string ID2Issues { get; set; }
130 130
        public int ID2Capture { get; set; }
131
        [DataMember]
131
        //[DataMember]
132 132
        public string ReplyModifications { get; set; }
133 133

  
134 134
        private string _ReplyRequester = string.Empty;
135
        [DataMember]
135
        //[DataMember]
136 136
        public string ReplyRequester
137 137
        {
138 138
            get => this._ReplyRequester;
......
140 140
        }
141 141

  
142 142
        private string _IsConvert = string.Empty;
143
        [DataMember]
143
        //[DataMember]
144 144
        public string IsConvert
145 145
        {
146 146
            get => this._IsConvert;
......
148 148
        }
149 149

  
150 150
        private string _AVEVAPersonInCharge = string.Empty;
151
        [DataMember]
151
        //[DataMember]
152 152
        public string AVEVAPersonInCharge
153 153
        {
154 154
            get => this._AVEVAPersonInCharge;
......
156 156
        }
157 157

  
158 158
        private string _AVEVAWorker = string.Empty;
159
        [DataMember]
159
        //[DataMember]
160 160
        public string AVEVAWorker
161 161
        {
162 162
            get => this._AVEVAWorker;
163 163
            set => SetProperty(ref this._AVEVAWorker, value);
164 164
        }
165 165

  
166
        [DataMember]
166
        //[DataMember]
167 167
        public DateTime? AVEVAConvertDate { get; set; }
168
        [DataMember]
168
        //[DataMember]
169 169
        public DateTime? AVEVAReviewDate { get; set; }
170
        [DataMember]
170
        //[DataMember]
171 171
        public DateTime? AVEVAWorkDate { get; set; }
172 172

  
173 173
        private string _AVEVAStatus = string.Empty;
174
        [DataMember]
174
        //[DataMember]
175 175
        public string AVEVAStatus
176 176
        {
177 177
            get => this._AVEVAStatus;
178 178
            set => SetProperty(ref this._AVEVAStatus, value);
179 179
        }
180 180

  
181
        [DataMember]
181
        //[DataMember]
182 182
        public string AVEVAIssues { get; set; }
183 183

  
184 184
        private string _ProdReviewer = string.Empty;
185
        [DataMember]
185
        //[DataMember]
186 186
        public string ProdReviewer
187 187
        {
188 188
            get => this._ProdReviewer;
......
190 190
        }
191 191

  
192 192
        private string _ProdIsResult = string.Empty;
193
        [DataMember]
193
        //[DataMember]
194 194
        public string ProdIsResult
195 195
        {
196 196
            get => this._ProdIsResult;
197 197
            set => SetProperty(ref this._ProdIsResult, value);
198 198
        }
199 199

  
200
        [DataMember]
200
        //[DataMember]
201 201
        public string ProdRemarks { get; set; }
202 202

  
203 203
        private string _ClientReviewer = string.Empty;
204
        [DataMember]
204
        //[DataMember]
205 205
        public string ClientReviewer
206 206
        {
207 207
            get => this._ClientReviewer;
......
209 209
        }
210 210

  
211 211
        private string _ClientIsResult = string.Empty;
212
        [DataMember]
212
        //[DataMember]
213 213
        public string ClientIsResult
214 214
        {
215 215
            get => this._ClientIsResult;
216 216
            set => SetProperty(ref this._ClientIsResult, value);
217 217
        }
218 218

  
219
        [DataMember]
219
        //[DataMember]
220 220
        public string ClientRemarks { get; set; }
221 221

  
222 222
        private string _DTIsGateWay = string.Empty;
223
        [DataMember]
223
        //[DataMember]
224 224
        public string DTIsGateWay
225 225
        {
226 226
            get => this._DTIsGateWay;
......
228 228
        }
229 229

  
230 230
        private string _DTIsImport = string.Empty;
231
        [DataMember]
231
        //[DataMember]
232 232
        public string DTIsImport
233 233
        {
234 234
            get => this._DTIsImport;
......
236 236
        }
237 237

  
238 238
        private string _DTIsRegSystem = string.Empty;
239
        [DataMember]
239
        //[DataMember]
240 240
        public string DTIsRegSystem
241 241
        {
242 242
            get => this._DTIsRegSystem;
243 243
            set => SetProperty(ref this._DTIsRegSystem, value);
244 244
        }
245 245

  
246
        [DataMember]
246
        //[DataMember]
247 247
        public string DTRemarks { get; set; }
248 248

  
249 249
        public List<MarkupText> Markups { get; set; }
......
252 252

  
253 253
        public int ConvertStatus { get; set; }
254 254

  
255
        public override bool Equals(object obj)
256
        {
257
            return Equals(obj as Documents);
258
        }
259

  
260
        public bool Equals(Documents other)
261
        {
262
            bool isAttfilesEqual = false;
263

  
264
            if (this != null && other == null)
265
                return false;
266

  
267
            if (this.AttFiles == null && other.AttFiles == null)
268
            {
269
                isAttfilesEqual = true;
270
            }
271
            else if (this.AttFiles != null && other.AttFiles != null)
272
            {
273
                isAttfilesEqual = this.AttFiles.SequenceEqual(other.AttFiles);
274
            }
275

  
276
            bool result = other != null && this.DocumentNo == other.DocumentNo && this.RevisonNo == other.RevisonNo && this.System == other.System && this.SubSystemCode == other.SubSystemCode
277
                && this.RefProjectCode == other.RefProjectCode && this.JobLevel == other.JobLevel
278
                && this.PersonInCharge == other.PersonInCharge && this.ToIsDiscussion == other.ToIsDiscussion && this.ToRemarks == other.ToRemarks
279
                && this.ToCreator == other.ToCreator
280
                && this.FrReviewStatus == other.FrReviewStatus && this.FrRemarks == other.FrRemarks && this.FrCreator == other.FrCreator
281
                && this.ID2StartDate == other.ID2StartDate && this.ID2EndDate == other.ID2EndDate && this.ID2Status == other.ID2Status
282
                && this.ID2Issues == other.ID2Issues && this.ReplyModifications == other.ReplyModifications && this.ReplyRequester == other.ReplyRequester && this.IsConvert == other.IsConvert && this.AVEVAPersonInCharge == other.AVEVAPersonInCharge && this.AVEVAWorker == other.AVEVAWorker
283
                && this.AVEVAConvertDate == other.AVEVAConvertDate && this.AVEVAReviewDate == other.AVEVAReviewDate && this.AVEVAWorkDate == other.AVEVAWorkDate
284
                && this.AVEVAStatus == other.AVEVAStatus && this.AVEVAIssues == other.AVEVAIssues
285
                && this.ProdReviewer == other.ProdReviewer && this.ProdIsResult == other.ProdIsResult && this.ProdRemarks == other.ProdRemarks && this.ClientReviewer == other.ClientReviewer
286
                && this.ClientIsResult == other.ClientIsResult && this.ClientRemarks == other.ClientRemarks && this.DTIsGateWay == other.DTIsGateWay && this.DTIsImport == other.DTIsImport
287
                && this.DTIsRegSystem == other.DTIsRegSystem && this.DTRemarks == other.DTRemarks && this.ConvertStatus == other.ConvertStatus
288
                && isAttfilesEqual;
289

  
290
            if (result == false)
291
            {
292
                string id = this.DocID;
293
            }
294

  
295
            return result;
296

  
297
        }
298
        public override int GetHashCode()
299
        {
300
            return this.DocumentNo.GetNullableHash() + this.RevisonNo.GetNullableHash() + this.System.GetNullableHash() + this.SubSystemCode.GetNullableHash()
301
                + this.RefProjectCode.GetNullableHash() + this.JobLevel.GetNullableHash()
302
                + this.PersonInCharge.GetNullableHash() + this.ToIsDiscussion.GetNullableHash() + this.ToRemarks.GetNullableHash()
303
                + this.ToCreator.GetNullableHash()
304
                + this.FrReviewStatus.GetNullableHash() + this.FrRemarks.GetNullableHash() + this.FrCreator.GetNullableHash()
305
                + this.ID2StartDate.GetNullableHash() + this.ID2EndDate.GetNullableHash() + this.ID2Status.GetNullableHash()
306
                + this.ID2Issues.GetNullableHash() + this.ReplyModifications.GetNullableHash() + this.ReplyRequester.GetNullableHash() + this.IsConvert.GetNullableHash() + this.AVEVAPersonInCharge.GetNullableHash() + this.AVEVAWorker.GetNullableHash()
307
                + this.AVEVAConvertDate.GetNullableHash() + this.AVEVAReviewDate.GetNullableHash() + this.AVEVAWorkDate.GetNullableHash()
308
                + this.AVEVAStatus.GetNullableHash() + this.AVEVAIssues.GetNullableHash()
309
                + this.ProdReviewer.GetNullableHash() + this.ProdIsResult.GetNullableHash() + this.ProdRemarks.GetNullableHash() + this.ClientReviewer.GetNullableHash()
310
                + this.ClientIsResult.GetNullableHash() + this.ClientRemarks.GetNullableHash() + this.DTIsGateWay.GetNullableHash() + this.DTIsImport.GetNullableHash()
311
                + this.DTIsRegSystem.GetNullableHash() + this.DTRemarks.GetNullableHash() + this.ConvertStatus.GetNullableHash();
312
        }
255
        //public override bool Equals(object obj)
256
        //{
257
        //    return Equals(obj as Documents);
258
        //}
259

  
260
        //public bool Equals(Documents other)
261
        //{
262
        //    bool isAttfilesEqual = false;
263

  
264
        //    if (this != null && other == null)
265
        //        return false;
266

  
267
        //    if (this.AttFiles == null && other.AttFiles == null)
268
        //    {
269
        //        isAttfilesEqual = true;
270
        //    }
271
        //    else if (this.AttFiles != null && other.AttFiles != null)
272
        //    {
273
        //        isAttfilesEqual = this.AttFiles.SequenceEqual(other.AttFiles);
274
        //    }
275

  
276
        //    bool result = other != null && this.DocumentNo == other.DocumentNo && this.RevisonNo == other.RevisonNo && this.System == other.System && this.SubSystemCode == other.SubSystemCode
277
        //        && this.RefProjectCode == other.RefProjectCode && this.JobLevel == other.JobLevel
278
        //        && this.PersonInCharge == other.PersonInCharge && this.ToIsDiscussion == other.ToIsDiscussion && this.ToRemarks == other.ToRemarks
279
        //        && this.ToCreator == other.ToCreator
280
        //        && this.FrReviewStatus == other.FrReviewStatus && this.FrRemarks == other.FrRemarks && this.FrCreator == other.FrCreator
281
        //        && this.ID2StartDate == other.ID2StartDate && this.ID2EndDate == other.ID2EndDate && this.ID2Status == other.ID2Status
282
        //        && this.ID2Issues == other.ID2Issues && this.ReplyModifications == other.ReplyModifications && this.ReplyRequester == other.ReplyRequester && this.IsConvert == other.IsConvert && this.AVEVAPersonInCharge == other.AVEVAPersonInCharge && this.AVEVAWorker == other.AVEVAWorker
283
        //        && this.AVEVAConvertDate == other.AVEVAConvertDate && this.AVEVAReviewDate == other.AVEVAReviewDate && this.AVEVAWorkDate == other.AVEVAWorkDate
284
        //        && this.AVEVAStatus == other.AVEVAStatus && this.AVEVAIssues == other.AVEVAIssues
285
        //        && this.ProdReviewer == other.ProdReviewer && this.ProdIsResult == other.ProdIsResult && this.ProdRemarks == other.ProdRemarks && this.ClientReviewer == other.ClientReviewer
286
        //        && this.ClientIsResult == other.ClientIsResult && this.ClientRemarks == other.ClientRemarks && this.DTIsGateWay == other.DTIsGateWay && this.DTIsImport == other.DTIsImport
287
        //        && this.DTIsRegSystem == other.DTIsRegSystem && this.DTRemarks == other.DTRemarks && this.ConvertStatus == other.ConvertStatus
288
        //        && isAttfilesEqual;
289

  
290
        //    if (result == false)
291
        //    {
292
        //        string id = this.DocID;
293
        //    }
294

  
295
        //    return result;
296

  
297
        //}
298
        //public override int GetHashCode()
299
        //{
300
        //    return this.DocumentNo.GetNullableHash() + this.RevisonNo.GetNullableHash() + this.System.GetNullableHash() + this.SubSystemCode.GetNullableHash()
301
        //        + this.RefProjectCode.GetNullableHash() + this.JobLevel.GetNullableHash()
302
        //        + this.PersonInCharge.GetNullableHash() + this.ToIsDiscussion.GetNullableHash() + this.ToRemarks.GetNullableHash()
303
        //        + this.ToCreator.GetNullableHash()
304
        //        + this.FrReviewStatus.GetNullableHash() + this.FrRemarks.GetNullableHash() + this.FrCreator.GetNullableHash()
305
        //        + this.ID2StartDate.GetNullableHash() + this.ID2EndDate.GetNullableHash() + this.ID2Status.GetNullableHash()
306
        //        + this.ID2Issues.GetNullableHash() + this.ReplyModifications.GetNullableHash() + this.ReplyRequester.GetNullableHash() + this.IsConvert.GetNullableHash() + this.AVEVAPersonInCharge.GetNullableHash() + this.AVEVAWorker.GetNullableHash()
307
        //        + this.AVEVAConvertDate.GetNullableHash() + this.AVEVAReviewDate.GetNullableHash() + this.AVEVAWorkDate.GetNullableHash()
308
        //        + this.AVEVAStatus.GetNullableHash() + this.AVEVAIssues.GetNullableHash()
309
        //        + this.ProdReviewer.GetNullableHash() + this.ProdIsResult.GetNullableHash() + this.ProdRemarks.GetNullableHash() + this.ClientReviewer.GetNullableHash()
310
        //        + this.ClientIsResult.GetNullableHash() + this.ClientRemarks.GetNullableHash() + this.DTIsGateWay.GetNullableHash() + this.DTIsImport.GetNullableHash()
311
        //        + this.DTIsRegSystem.GetNullableHash() + this.DTRemarks.GetNullableHash() + this.ConvertStatus.GetNullableHash();
312
        //}
313 313

  
314 314
        public class DocumentsKeyCompare : IEqualityComparer<Documents>
315 315
        {
......
403 403
    [DataContract]
404 404
    public class ID2Drawings
405 405
    {
406
        [DataMember]
406
        //[DataMember]
407 407
        public string PROJECTNAME { get; set; }
408
        [DataMember]
408
        //[DataMember]
409 409
        public string UID { get; set; }
410
        [DataMember]
410
        //[DataMember]
411 411
        public string NAME { get; set; }
412
        [DataMember]
412
        //[DataMember]
413 413
        public string DOCNAME { get; set; }
414
        [DataMember]
414
        //[DataMember]
415 415
        public DateTime? DATETIME { get; set; }
416
        [DataMember]
416
        //[DataMember]
417 417
        public string OCCUPIED { get; set; }
418
        [DataMember]
418
        //[DataMember]
419 419
        public byte[] Image { get; set; }
420 420
    }
421 421

  

내보내기 Unified diff

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