개정판 0688f998
issue #00000 import 오류 출력 수정
Change-Id: I62c27f16aff9f4a0e73f6572e6529b897fe81df1
ID2.Manager/ExcelAddin/ID2ManagerImport/DataImport.cs | ||
---|---|---|
93 | 93 |
|
94 | 94 |
if (connectionStr != null) |
95 | 95 |
{ |
96 |
//Globals.ThisAddIn.Application.Cursor = Microsoft.Office.Interop.Excel.XlMousePointer.xlWait; |
|
97 |
|
|
96 | 98 |
if (CreateTabile(connectionStr)) |
97 | 99 |
{ |
98 | 100 |
|
... | ... | |
262 | 264 |
} |
263 | 265 |
catch (Exception) |
264 | 266 |
{ |
265 |
|
|
266 | 267 |
throw; |
267 | 268 |
} |
268 | 269 |
|
ID2.Manager/ExcelAddin/ID2ManagerImport/ID2Ribbon.cs | ||
---|---|---|
18 | 18 |
{ |
19 | 19 |
Microsoft.Office.Interop.Excel.Worksheet sheet = Globals.ThisAddIn.Application.ActiveSheet; |
20 | 20 |
|
21 |
|
|
22 |
if (DataManager.Import(Globals.ThisAddIn.Application.ActiveWorkbook.Name, sheet)) |
|
21 |
try |
|
22 |
{ |
|
23 |
if (DataManager.Import(Globals.ThisAddIn.Application.ActiveWorkbook.Name, sheet)) |
|
24 |
{ |
|
25 |
MessageBox.Show("Send data Ok"); |
|
26 |
} |
|
27 |
} |
|
28 |
catch (Exception ex) |
|
29 |
{ |
|
30 |
MessageBox.Show(ex.Message); |
|
31 |
} |
|
32 |
finally |
|
23 | 33 |
{ |
24 |
MessageBox.Show("Send data Ok");
|
|
34 |
Globals.ThisAddIn.Application.Cursor = Microsoft.Office.Interop.Excel.XlMousePointer.xlDefault;
|
|
25 | 35 |
} |
26 | 36 |
} |
27 | 37 |
|
내보내기 Unified diff