개정판 037ab674
WCF 변경
Change-Id: Iac482667ce5ff20c3acee80186ef2356928bc6da
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/FinalPDFAddDialogViewModel.cs | ||
---|---|---|
22 | 22 |
|
23 | 23 |
#region Propertise |
24 | 24 |
|
25 |
DataService.DataServiceClient WcfClient = new DataService.DataServiceClient(); |
|
26 |
|
|
25 | 27 |
private string _FinalPDFAdd_Project_NO; |
26 | 28 |
public string FinalPDFAdd_Project_NO |
27 | 29 |
{ |
... | ... | |
70 | 72 |
/// 그리드 상단 Conver 추가 버튼 |
71 | 73 |
/// ProjectNo, DocumentURL, DocumentID, 입력해서 저장 프로시저에서 추가 |
72 | 74 |
/// </summary> |
73 |
public void FinalPDFAdd_OK(object obj) |
|
75 |
public async void FinalPDFAdd_OK(object obj)
|
|
74 | 76 |
{ |
75 |
|
|
76 | 77 |
try |
77 | 78 |
{ |
79 |
string ConverAdd_ID = GuidExtension.shortGuid(); |
|
80 |
var items = await WcfClient.GET_SELECT_CONVERT_INSERTAsync(ConverAdd_ID, FinalPDFAdd_Project_NO, FinalPDFAdd_DocInfo_ID, FinalPDFAdd_Document_ID); |
|
81 |
System.Diagnostics.Debug.WriteLine(items); |
|
78 | 82 |
|
79 |
using (markusEntities entities = new markusEntities(App.MarkusDataBaseConnecitonString)) |
|
80 |
{ |
|
81 |
string ConverAdd_ID = GuidExtension.shortGuid(); |
|
82 |
var items = entities.SELECT_FINAL_PDF_INSERT(ConverAdd_ID, FinalPDFAdd_Project_NO, FinalPDFAdd_DocInfo_ID, FinalPDFAdd_Document_ID); |
|
83 |
System.Diagnostics.Debug.WriteLine(items); |
|
84 |
|
|
85 |
} |
|
86 | 83 |
MessageBox.Show("데이터베이스에 추가 완료! "); |
87 | 84 |
} |
88 | 85 |
catch (Exception ex) |
... | ... | |
93 | 90 |
FinalPDFAdd_Project_NO = null; |
94 | 91 |
FinalPDFAdd_DocInfo_ID = null; |
95 | 92 |
FinalPDFAdd_Document_ID = null; |
96 |
|
|
97 |
|
|
98 | 93 |
} |
99 | 94 |
|
100 | 95 |
#endregion |
내보내기 Unified diff