프로젝트

일반

사용자정보

개정판 f85a8cad

IDf85a8cada97559d83114cdabd0ef5cf010cac792
상위 f047c8bf
하위 f25fc1d9

semi 이(가) 4년 이상 전에 추가함

ConvertPDF Document Convert완료

Change-Id: Ia974f877db48de4d6eed04a6288211ae5ab84b8b

차이점 보기:

ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/ConvertDocumentDialogViewModel.cs
8 8
using System.Windows;
9 9
using Newtonsoft.Json;
10 10
using System.Windows.Threading;
11
using Markus.Service.StationController.Controls;
11 12

  
12 13
namespace Markus.Service.StationController.ViewModel
13 14
{
......
48 49
            }
49 50
        }
50 51

  
51
        private List<Document_Item> _SelectedDocument;
52
        public List<Document_Item> SelectedDocument
52
        private Document_Item _SelectedDocument;
53
        public Document_Item SelectedDocument
53 54
        {
54 55
            get
55 56
            {
56 57
                if (_SelectedDocument == null)
57 58
                {
58
                    _SelectedDocument = new List<Document_Item>();
59
                    _SelectedDocument = new Document_Item();
59 60
                }
60 61
                return _SelectedDocument;
61 62
            }
......
218 219
        {
219 220
            try
220 221
            {
221
                if (SelectedDocument != null)
222
                if (Document_Items != null)
222 223
                {
223
                    foreach (var Document in SelectedDocument)
224
                    foreach (var Document in Document_Items)
224 225
                    {
225
                        var items = from x in await WcfClient.GET_SELECT_CONVERT_ITEMAsync(null, null, Document.Document_ID, null, 1, null, null, null, null, null, null, Document.Group_NO, null, Document.Document_NO, null, null, null, null, null)
226
                                    let MarkusLink = "kcom://" + CreateMarkusParam(x.PROJECT_NO, x.DOCUMENT_ID, "doftech")
227
                                    select new ConvertPDF(x.SERVICE_ID, x.ID, x.PROJECT_NO, x.STATUS, x.DOCUMENT_ID, x.DOCUMENT_NAME, x.DOCUMENT_NO, x.DOCUMENT_URL, x.REVISION, x.CURRENT_PAGE, x.TOTAL_PAGE, x.EXCEPTION, x.GROUP_NO, x.CREATE_DATETIME, x.START_DATETIME, x.END_DATETIME
228
, x.DOCUMENT_URL, x.CONVERT_PATH, MarkusLink, x.RECONVERTER);
229

  
230
                        if (items.Count() == 1)
226
                        if (Document.IsChecked == true)
231 227
                        {
232
                            foreach (var Listitem in items.ToList())
228
                            var items = from x in await WcfClient.GET_SELECT_CONVERT_ITEMAsync(null, null, Document.Document_ID, null, 1, null, null, null, null, null, null, Document.Group_NO, null, Document.Document_NO, null, null, null, null, null)
229
                                        let MarkusLink = "kcom://" + CreateMarkusParam(x.PROJECT_NO, x.DOCUMENT_ID, "doftech")
230
                                        select new ConvertPDF(x.SERVICE_ID, x.ID, x.PROJECT_NO, x.STATUS, x.DOCUMENT_ID, x.DOCUMENT_NAME, x.DOCUMENT_NO, x.DOCUMENT_URL, x.REVISION, x.CURRENT_PAGE, x.TOTAL_PAGE, x.EXCEPTION, x.GROUP_NO, x.CREATE_DATETIME, x.START_DATETIME, x.END_DATETIME
231
    , x.DOCUMENT_URL, x.CONVERT_PATH, MarkusLink, x.RECONVERTER);
232

  
233
                            if (items.Count() == 1)
233 234
                            {
234
                                SetCleanUpItem(Listitem);
235
                                foreach (var Listitem in items.ToList())
236
                                {
237
                                    SetCleanUpItem(Listitem);
238
                                }
235 239
                            }
240

  
241
                            MessageBox.Show("Document Item Convert Success");
236 242
                        }
237 243
                    }
238 244
                }

내보내기 Unified diff

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