프로젝트

일반

사용자정보

개정판 508debb1

ID508debb1076e06cc0afaa3305339deeea9d8a4a4
상위 c6bf88fd
하위 60fbc8d5

김태성이(가) 약 5년 전에 추가함

ServiceBase/Markus.Service.DataBase/ConvertDatabase.cs 오륫 수정

Change-Id: I5eba73db6332531d7a11e3327082375d95a59b72

차이점 보기:

ConvertService/ServiceBase/Markus.Service.DataBase/ConvertDatabase.cs
297 297
                var item = items.First();
298 298

  
299 299
                item.RECONVERTER = item.RECONVERTER - _ConvertItem.ReConverter;
300

  
300 301
                item.CREATE_DATETIME = DateTime.Now;
301 302
                item.STATUS = (int)StatusCodeType.None;
303
                item.END_DATETIME = null;
302 304

  
303 305
                result = entities.SaveChanges();
304 306
            }
......
306 308
            return result;
307 309
        }
308 310

  
311
        public int SetCleanUpItem(string convertID, int ReConvert)
312
        {
313
            int result = 0;
314

  
315
            var items = entities.CONVERTER_DOC.Where(x => x.ID == convertID);
316

  
317
            result = items.Count();
318

  
319
            if (items.Count() > 0)
320
            {
321
                var item = items.First();
322

  
323
                item.RECONVERTER = item.RECONVERTER + ReConvert;
324
                item.CREATE_DATETIME = DateTime.Now;
325
                //item.START_DATETIME = null;
326
                item.END_DATETIME = null;
327
                item.STATUS = (int)StatusCodeType.None;
328

  
329
                result = entities.SaveChanges();
330
            }
331

  
332
            return result;
333
        }
309 334
        #endregion
310 335

  
311 336
        #region Convert Path
ConvertService/ServiceBase/Markus.Service.Station/StationService/ServiceStationWCF.cs
111 111
                        new Item
112 112
                        {
113 113
                            DocumentID = item.UniqueKey,
114
                            Status = item.ConvertState,
114
                            Status = item.ConvertState.ToString(),
115 115
                            ProjectNo = item.ProjectNumber,
116 116
                            TotalPage = item.TotalPage,
117 117
                            CurrentPageNo = item.CurrentPageNo,
......
205 205

  
206 206
                item.TotalPage = TotalPage;
207 207
                item.CurrentPageNo = CurrentPage;
208
                item.ConvertState = ((StatusCodeType)status).ToString();
208
                item.ConvertState = (StatusCodeType)status;
209 209
            }
210 210

  
211 211
            if (CurrentPage % SaveStatusInterval == 0 || !Error.IsNullOrEmpty())

내보내기 Unified diff

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