프로젝트

일반

사용자정보

개정판 f5ec88b8

IDf5ec88b82c58a578a820e4ca1cc81226a767e634
상위 5307e38b
하위 c68259ac

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

ConvertPDF 와 FinalPDF GridView 복구, Chart Gridview 제거, 프로세스 TEST 종료

Change-Id: Ibab88acb876c1c45a2edc802b7e08fe2b81b5b05

차이점 보기:

ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/DataBaseItemsModel.cs
24 24
using Newtonsoft.Json;
25 25
using static Markus.Service.StationController.Data.ConvertPDF;
26 26
using System.Collections.ObjectModel;
27
using Markus.Service;
27 28

  
28 29
namespace Markus.Service.StationController.ViewModel
29 30
{
......
47 48
            ResetCommand = new DelegateCommand(Reset);
48 49
            ConvertAddCommand = new DelegateCommand(ConvertAdd);
49 50
            ConvertPathFileSearchCommand = new DelegateCommand(ConvertPathFileSearch);
51
            Stop_ProcessCommand = new DelegateCommand(Stop_Process);
50 52
        }
51 53

  
52 54
        #endregion
......
611 613
        public DelegateCommand ResetCommand { get; private set; }
612 614
        public DelegateCommand ConvertAddCommand { get; private set; }
613 615
        public DelegateCommand ConvertPathFileSearchCommand { get; private set; }
616
        public DelegateCommand Stop_ProcessCommand { get; private set; }
617

  
614 618

  
615 619
        #endregion
616 620

  
......
708 712

  
709 713
        #endregion
710 714

  
711

  
712 715
        #region Data Select
713 716

  
714 717
        /// <summary>
......
1276 1279

  
1277 1280
        #endregion
1278 1281

  
1282
        #region Data Delete
1283

  
1284
        private void DataDelete(object obj)
1285
        {
1286
            RadWindow.Alert("Do you want to delete it??", this.OnClosed);
1287
        }
1288

  
1289
        private async void OnClosed(object sender, WindowClosedEventArgs e)
1290
        {
1291
            {
1292
                var result = e.DialogResult;
1293
                if (result == true)
1294
                {
1295
                    if (SelectFilterConvertList.Count() > 1)
1296
                    {
1297
                        MessageBox.Show("하나만 클릭해 주세요!");
1298
                    }
1299
                    else
1300
                    {
1301
                        if (SelectRealConvert != null)
1302
                        {
1303
                            await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectRealConvert.ConvertID);
1304
                        }
1305
                        if (SelectFilterConvertList != null)
1306
                        {
1307
                            await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectFilterConvertList[0].ConvertID);
1308
                        }
1309
                    }
1310
                }
1311
            }
1312
        }
1313
        #endregion
1314

  
1315
        #region Stop Process
1316

  
1317
        private void Stop_Process(object obj)
1318
        {
1319
            if (SelectFilterConvertList.Count() > 1)
1320
            {
1321
                MessageBox.Show("하나만 클릭해 주세요");
1322
            }
1323
            else
1324
            {
1325
                //ID 찾아서 멈춰라 
1326
                RadWindow.Alert("프로세스 종료 할까요??", this.ON_Stop_Process);
1327

  
1328
            }
1329

  
1330
        }
1331

  
1332
        private void ON_Stop_Process(object sender, WindowClosedEventArgs e)
1333
        {
1334
            {
1335
                var result = e.DialogResult;
1336
                if (result == true)
1337
                {
1338
                    var process = Process.GetProcessesByName("Markus.Service.ConvertProcess");
1339

  
1340
                    for (int i = process.Count() - 1; i >= 0; i--)
1341
                    {
1342
                        try
1343
                        {
1344
                            var commandLines = process[i].Arguments().CommandLine;
1345

  
1346
                            if (commandLines.Count() > 0)
1347
                            {
1348
                                if (commandLines[0] == "TEST" && commandLines[1] == "1")
1349
                                {
1350
                                    process[i].Kill();
1351
                                }
1352
                                //if (ServiceStation.AliveConvertQueue.Count(f => f.ConvertID == commandLines[0]) == 0)
1353
                                //{
1354
                                //    process[i].Kill();
1355
                                //}
1356
                            }
1357
                        }
1358
                        catch (Exception ex)
1359
                        {
1360
                            System.Diagnostics.Debug.WriteLine(ex.ToString());
1361
                        }
1362
                    }
1363
                }
1364
            }
1365
        }
1366
        #endregion
1367

  
1279 1368
        #region DataFilter
1280 1369

  
1281 1370
        public void DataFilter(object obj)
......
1314 1403

  
1315 1404
        #endregion
1316 1405

  
1317
        #region Data Delete
1318

  
1319
        private void DataDelete(object obj)
1320
        {
1321
            RadWindow.Alert("Do you want to delete it??", this.OnClosed);
1322
        }
1323

  
1324
        private async void OnClosed(object sender, WindowClosedEventArgs e)
1325
        {
1326
            {
1327
                var result = e.DialogResult;
1328
                if (result == true)
1329
                {
1330
                    if (SelectFilterConvertList.Count() > 1)
1331
                    {
1332
                        MessageBox.Show("하나만 클릭해 주세요!");
1333
                    }
1334
                    else
1335
                    {
1336
                        if (SelectRealConvert != null)
1337
                        {
1338
                            await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectRealConvert.ConvertID);
1339
                        }
1340
                        if (SelectFilterConvertList != null)
1341
                        {
1342
                            await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectFilterConvertList[0].ConvertID);
1343
                        }
1344
                    }
1345
                }
1346
            }
1347
        }
1348
        #endregion
1349

  
1350 1406
        #region Data Export
1351 1407

  
1352 1408

  
......
1471 1527

  
1472 1528
        #endregion
1473 1529

  
1474

  
1475 1530
        #region ConvertPathFileSearch
1476 1531

  
1477 1532
        /// <summary>

내보내기 Unified diff

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