개정판 f5ec88b8
ConvertPDF 와 FinalPDF GridView 복구, Chart Gridview 제거, 프로세스 TEST 종료
Change-Id: Ibab88acb876c1c45a2edc802b7e08fe2b81b5b05
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/FinalPDFViewModel.cs | ||
---|---|---|
46 | 46 |
ResetCommand = new DelegateCommand(Reset); |
47 | 47 |
ConverAddCommand = new DelegateCommand(ConverAdd); |
48 | 48 |
FinalPDFPathFileSearchCommand = new DelegateCommand(FinalPDFPathFileSearch); |
49 |
Stop_ProcessCommand = new DelegateCommand(Stop_Process); |
|
49 | 50 |
} |
50 | 51 |
|
51 | 52 |
#endregion |
... | ... | |
688 | 689 |
public DelegateCommand ResetCommand { get; private set; } |
689 | 690 |
public DelegateCommand ConverAddCommand { get; private set; } |
690 | 691 |
public DelegateCommand FinalPDFPathFileSearchCommand { get; private set; } |
692 |
public DelegateCommand Stop_ProcessCommand { get; private set; } |
|
691 | 693 |
|
692 | 694 |
#endregion |
693 | 695 |
|
... | ... | |
785 | 787 |
|
786 | 788 |
#endregion |
787 | 789 |
|
788 |
|
|
789 | 790 |
#region Data Select |
790 | 791 |
|
791 | 792 |
/// <summary> |
... | ... | |
1355 | 1356 |
|
1356 | 1357 |
#endregion |
1357 | 1358 |
|
1359 |
#region Data Delete |
|
1360 |
|
|
1361 |
private void DataDelete(object obj) |
|
1362 |
{ |
|
1363 |
RadWindow.Alert("do you want to delete it??", this.OnClosed); |
|
1364 |
} |
|
1365 |
|
|
1366 |
private async void OnClosed(object sender, WindowClosedEventArgs e) |
|
1367 |
{ |
|
1368 |
var result = e.DialogResult; |
|
1369 |
if (result == true) |
|
1370 |
{ |
|
1371 |
if (SelectFilterConvertList.Count() > 1) |
|
1372 |
{ |
|
1373 |
MessageBox.Show("하나만 클릭해 주세요!"); |
|
1374 |
} |
|
1375 |
else |
|
1376 |
{ |
|
1377 |
if (SelectRealConvert != null) |
|
1378 |
{ |
|
1379 |
await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectRealConvert.ConvertID); |
|
1380 |
} |
|
1381 |
if (SelectFilterConvertList != null) |
|
1382 |
{ |
|
1383 |
await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectFilterConvertList[0].ConvertID); |
|
1384 |
} |
|
1385 |
} |
|
1386 |
} |
|
1387 |
} |
|
1388 |
|
|
1389 |
|
|
1390 |
#endregion |
|
1391 |
|
|
1392 |
#region Stop Process |
|
1393 |
|
|
1394 |
private void Stop_Process(object obj) |
|
1395 |
{ |
|
1396 |
if (SelectFilterConvertList.Count() > 1) |
|
1397 |
{ |
|
1398 |
MessageBox.Show("하나만 클릭해 주세요"); |
|
1399 |
} |
|
1400 |
else |
|
1401 |
{ |
|
1402 |
RadWindow.Alert("프로세스 종료 할까요??", this.ON_Stop_Process); |
|
1403 |
|
|
1404 |
} |
|
1405 |
|
|
1406 |
} |
|
1407 |
|
|
1408 |
private void ON_Stop_Process(object sender, WindowClosedEventArgs e) |
|
1409 |
{ |
|
1410 |
{ |
|
1411 |
var result = e.DialogResult; |
|
1412 |
if (result == true) |
|
1413 |
{ |
|
1414 |
var process = Process.GetProcessesByName("Markus.Service.ConvertProcess"); |
|
1415 |
|
|
1416 |
for (int i = process.Count() - 1; i >= 0; i--) |
|
1417 |
{ |
|
1418 |
try |
|
1419 |
{ |
|
1420 |
var commandLines = process[i].Arguments().CommandLine; |
|
1421 |
|
|
1422 |
if (commandLines.Count() > 0) |
|
1423 |
{ |
|
1424 |
if (commandLines[0] == "TEST" && commandLines[1] == "1") |
|
1425 |
{ |
|
1426 |
process[i].Kill(); |
|
1427 |
} |
|
1428 |
//if (ServiceStation.AliveConvertQueue.Count(f => f.ConvertID == commandLines[0]) == 0) |
|
1429 |
//{ |
|
1430 |
// process[i].Kill(); |
|
1431 |
//} |
|
1432 |
} |
|
1433 |
} |
|
1434 |
catch (Exception ex) |
|
1435 |
{ |
|
1436 |
System.Diagnostics.Debug.WriteLine(ex.ToString()); |
|
1437 |
} |
|
1438 |
} |
|
1439 |
} |
|
1440 |
} |
|
1441 |
} |
|
1442 |
#endregion |
|
1443 |
|
|
1358 | 1444 |
#region DataFilter |
1359 | 1445 |
|
1360 | 1446 |
public void DataFilter(object obj) |
... | ... | |
1391 | 1477 |
|
1392 | 1478 |
#endregion |
1393 | 1479 |
|
1394 |
#region Data Delete |
|
1395 |
|
|
1396 |
private void DataDelete(object obj) |
|
1397 |
{ |
|
1398 |
RadWindow.Alert("do you want to delete it??", this.OnClosed); |
|
1399 |
} |
|
1400 |
|
|
1401 |
private async void OnClosed(object sender, WindowClosedEventArgs e) |
|
1402 |
{ |
|
1403 |
var result = e.DialogResult; |
|
1404 |
if (result == true) |
|
1405 |
{ |
|
1406 |
if (SelectFilterConvertList.Count() > 1) |
|
1407 |
{ |
|
1408 |
MessageBox.Show("하나만 클릭해 주세요!"); |
|
1409 |
} |
|
1410 |
else |
|
1411 |
{ |
|
1412 |
if (SelectRealConvert != null) |
|
1413 |
{ |
|
1414 |
await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectRealConvert.ConvertID); |
|
1415 |
} |
|
1416 |
if (SelectFilterConvertList != null) |
|
1417 |
{ |
|
1418 |
await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectFilterConvertList[0].ConvertID); |
|
1419 |
} |
|
1420 |
} |
|
1421 |
} |
|
1422 |
} |
|
1423 |
|
|
1424 |
|
|
1425 |
#endregion |
|
1426 |
|
|
1427 | 1480 |
#region Data Export |
1428 | 1481 |
|
1429 | 1482 |
|
... | ... | |
1509 | 1562 |
|
1510 | 1563 |
#endregion |
1511 | 1564 |
|
1512 |
|
|
1513 | 1565 |
#region ConvertAddDialog |
1514 | 1566 |
|
1515 | 1567 |
/// <summary> |
... | ... | |
1547 | 1599 |
|
1548 | 1600 |
#endregion |
1549 | 1601 |
|
1550 |
|
|
1551 | 1602 |
#region FinalPDFPathFileSearch |
1552 | 1603 |
|
1553 | 1604 |
/// <summary> |
... | ... | |
1578 | 1629 |
|
1579 | 1630 |
#endregion |
1580 | 1631 |
|
1581 |
|
|
1582 | 1632 |
#endregion |
1583 | 1633 |
} |
1584 | 1634 |
} |
내보내기 Unified diff