개정판 e6c570d5
process kill 많은 페이지수, 작업관리자에 프로세스없어도 가능 수정
Change-Id: I06e9ea75e01ae4a284d333bd80b997c85d7e4c91
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/DataBaseItemsModel.cs | ||
---|---|---|
1349 | 1349 |
|
1350 | 1350 |
private void DataDelete(object obj) |
1351 | 1351 |
{ |
1352 |
RadWindow.Alert("Do you want to delete it??", this.OnClosed); |
|
1352 |
EventHandler<WindowClosedEventArgs> handler = (snd, evt) => |
|
1353 |
{ |
|
1354 |
var result = evt.DialogResult; |
|
1355 |
|
|
1356 |
if (result == true) |
|
1357 |
{ |
|
1358 |
OnClosed(obj); |
|
1359 |
} |
|
1360 |
}; |
|
1361 |
|
|
1362 |
RadWindow.Confirm("Do you want to delete it??", handler); |
|
1353 | 1363 |
} |
1354 | 1364 |
|
1355 |
private async void OnClosed(object sender, WindowClosedEventArgs e)
|
|
1365 |
private async void OnClosed(object obj)
|
|
1356 | 1366 |
{ |
1367 |
if (obj is ConvertPDF) |
|
1357 | 1368 |
{ |
1358 |
var result = e.DialogResult; |
|
1359 |
if (result == true) |
|
1369 |
if (obj != null) |
|
1360 | 1370 |
{ |
1361 |
if (sender is ConvertPDF) |
|
1362 |
{ |
|
1363 |
if (sender != null) |
|
1364 |
{ |
|
1365 |
var convertitem = sender as ConvertPDF; |
|
1371 |
var convertitem = obj as ConvertPDF; |
|
1366 | 1372 |
|
1367 |
SelectRealConvert = convertitem;
|
|
1368 |
await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectRealConvert.ConvertID);
|
|
1373 |
SelectRealConvert = convertitem; |
|
1374 |
await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectRealConvert.ConvertID); |
|
1369 | 1375 |
|
1370 |
} |
|
1371 |
} |
|
1372 |
else if (SelectFilterConvertList.Count() > 1) |
|
1373 |
{ |
|
1374 |
MessageBox.Show("하나만 클릭해 주세요!"); |
|
1375 |
} |
|
1376 |
else if (SelectFilterConvertList.Count() == 0) |
|
1377 |
{ |
|
1378 |
MessageBox.Show("왼쪽 버튼 클릭 후 Delete 해주세요!"); |
|
1379 |
} |
|
1380 |
else |
|
1381 |
{ |
|
1382 |
if (SelectFilterConvertList != null) |
|
1383 |
{ |
|
1384 |
await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectFilterConvertList[0].ConvertID); |
|
1385 |
} |
|
1386 |
} |
|
1376 |
} |
|
1377 |
} |
|
1378 |
else if (SelectFilterConvertList.Count() > 1) |
|
1379 |
{ |
|
1380 |
MessageBox.Show("하나만 클릭해 주세요!"); |
|
1381 |
} |
|
1382 |
else if (SelectFilterConvertList.Count() == 0) |
|
1383 |
{ |
|
1384 |
MessageBox.Show("왼쪽 버튼 클릭 후 Delete 해주세요!"); |
|
1385 |
} |
|
1386 |
else |
|
1387 |
{ |
|
1388 |
if (SelectFilterConvertList != null) |
|
1389 |
{ |
|
1390 |
await WcfClient.GET_SELECT_CONVERT_DELETEAsync(SelectFilterConvertList[0].ConvertID); |
|
1387 | 1391 |
} |
1388 | 1392 |
} |
1389 | 1393 |
} |
... | ... | |
1426 | 1430 |
} |
1427 | 1431 |
}; |
1428 | 1432 |
|
1429 |
//ID 찾아서 멈춰라 |
|
1430 | 1433 |
RadWindow.Confirm("프로세스 종료 할까요??", handler); |
1431 | 1434 |
} |
1432 | 1435 |
|
1433 | 1436 |
private async void Stop_Process(string convertId) |
1434 | 1437 |
{ |
1438 |
System.Threading.Thread.Sleep(new TimeSpan(0, 0, 0, 10)); |
|
1435 | 1439 |
|
1436 | 1440 |
var process = Process.GetProcessesByName("Markus.Service.ConvertProcess"); |
1437 | 1441 |
|
... | ... | |
1440 | 1444 |
try |
1441 | 1445 |
{ |
1442 | 1446 |
var commandLines = process[i].Arguments().CommandLine; |
1447 |
MessageBox.Show("commandLines[0]: " + commandLines[0] + "\nconvertId: " + convertId); |
|
1448 |
|
|
1443 | 1449 |
if (commandLines.Count() > 0) |
1444 | 1450 |
{ |
1445 |
System.Threading.Thread.Sleep(new TimeSpan(0, 0, 0, 5)); |
|
1446 | 1451 |
if (commandLines[0] == convertId) |
1447 | 1452 |
{ |
1448 | 1453 |
|
1449 |
MessageBox.Show("commandLines[0]: " + commandLines[0] + "convertId: " + convertId); |
|
1450 |
|
|
1451 | 1454 |
var _CREATE_DATETIME = DateTime.Now; |
1452 | 1455 |
|
1453 | 1456 |
await WcfClient.GET_SELECT_RERECONVERT_ITEMAsync(convertId, 2, _CREATE_DATETIME, 3, null); |
ConvertService/ServiceBase/StationControllerService/StationControllerService.csproj.user | ||
---|---|---|
8 | 8 |
<IISExpressWindowsAuthentication /> |
9 | 9 |
<IISExpressUseClassicPipelineMode /> |
10 | 10 |
<UseGlobalApplicationHostFile /> |
11 |
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
|
11 |
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
|
12 | 12 |
<NameOfLastUsedPublishProfile>FolderProfile1</NameOfLastUsedPublishProfile> |
13 | 13 |
</PropertyGroup> |
14 | 14 |
<ProjectExtensions> |
내보내기 Unified diff