프로젝트

일반

사용자정보

개정판 a6e5055d

IDa6e5055d17a7225d3fca1e58f3ffc47c20c5c6d2
상위 97eba451
하위 285635d3

alzkakdixm 이(가) 약 5년 전에 추가함

Markus.Service.StationController DataBaseView 추가

Change-Id: I16b9c78a690e2ae8f804bf35c8787a9c97fea157

차이점 보기:

ConvertService/ServiceBase/IServiceBase/ConvertItem.cs
1 1
using System;
2 2
using System.Collections.Generic;
3
using System.ComponentModel;
3 4
using System.Linq;
4 5
using System.Runtime.Serialization;
5 6
using System.Text;
......
8 9
namespace Markus.Service.Interface
9 10
{
10 11
    [DataContract]
11
    public class ConvertItem : IEquatable<ConvertItem>
12
    public class ConvertItem : IEquatable<ConvertItem> ,INotifyPropertyChanged
12 13
    {
13 14
        public bool Equals(ConvertItem other)
14 15
        {
......
27 28
            return (id + project).GetHashCode();
28 29
        }
29 30

  
30
        public ConvertItem(string ProjectNo , string ID)
31

  
32
        public ConvertItem(string ProjectNo, string ID)
31 33
        {
32 34
            this._projectNumber = ProjectNo;
33 35
            this._convertID = ID;
......
39 41
            this._projectNumber = ProjectNo;
40 42
            this._convertID = ID;
41 43
            this._originfilePath = originfilePath;
44

  
45
            string result = "";
46
            if (originfilePath.Contains("/"))
47
            {
48
                result = originfilePath.Substring(originfilePath.LastIndexOf("/") + 1);
49
            }
50
            else
51
            {
52
                result = originfilePath.Substring(originfilePath.LastIndexOf("%") + 1);
53
            }
54
            this._FileName = result;
42 55
        }
43 56

  
44 57
        public ConvertItem(string key, string ProjectNo, string ID,string originfilePath,string convertPath)
......
48 61
            this._convertID = ID;
49 62
            this._originfilePath = originfilePath;
50 63
            this._convertPath = convertPath;
64

  
65
            string result = "";
66
            if (originfilePath.Contains("/"))
67
            {
68
                result = originfilePath.Substring(originfilePath.LastIndexOf("/") + 1);
69
            }
70
            else
71
            {
72
                result = originfilePath.Substring(originfilePath.LastIndexOf("%") + 1);
73
            }
74
            this._FileName = result;
51 75
        }
52 76

  
53 77
        public ConvertItem(string key, string ProjectNo, string ID, string originfilePath, string convertPath,string Status,int currentPageNo,int totalPage,string exception)
......
61 85
            this._currentPageNo = currentPageNo;
62 86
            this._totalPage = totalPage;
63 87
            this._exception = exception;
88

  
89
            string result = "";
90
            if (originfilePath.Contains("/"))
91
            {
92
                result = originfilePath.Substring(originfilePath.LastIndexOf("/") + 1);
93
            }
94
            else
95
            {
96
                result = originfilePath.Substring(originfilePath.LastIndexOf("%") + 1);
97
            }
98
            this._FileName = result;
64 99
        }
65 100

  
66 101

  
......
70 105
        string _serviceID;
71 106
        int _reConverter;
72 107
        string _originfilePath;
108
        string _FileName;
73 109
        string _convertPath;
74 110
        string _convertState;
75 111
        int _currentPageNo;
......
79 115

  
80 116
        DateTime _createtime;
81 117

  
118
        public event PropertyChangedEventHandler PropertyChanged;
119
        private void OnPropertyChanged(string propertyName)
120
        {
121
            if (PropertyChanged != null)
122
            {
123
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
124
            }
125
        }
126

  
127

  
82 128
        [DataMember]
83
        public string ConvertID { get => _convertID; set => _convertID = value; }
129
        public string ConvertID
130
        {
131
            get
132
            {
133
                return _convertID;
134
            }
135
            set
136
            {
137
                if (_convertID != value)
138
                {
139
                    _convertID = value;
140
                    OnPropertyChanged("ConvertID");
141
                }
142
            }
143
        }
84 144

  
85 145
        [DataMember]
86
        public string ServiceID { get => _serviceID; set => _serviceID = value; }
146
        public string ServiceID
147
        {
148
            get
149
            {
150
                return _serviceID;
151
            }
152
            set
153
            {
154
                if (_serviceID != value)
155
                {
156
                    _serviceID = value;
157
                    this.OnPropertyChanged("ServiceID");
158
                }
159
            }
160
        }
87 161

  
88 162
        [DataMember]
89
        public int ReConverter { get => _reConverter; set => _reConverter = value; }
163
        public int ReConverter
164
        {
165
            get
166
            {
167
                return _reConverter;
168
            }
169
            set
170
            {
171
                if (_reConverter != value)
172
                {
173
                    _reConverter = value;
174
                    this.OnPropertyChanged("ReConverter");
175
                }
176
            }
177
        }
90 178

  
91 179
        [DataMember]
92
        public string OriginfilePath { get => _originfilePath; set => _originfilePath = value; }
180
        public string OriginfilePath
181
        {
182
            get
183
            {
184
                return _originfilePath;
185
            }
186
            set
187
            {
188
                if (_originfilePath != value)
189
                {
190
                    _originfilePath = value;
191
                    this.OnPropertyChanged("OriginfilePath");
192
                }
193
            }
194
        }
195

  
93 196

  
94 197
        [DataMember]
95
        public string ConvertPath { get => _convertPath; set => _convertPath = value; }
198
        public string FileName
199
        {
200
            get
201
            {
202
                return _FileName;
203
            }
204
            set
205
            {
206
                if (_FileName != value)
207
                {
208
                    _FileName = value;
209
                    this.OnPropertyChanged("FileName");
210
                }
211
            }
212
        }
213

  
96 214

  
97 215
        [DataMember]
98
        public string ConvertState { get => _convertState; set => _convertState = value; }
216
        public string ConvertPath
217
        {
218
            get
219
            {
220
                return _convertPath;
221
            }
222
            set
223
            {
224
                if (_convertPath != value)
225
                {
226
                    _convertPath = value;
227
                    this.OnPropertyChanged("ConvertPath");
228
                }
229
            }
230
        }
99 231

  
100 232
        [DataMember]
101
        public string ProjectNumber { get => _projectNumber; set => _projectNumber = value; }
233
        public string ConvertState
234
        {
235
            get
236
            {
237
                return _convertState;
238
            }
239
            set
240
            {
241
                if (_convertState != value)
242
                {
243
                    _convertState = value;
244
                    this.OnPropertyChanged("ConvertState");
245
                }
246
            }
247
        }
102 248

  
103 249
        [DataMember]
104
        public int TotalPage { get => _totalPage; set => _totalPage = value; }
250
        public string ProjectNumber
251
        {
252
            get
253
            {
254
                return _projectNumber;
255
            }
256
            set
257
            {
258
                if (_projectNumber != value)
259
                {
260
                    _projectNumber = value;
261
                    OnPropertyChanged("ProjectNumber");
262
                }
263
            }
264
        }
265

  
266
            [DataMember]
267
        public int TotalPage
268
        {
269
            get
270
            {
271
                return _totalPage;
272
            }
273
            set
274
            {
275
                if (_totalPage != value)
276
                {
277
                    _totalPage = value;
278
                    this.OnPropertyChanged("TotalPage");
279
                }
280
            }
281
        }
105 282

  
106 283
        [DataMember]
107
        public int CurrentPageNo { get => _currentPageNo; set => _currentPageNo = value; }
284
        public int CurrentPageNo
285
        {
286
            get
287
            {
288
                return _currentPageNo;
289
            }
290
            set
291
            {
292
                if (_currentPageNo != value)
293
                {
294
                    _currentPageNo = value;
295
                    this.OnPropertyChanged("CurrentPageNo");
296
                }
297
            }
298
        }
108 299

  
109 300
        [DataMember]
110
        public DateTime CreateTime { get => _createtime; set => _createtime = value; }
301
        public DateTime CreateTime
302
        {
303
            get
304
            {
305
                return _createtime;
306
            }
307
            set
308
            {
309
                if (_createtime != value)
310
                {
311
                    _createtime = value;
312
                    this.OnPropertyChanged("CreateTime");
313
                }
314
            }
315
        }
111 316

  
112 317
        [DataMember]
113
        public string UniqueKey { get => _uniqueKey; set => _uniqueKey = value; }
318
        public string UniqueKey
319
        {
320
            get
321
            {
322
                return _uniqueKey;
323
            }
324
            set
325
            {
326
                if (_uniqueKey != value)
327
                {
328
                    _uniqueKey = value;
329
                    this.OnPropertyChanged("UniqueKey");
330
                }
331
            }
332
        }
114 333

  
115 334

  
116 335
        [DataMember]
117
        public string Exception { get => _exception; set => _exception = value; }
336
        public string Exception
337
        {
338
            get
339
            {
340
                return _exception;
341
            }
342
            set
343
            {
344
                if (_exception != value)
345
                {
346
                    _exception = value;
347
                    this.OnPropertyChanged("Exception");
348
                }
349
            }
350
        }
118 351

  
119 352
        [DataMember]
120 353
        public Int64 ProcessorAffinity { get; set; }
121

  
122 354
    }
123 355
}

내보내기 Unified diff

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