개정판 037ab674
WCF 변경
Change-Id: Iac482667ce5ff20c3acee80186ef2356928bc6da
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/ConvertAddDialogViewModel.cs | ||
---|---|---|
24 | 24 |
|
25 | 25 |
#region Propertise |
26 | 26 |
|
27 |
DataService.DataServiceClient WcfClient = new DataService.DataServiceClient(); |
|
28 |
|
|
27 | 29 |
private string _ConverAdd_Project_NO; |
28 | 30 |
public string ConverAdd_Project_NO |
29 | 31 |
{ |
... | ... | |
72 | 74 |
/// 그리드 상단 Conver 추가 버튼 |
73 | 75 |
/// ProjectNo, DocumentURL, DocumentID, 입력해서 저장 프로시저에서 추가 |
74 | 76 |
/// </summary> |
75 |
public void ConverAdd_OK(object obj) |
|
77 |
public async void ConverAdd_OK(object obj)
|
|
76 | 78 |
{ |
77 | 79 |
|
78 | 80 |
try |
79 | 81 |
{ |
82 |
string ConverAdd_ID = GuidExtension.shortGuid(); |
|
83 |
var items = await WcfClient.GET_SELECT_CONVERT_INSERTAsync(ConverAdd_ID, ConverAdd_Project_NO, ConverAdd_DOCUMENT_URL, ConverAdd_DOCUMENT_ID); |
|
84 |
System.Diagnostics.Debug.WriteLine(items); |
|
80 | 85 |
|
81 |
using (markusEntities entities = new markusEntities(App.MarkusDataBaseConnecitonString)) |
|
82 |
{ |
|
83 |
string ConverAdd_ID = GuidExtension.shortGuid(); |
|
84 |
var items = entities.SELECT_CONVERT_INSERT(ConverAdd_ID, ConverAdd_Project_NO, ConverAdd_DOCUMENT_URL, ConverAdd_DOCUMENT_ID); |
|
85 |
System.Diagnostics.Debug.WriteLine(items); |
|
86 |
|
|
87 |
} |
|
88 | 86 |
MessageBox.Show("데이터베이스에 추가 완료! "); |
89 | 87 |
} |
90 | 88 |
catch (Exception ex) |
내보내기 Unified diff